Skip to content

Commit

Permalink
feat: theme properties as string
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter committed Mar 28, 2024
1 parent 74f7829 commit 8961474
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public interface WorkspaceConfigMapper {
@Mapping(target = "baseUrl", source = "requestDTO.baseUrl")
WorkspaceDTO map(WorkspaceAbstract workspaceInfo, GetWorkspaceConfigRequestDTO requestDTO);

@Mapping(expression = "java( String.valueOf(themeInfo.getProperties()) )", target = "properties")
ThemeDTO mapTheme(Theme themeInfo);

@Mapping(target = "productNames", source = "products")
Expand Down
3 changes: 2 additions & 1 deletion src/main/openapi/openapi-bff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ components:
Theme:
required:
- name
- properties
type: object
properties:
name:
Expand All @@ -205,7 +206,7 @@ components:
assetsUpdateDate:
type: string
properties:
type: object
type: string

Route:
type: object
Expand Down
6 changes: 4 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ org.eclipse.microprofile.rest.client.propagateHeaders=apm-principal-token
%prod.quarkus.rest-client.onecx_permission_svc.url=http://onecx-permission-svc:8080
%prod.quarkus.rest-client.onecx_user_profile_svc.url=http://onecx-user-profile-svc:8080

#MOCK FOR REMOTE COMPONENTS => should be removed when implemented
onecx.component.mock.keys[0]=portalmenu

%prod.quarkus.oidc-client.client-id=${quarkus.application.name}

Expand Down Expand Up @@ -79,11 +81,11 @@ quarkus.test.integration-test-profile=test

# TEST
%test.quarkus.http.test-port=0
%test.tkit.log.json.enabled=true
%test.tkit.log.json.enabled=false
%test.quarkus.mockserver.devservices.config-class-path=true
%test.quarkus.mockserver.devservices.config-file=/mockserver.properties
%test.quarkus.mockserver.devservices.config-dir=/mockserver
%test.quarkus.mockserver.devservices.log=true
%test.quarkus.mockserver.devservices.log=false
%test.quarkus.mockserver.devservices.reuse=true
%test.quarkus.rest-client.onecx_workspace_svc.url=${quarkus.mockserver.endpoint}
%test.quarkus.rest-client.onecx_theme_svc.url=${quarkus.mockserver.endpoint}
Expand Down

0 comments on commit 8961474

Please sign in to comment.