diff --git a/src/config/config.js b/src/config/config.js
index 0dad4c99f..6514049d1 100644
--- a/src/config/config.js
+++ b/src/config/config.js
@@ -2,11 +2,11 @@ const configs = {
BASE_URL: "https://backend.prod2.shoonya.ai4bharat.org",
BASE_URL_AUTO: process.env.REACT_APP_APIGW_BASE_URL
? process.env.REACT_APP_APIGW_BASE_URL
- :"https://backend.dev.shoonya.ai4bharat.org"
+ :"https://backend.dev.shoonya.ai4bharat.org"
};
export default configs;
//http://20.51.211.111:8000
//https://backend.shoonya.ai4bharat.org/
// https://backend.dev2.shoonya.ai4bharat.org
-//https://backend.prod2.shoonya.ai4bharat.org
\ No newline at end of file
+//https://backend.prod2.shoonya.ai4bharat.org
diff --git a/src/redux/actions/api/LSFAPI/LSFAPI.js b/src/redux/actions/api/LSFAPI/LSFAPI.js
index fd967c4da..79bbdf0eb 100644
--- a/src/redux/actions/api/LSFAPI/LSFAPI.js
+++ b/src/redux/actions/api/LSFAPI/LSFAPI.js
@@ -98,6 +98,7 @@ const postReview = async (
const patchAnnotation = async (
+ taskId,
result,
annotationID,
load_time,
@@ -113,6 +114,7 @@ const patchAnnotation = async (
lead_time: (new Date() - load_time) / 1000 + Number(lead_time ?? 0),
annotation_status: annotation_status,
}),
+ task_id: taskId,
annotation_notes: notes,
...(autoSave && { auto_save: true }),
});
@@ -123,6 +125,7 @@ const patchAnnotation = async (
};
const patchReview = async (
+ taskId,
annotationID,
load_time,
lead_time,
@@ -137,6 +140,7 @@ const patchReview = async (
lead_time: (new Date() - load_time) / 1000 + Number(lead_time ?? 0),
annotation_status: review_status,
result: result,
+ task_id: taskId,
review_notes: reviewnotes,
...((review_status === "to_be_revised" ||
review_status === "accepted" ||
@@ -162,6 +166,7 @@ const patchReview = async (
const patchSuperChecker = async (
+ taskId,
annotationID,
load_time,
lead_time,
@@ -176,6 +181,7 @@ const patchSuperChecker = async (
await axiosInstance.patch(`/annotation/${annotationID}/`, {
lead_time: (new Date() - load_time) / 1000 + Number(lead_time ?? 0),
annotation_status: review_status,
+ task_id: taskId,
result: result,
parent_annotation: parentAnnotation,
supercheck_notes: superchecknotes,
diff --git a/src/redux/actions/api/ProjectDetails/DownloadCSVProject.js b/src/redux/actions/api/ProjectDetails/DownloadCSVProject.js
index 14746fc3d..7823b18ac 100644
--- a/src/redux/actions/api/ProjectDetails/DownloadCSVProject.js
+++ b/src/redux/actions/api/ProjectDetails/DownloadCSVProject.js
@@ -4,11 +4,11 @@
import constants from "../../../constants";
export default class DownloadProjectCsvAPI extends API {
- constructor(projectId,taskStatus, downloadMetadataToggle=false,timeout = 2000) {
+ constructor(projectId,taskStatus,timeout = 2000) {
super("POST", timeout, false);
this.projectBody={}//object with key-value pair
this.type = constants.DOWNLOAD_PROJECT_CSV;
- this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=CSV&task_status=${taskStatus}&include_input_data_metadata_json=${downloadMetadataToggle}`;
+ this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=CSV&task_status=${taskStatus}`;
}
processResponse(res) {
diff --git a/src/redux/actions/api/ProjectDetails/DownloadJSONProject.js b/src/redux/actions/api/ProjectDetails/DownloadJSONProject.js
index a27363b24..0719c67b6 100644
--- a/src/redux/actions/api/ProjectDetails/DownloadJSONProject.js
+++ b/src/redux/actions/api/ProjectDetails/DownloadJSONProject.js
@@ -4,11 +4,11 @@
import constants from "../../../constants";
export default class DownloadProjectJSONAPI extends API {
- constructor(projectId, taskStatus ,downloadMetadataToggle=false, timeout = 2000) {
+ constructor(projectId, taskStatus , timeout = 2000) {
super("POST", timeout, false);
this.projectBody={}//object with key-value pair
this.type = constants.DOWNLOAD_PROJECT_JSON;
- this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=JSON&task_status=${taskStatus}&include_input_data_metadata_json=${downloadMetadataToggle}`;
+ this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=JSON&task_status=${taskStatus}`;
}
processResponse(res) {
diff --git a/src/redux/actions/api/ProjectDetails/DownloadTSVProject.js b/src/redux/actions/api/ProjectDetails/DownloadTSVProject.js
index 09a517b78..b72741ca6 100644
--- a/src/redux/actions/api/ProjectDetails/DownloadTSVProject.js
+++ b/src/redux/actions/api/ProjectDetails/DownloadTSVProject.js
@@ -4,11 +4,11 @@
import constants from "../../../constants";
export default class DownloadProjectTsvAPI extends API {
- constructor(projectId,taskStatus,downloadMetadataToggle=false, timeout = 2000) {
+ constructor(projectId,taskStatus, timeout = 2000) {
super("POST", timeout, false);
this.type = constants.DOWNLOAD_PROJECT_TSV;
this.projectBody={}//object with key-value pair
- this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=TSV&task_status=${taskStatus}&include_input_data_metadata_json=${downloadMetadataToggle}`;
+ this.endpoint = `${super.apiEndPointAuto()}${ENDPOINTS.getProjects}${projectId}/download/?export_type=TSV&task_status=${taskStatus}`;
}
processResponse(res) {
diff --git a/src/ui/pages/component/Tabs/AdvancedOperation.jsx b/src/ui/pages/component/Tabs/AdvancedOperation.jsx
index aae8eece9..750fad536 100644
--- a/src/ui/pages/component/Tabs/AdvancedOperation.jsx
+++ b/src/ui/pages/component/Tabs/AdvancedOperation.jsx
@@ -699,7 +699,7 @@ const AdvancedOperation = (props) => {
sx={{ mt: 1 }}
>
{/*
*/}
-
+ {/*
}
label="Download Metadata"
@@ -709,7 +709,7 @@ const AdvancedOperation = (props) => {
disabled ={userRole.WorkspaceManager === loggedInUserData?.role?true:false}
/>
-
+ */}