Skip to content

OBGM-552 Unable to add items to PO through import#4131

Merged
awalkowiak merged 2 commits intofeature/upgrade-to-grails-3.3.10from
OBGM-552
Jul 4, 2023
Merged

OBGM-552 Unable to add items to PO through import#4131
awalkowiak merged 2 commits intofeature/upgrade-to-grails-3.3.10from
OBGM-552

Conversation

@alannadolny
Copy link
Collaborator

No description provided.

Copy link
Member

@jmiranda jmiranda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM, I guess.

However, I don't really understand how the fix solves the problem because it's not obvious what is happening.

@alannadolny could you please explain the issue in the ticket. What is different about YML that causes the issue. And also make sure this works if we were to override the configuration in openboxes-config.groovy.

if (existingValue != importedValue) {
throw new IllegalArgumentException("Import must not change ${property} of item ${orderItem.productCode}, before: ${existingValue}, after: ${importedValue}")
}
propertiesMap.deny.each { property ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move propertiesMap.deny to the excludedProperties variable, and make it nullsafe? In case someone removes it from the config?

@awalkowiak awalkowiak merged commit 1c8261a into feature/upgrade-to-grails-3.3.10 Jul 4, 2023
@awalkowiak awalkowiak deleted the OBGM-552 branch July 4, 2023 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants