Skip to content

Commit

Permalink
Revert "feat: added display name column (#36)" (#37)
Browse files Browse the repository at this point in the history
This reverts commit de8eb8a.
  • Loading branch information
andrejpetras authored Mar 5, 2024
1 parent de8eb8a commit 614a722
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public class Product extends TraceableEntity {
@Column(name = "PRODUCT_NAME")
private String productName;

@Column(name = "DISPLAY_NAME")
private String displayName;

@Column(name = "BASE_URL", unique = true)
private String baseUrl;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ default Product create(CreateProductRequestDTO dto, Workspace workspace) {

@Mapping(target = "workspace", ignore = true)
@Mapping(target = "productName", ignore = true)
@Mapping(target = "displayName", ignore = true)
@Mapping(target = "persisted", ignore = true)
@Mapping(target = "modificationUser", ignore = true)
@Mapping(target = "modificationDate", ignore = true)
Expand Down
2 changes: 0 additions & 2 deletions src/main/openapi/di-workspace-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ components:
properties:
productName:
type: string
displayName:
type: string
baseUrl:
type: string
microfrontends:
Expand Down
6 changes: 0 additions & 6 deletions src/main/openapi/onecx-workspace-internal-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,6 @@ components:
type: string
productName:
type: string
displayName:
type: string
baseUrl:
type: string
RoleSearchCriteria:
Expand Down Expand Up @@ -1385,8 +1383,6 @@ components:
type: string
productName:
type: string
displayName:
type: string
baseUrl:
type: string
microfrontends:
Expand Down Expand Up @@ -1446,8 +1442,6 @@ components:
type: string
productName:
type: string
displayName:
type: string
baseUrl:
type: string
microfrontends:
Expand Down
2 changes: 0 additions & 2 deletions src/main/openapi/onecx-workspace-v1-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ components:
properties:
productName:
type: string
displayName:
type: string
baseUrl:
type: string
microfrontends:
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/db/changeLog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
<include relativeToChangelogFile="true" file="v1/2023-11-09-create-tables.xml"/>
<include relativeToChangelogFile="true" file="v1/2023-11-09-data-import-log.xml"/>
<include relativeToChangelogFile="true" file="v1/2024-02-22-create-table-image.xml"/>
<include relativeToChangelogFile="true" file="v1/2024-03-05-add-product-display-name.xml"/>


</databaseChangeLog>
15 changes: 0 additions & 15 deletions src/main/resources/db/v1/2024-03-05-add-product-display-name.xml

This file was deleted.

6 changes: 3 additions & 3 deletions src/test/resources/data/testdata-external.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<MENU_ITEM_I18N menuitem_guid="33-1" language="en" i18n="EN translation" />

<!-- PRODUCT -->
<PRODUCT guid="1234" optlock="0" workspace_guid="11-111" product_name="onecx-core" display_name="onecx-core" base_url="/core" tenant_id="tenant-100"/>
<PRODUCT guid="5678" optlock="0" workspace_guid="11-222" product_name="onecx-core" display_name="onecx-core" base_url="/test" tenant_id="tenant-100"/>
<PRODUCT guid="1111" optlock="0" workspace_guid="11-111" product_name="onecx-apm" display_name="onecx-core" base_url="/apm" tenant_id="tenant-100"/>
<PRODUCT guid="1234" optlock="0" workspace_guid="11-111" product_name="onecx-core" base_url="/core" tenant_id="tenant-100"/>
<PRODUCT guid="5678" optlock="0" workspace_guid="11-222" product_name="onecx-core" base_url="/test" tenant_id="tenant-100"/>
<PRODUCT guid="1111" optlock="0" workspace_guid="11-111" product_name="onecx-apm" base_url="/apm" tenant_id="tenant-100"/>

</dataset>
4 changes: 2 additions & 2 deletions src/test/resources/data/testdata-internal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<SUBJECT_LINK workspace_guid="11-111" link_label="lebel_2" link_url="url-2"/>

<!-- PRODUCT -->
<PRODUCT guid="1234" optlock="10" workspace_guid="11-111" product_name="onecx-core" display_name="onecx-core" base_url="/core" tenant_id="tenant-100"/>
<PRODUCT guid="5678" optlock="10" workspace_guid="11-111" product_name="onecx-apm" display_name="onecx-apm" base_url="/apm" tenant_id="tenant-100"/>
<PRODUCT guid="1234" optlock="10" workspace_guid="11-111" product_name="onecx-core" base_url="/core" tenant_id="tenant-100"/>
<PRODUCT guid="5678" optlock="10" workspace_guid="11-111" product_name="onecx-apm" base_url="/apm" tenant_id="tenant-100"/>

<!-- MICROFRONTEND -->
<MICROFRONTEND guid="1234" mfe_id="menu" base_path="/menu" product_guid="1234"/>
Expand Down
2 changes: 0 additions & 2 deletions src/test/resources/import/workspace-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@
{
"baseUrl" : "/core",
"productName": "onecx-core",
"displayName": "onecx-core",
"microfrontends": [
{
"mfeId": "menu",
Expand Down Expand Up @@ -443,7 +442,6 @@
{
"baseUrl" : "/core",
"productName": "onecx-core",
"displayName": "onecx-core",
"microfrontends": [
{
"mfeId": "menu",
Expand Down

0 comments on commit 614a722

Please sign in to comment.