From 18cf30411c44bf6fbad343564c613cc35ad80127 Mon Sep 17 00:00:00 2001 From: Torsten Simon Date: Fri, 8 Nov 2024 18:46:48 +0100 Subject: [PATCH 01/19] fix:get available context prevent duplicate domain returns, return real node data --- .../service/config/ConfigServiceImpl.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Backend/services/core/src/main/java/org/edu_sharing/service/config/ConfigServiceImpl.java b/Backend/services/core/src/main/java/org/edu_sharing/service/config/ConfigServiceImpl.java index 9fa1fa26c..4fdec3579 100644 --- a/Backend/services/core/src/main/java/org/edu_sharing/service/config/ConfigServiceImpl.java +++ b/Backend/services/core/src/main/java/org/edu_sharing/service/config/ConfigServiceImpl.java @@ -116,12 +116,17 @@ public Context getContext(String domain) throws Exception { @Override public List getAvailableContext() throws Exception { - buildContextCache(); - return contextCache.getKeys() - .stream() - .map(contextCache::get) - .filter(Objects::nonNull) //maybe gets null while we are iterating over - .collect(Collectors.toList()); + return AuthenticationUtil.runAsSystem(() -> { + String eduSharingSystemFolderContext = userEnvironmentTool.getEdu_SharingContextFolder(); + Map> dynamicContextObjects = nodeService.getChildrenPropsByType(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, eduSharingSystemFolderContext, CCConstants.CCM_TYPE_CONTEXT); + return dynamicContextObjects + .values() + .stream() + .map(x -> x.get(CCConstants.CCM_PROP_CONTEXT_CONFIG).toString()) + .map(CheckedFunction.wrap(x -> objectMapper.readValue(x, Context.class), null)) + .filter(Objects::nonNull) + .collect(Collectors.toList()); + }); } private void buildContextCache() throws Exception { From fad3629a8267a8b1b68066d2d08cd419fc469288 Mon Sep 17 00:00:00 2001 From: Torsten Simon Date: Mon, 11 Nov 2024 11:01:26 +0100 Subject: [PATCH 02/19] fix:remove inline style --- .../pages/admin-page/mediacenter/mediacenter.component.html | 3 --- .../pages/admin-page/mediacenter/mediacenter.component.scss | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Frontend/src/app/pages/admin-page/mediacenter/mediacenter.component.html b/Frontend/src/app/pages/admin-page/mediacenter/mediacenter.component.html index a13987e2f..49ab72dbd 100644 --- a/Frontend/src/app/pages/admin-page/mediacenter/mediacenter.component.html +++ b/Frontend/src/app/pages/admin-page/mediacenter/mediacenter.component.html @@ -231,7 +231,6 @@

Date: Mon, 11 Nov 2024 13:39:05 +0100 Subject: [PATCH 03/19] fix:possible nlp, logging removed --- .../mds-editor-widget-facet-list.component.html | 2 +- .../mds-editor-widget-facet-list.component.ts | 1 - .../src/app/pages/search-page/search-page-restore.service.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-facet-list/mds-editor-widget-facet-list.component.html b/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-facet-list/mds-editor-widget-facet-list.component.html index f7c2fbae1..9f2da6e09 100644 --- a/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-facet-list/mds-editor-widget-facet-list.component.html +++ b/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-facet-list/mds-editor-widget-facet-list.component.html @@ -30,7 +30,7 @@