Skip to content

Commit ebadaa7

Browse files
committed
wip: Create 15.2.1 release builds
2 parents d09b19f + d239093 commit ebadaa7

File tree

8 files changed

+135
-158
lines changed

8 files changed

+135
-158
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "soda-for-sparc",
33
"procductName": "SODA for SPARC",
4-
"version": "15.2.0",
4+
"version": "15.2.1",
55
"description": "Keep Calm and Curate",
66
"main": "./out/main/index.js",
77
"author": "SODA Team",

src/preload/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ if (process.contextIsolated) {
253253
},
254254
checkForPennsieveAgent: () => {
255255
return new Promise((resolve, reject) => {
256-
let agentStartSpawn = spawn("pennsieve", {
256+
let agentStartSpawn = spawn("pennsieve", ["agent"], {
257257
shell: true,
258258
env: window.process.env,
259259
});

src/pyflask/startup/minimumApiVersion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ def get_api_version():
99

1010

1111

12-
return {'version': os.getenv('API_VERSION', "15.2.0")}
12+
return {'version': os.getenv('API_VERSION', "15.2.1")}
1313

1414

src/renderer/src/scripts/guided-mode/guided-curate-dataset.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -4127,11 +4127,16 @@ const guidedShowTreePreview = (new_dataset_name, targetElementId) => {
41274127

41284128
//Add the manifest files that have been created to the preview
41294129
for (const manifestFileKey of Object.keys(window.sodaJSONObj["guided-manifest-files"])) {
4130-
dsJsonObjCopy["folders"][manifestFileKey]["files"]["manifest.xlsx"] = {
4131-
action: ["new"],
4132-
path: "",
4133-
type: "local",
4134-
};
4130+
const hlfStillExistsForManifestFile = Object.keys(dsJsonObjCopy["folders"]).includes(
4131+
manifestFileKey
4132+
);
4133+
if (hlfStillExistsForManifestFile) {
4134+
dsJsonObjCopy["folders"][manifestFileKey]["files"]["manifest.xlsx"] = {
4135+
action: ["new"],
4136+
path: "",
4137+
type: "local",
4138+
};
4139+
}
41354140
}
41364141

41374142
//Add the Readme file to the preview if it exists in JSON

src/renderer/src/scripts/organize-dataset/curate-functions.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -502,15 +502,18 @@ window.uploadDatasetClickHandler = async (ev) => {
502502
};
503503

504504
window.handleLocalDatasetImport = async (path) => {
505+
console.log("Importing local dataset from path:", path);
505506
const list = await getFilesAndFolders(path);
507+
console.log("List of files and folders:", list);
506508
const currentFileExplorerPath = window.organizeDSglobalPath.value.trim();
507-
const buildDatasetStructure = await window.buildDatasetStructureJsonFromImportedData(
509+
console.log("Current file explorer path:", currentFileExplorerPath);
510+
const builtDatasetStructure = await window.buildDatasetStructureJsonFromImportedData(
508511
list.folders,
509-
currentFileExplorerPath,
512+
"dataset_root/", // Use dataset_root as the root folder since we are importing the root in this case
510513
true
511514
);
512515

513-
window.sodaJSONObj["dataset-structure"] = buildDatasetStructure[0];
516+
window.sodaJSONObj["dataset-structure"] = builtDatasetStructure[0];
514517
window.sodaJSONObj["metadata-files"] = list.files;
515518
const forbiddenFileNames = [];
516519
const problematicFiles = [];
@@ -604,7 +607,7 @@ window.handleLocalDatasetImport = async (path) => {
604607
window.sodaJSONObj = await window.addManifestDetailsToDatasetStructure(
605608
window.sodaJSONObj,
606609
list.manifestFiles,
607-
buildDatasetStructure
610+
builtDatasetStructure
608611
);
609612

610613
return true;

0 commit comments

Comments
 (0)