Skip to content

Commit 87ac9b2

Browse files
authored
Merge branch 'master' into add_function_job_filters
2 parents faf78d4 + c5371bd commit 87ac9b2

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

services/static-webserver/client/Manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"osparc/schedulerWorker.js",
2828
"svg/svg.js",
2929
"svg/svg.path.js",
30-
"jsondiffpatch/jsondiffpatch.min.js",
30+
"jsondiffpatch/jsondiffpatch-0.7.3.min.js",
3131
"jsontreeviewer/jsonTree.js",
3232
"marked/marked.min.js",
3333
"DOMPurify/purify.min.js"

services/static-webserver/client/source/class/osparc/dashboard/StudyBrowser.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,12 +1210,12 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
12101210
}
12111211
// then update the search context this will trigger the search
12121212
const searchContext = data["searchContext"];
1213-
switch (searchContext) {
1214-
case osparc.dashboard.StudyBrowser.CONTEXT.SEARCH_PROJECTS:
1215-
case osparc.dashboard.StudyBrowser.CONTEXT.SEARCH_TEMPLATES:
1216-
case osparc.dashboard.StudyBrowser.CONTEXT.SEARCH_PUBLIC_TEMPLATES:
1217-
this._changeContext(searchContext);
1218-
break;
1213+
if ([
1214+
osparc.dashboard.StudyBrowser.CONTEXT.SEARCH_PROJECTS,
1215+
osparc.dashboard.StudyBrowser.CONTEXT.SEARCH_TEMPLATES,
1216+
osparc.dashboard.StudyBrowser.CONTEXT.SEARCH_PUBLIC_TEMPLATES,
1217+
].includes(searchContext)) {
1218+
this._changeContext(searchContext);
12191219
}
12201220
});
12211221
},
@@ -1304,7 +1304,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
13041304

13051305
_changeContext: function(context, workspaceId = null, folderId = null) {
13061306
if (
1307-
!context.includes("search") && // load projects if search string changed
1307+
!context.includes("search") && // move on if it's a search context, it will be handled later
13081308
context === this.getCurrentContext() &&
13091309
workspaceId === this.getCurrentWorkspaceId() &&
13101310
folderId === this.getCurrentFolderId()
@@ -1315,11 +1315,12 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
13151315

13161316
if (
13171317
context.includes("search") &&
1318+
context === this.getCurrentContext() &&
13181319
this.__lastUrlParams &&
13191320
"text" in this.__lastUrlParams &&
13201321
this.__lastUrlParams["text"] === this._searchBarFilter.getTextFilterValue()
13211322
) {
1322-
// text search didn't change
1323+
// context and text search didn't change
13231324
return;
13241325
}
13251326

services/static-webserver/client/source/class/osparc/wrapper/JsonDiffPatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ qx.Class.define("osparc.wrapper.JsonDiffPatch", {
5555

5656
init: function() {
5757
// initialize the script loading
58-
const jsondiffpatchPath = "jsondiffpatch/jsondiffpatch.min.js"; // own build required for the formatters to work
58+
const jsondiffpatchPath = "jsondiffpatch/jsondiffpatch-0.7.3.min.js"; // own build required for the formatters to work
5959
const dynLoader = new qx.util.DynamicScriptLoader([
6060
jsondiffpatchPath
6161
]);

services/web/server/src/simcore_service_webserver/projects/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _replace_uuids(node: str | list | dict) -> str | list | dict:
9494
)
9595

9696
# exclude annotations UI info for conversations done in the source project
97-
annotations = project_copy.get("ui", {}).get("annotations", {}).copy()
97+
annotations = deepcopy(project_copy.get("ui", {}).get("annotations", {})) or {}
9898
for ann_id, ann in annotations.items():
9999
if ann["type"] == "conversation":
100100
project_copy["ui"]["annotations"].pop(ann_id)

0 commit comments

Comments
 (0)