From: rajdeep11 Date: Mon, 11 Nov 2024 06:53:52 +0000 (+0530) Subject: changes for to fix the create featuregroup and trainingjob X-Git-Tag: 4.0.0~20 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F13741%2F1;p=portal%2Faiml-dashboard.git changes for to fix the create featuregroup and trainingjob Change-Id: Iee1a84c3f53597816a89a9ddd2dab9f3a7865a83 Signed-off-by: rajdeep11 --- diff --git a/src/components/home/form/CreateFeatureGroupForm.js b/src/components/home/form/CreateFeatureGroupForm.js index d9f64a0..37ab469 100644 --- a/src/components/home/form/CreateFeatureGroupForm.js +++ b/src/components/home/form/CreateFeatureGroupForm.js @@ -199,19 +199,19 @@ class CreateFeatureGroup extends React.Component { featureGroupAPI .createFeatureGroup({ data: { - featureGroupName: this.state.featureGroupName, + featuregroup_name: this.state.featureGroupName, feature_list: this.state.featureNames, datalake_source: convertedDatalakeDBName, - enable_Dme: this.state.dme, - Host: this.state.host, - Port: this.state.port, - dmePort: this.state.dmePort, + enable_dme: this.state.dme, + host: this.state.host, + port: this.state.port, + dme_port: this.state.dmePort, bucket: this.state.bucketName, token: this.state.token, source_name: this.state.sourceName, measured_obj_class: this.state.measuredObjClass, - _measurement: this.state._measurement, - dbOrg: this.state.dbOrg, + measurement: this.state._measurement, + db_org: this.state.dbOrg, }, }) .then(res => { diff --git a/src/components/home/form/CreateOrEditTrainingJobForm.js b/src/components/home/form/CreateOrEditTrainingJobForm.js index 2693609..3ca1651 100644 --- a/src/components/home/form/CreateOrEditTrainingJobForm.js +++ b/src/components/home/form/CreateOrEditTrainingJobForm.js @@ -364,7 +364,7 @@ class CreateTrainingJob extends React.Component { pipeline_name: this.state.plName, // "experiment_name" : this.state.expName, experiment_name: 'Default', - featureGroup_name: this.state.featureGroupName, + feature_group_name: this.state.featureGroupName, query_filter: this.state.featureFilters, arguments: hyperParamsDict, enable_versioning: this.state.versioning,