Skip to content

Changes in productGroups for CUSTOM productGroupType are ignored #360

@mvpett

Description

@mvpett

We encountered a situation where after adding a new item in customDataGroupItems we did not notice any changes in the environment.
This was not the first run on a clean environment. It was subsequent launch.
The expected behaviour was to find a new customDataGroupItem by bootstrap-task and update the database entry.

Situation looked like this.

  1. legal-entities.json file contains similar entry. Product group and customDataGroupItem defined below are present in the database.
"productGroups":[
                      {
                         "name":"PRODUCT GROUP NAME",
                         "description":"DESCRIPTION",
                         "productGroupType":"CUSTOM",
                         "customDataGroupItems":[
                            {
                               "internalId":"some-id"
                            }
                         ]
                      }
]
  1. Changes were made to legal-entities.json file - new customDataGroupItem was added.
"productGroups":[
                      {
                         "name":"PRODUCT GROUP NAME",
                         "description":"DESCRIPTION",
                         "productGroupType":"CUSTOM",
                         "customDataGroupItems":[
                            {
                               "internalId":"some-id"
                            },
                            {
                               "internalId":"some-other-id"
                            }
                         ]
                      }
]
  1. Environment synced with new configuration - we can see contents of new legal-entities.json file in configMap.
  2. After bootstrap-task job is done customDataGroupItem with internalId="some-other-id" is absent in the database.

We expect that it should be present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions