update onboard workflow 21/4721/1
authorNicolas Hu <jh245g@att.com>
Fri, 18 Sep 2020 17:34:00 +0000 (13:34 -0400)
committerNicolas Hu <jh245g@att.com>
Fri, 18 Sep 2020 17:34:36 +0000 (13:34 -0400)
Change-Id: Ie250500c6e4c4644bf49c85f4e6c4e74a322bfc7
Signed-off-by: Jun (Nicolas) Hu <jh245g@att.com>
dashboard/webapp-frontend/src/app/onboard/onboard.component.ts
docs/release-notes.rst

index 4f843db..adf8596 100644 (file)
@@ -52,7 +52,7 @@ export class OnboardComponent implements OnInit {
   ngOnInit(): void {
     this.urlOnboardForm = new FormGroup({
       configURL: new FormControl('', [Validators.required]),
-      schemaURL: new FormControl('', [Validators.required])
+      schemaURL: new FormControl('')
     })
   }
   ;
@@ -60,11 +60,9 @@ export class OnboardComponent implements OnInit {
   controlsSchema: File;
   descriptor = {
     "config-file.json": {},
-    "controls-schema.json": {}
   }
   descriptor_url = {
     "config-file.json_url": "",
-    "controls-schema.json_url": ""
   }
 
   uploadFromLocal() {
@@ -92,7 +90,9 @@ export class OnboardComponent implements OnInit {
 
   uploadFromURL(data) {
     this.descriptor_url["config-file.json_url"] = data.configURL;
-    this.descriptor_url["controls-schema.json_url"] = data.schemaURL;
+    if (data.schemaURL) {
+      this.descriptor_url["controls-schema.json_url"] = data.schemaURL;
+    }
     this.loadingDialogService.startLoading('Onboarding xApp');
     this.xappOnboarderService.onboardXappURL(this.descriptor_url, this.data.instanceKey)
       .pipe(
index ae47afb..c1dd79e 100644 (file)
@@ -5,8 +5,9 @@
 RIC Dashboard Release Notes
 ===========================
 
-Version 2.1.0, 26 Aug 2020
+Version 2.1.0, 18 Sep 2020
 --------------------------
+* Update the onboard workflow, set controlsSchema as optional 
 * Update the workflow of configure running Xapp in Dashboard (`OAM-110 <https://jira.o-ran-sc.org/browse/OAM-110>`_)
 * Extend the Dashboard Xapp deploy workflow to accept configuration (`OAM-109 <https://jira.o-ran-sc.org/browse/OAM-109>`_)
 * Add Xapp Onboarder client to backend (`OAM-108 <https://jira.o-ran-sc.org/browse/OAM-108>`_)