Skip to content

OBPIH-6288 Do not allow to re-generate source code when importing pro…#4573

Merged
awalkowiak merged 2 commits intorelease/0.9.1from
OBPIH-6288
Apr 2, 2024
Merged

OBPIH-6288 Do not allow to re-generate source code when importing pro…#4573
awalkowiak merged 2 commits intorelease/0.9.1from
OBPIH-6288

Conversation

@kchelstowski
Copy link
Collaborator

…duct sources and the code is not provided

String sourceCode = productSupplier.code
productSupplier.properties = params
// Do not allow to bind an empty source code, which caused the code to be re-generated for an existing product supplier (OBPIH-6288)
// The code could be overwritten by the binding in the 212th line, hence we'd like to bring back the existing code, if the one in params is null/empty
Copy link
Collaborator

Choose a reason for hiding this comment

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

in the 212th line

If someone changes the code above, it won't be 212th line 😄

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah let's avoid doing that, I know I did it once or twice in the past, but let's refrain from adhering to line numbers in comments.

String sourceCode = productSupplier.code
productSupplier.properties = params
// Do not allow to bind an empty source code, which caused the code to be re-generated for an existing product supplier (OBPIH-6288)
// The code could be overwritten by the binding in the 212th line, hence we'd like to bring back the existing code, if the one in params is null/empty
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah let's avoid doing that, I know I did it once or twice in the past, but let's refrain from adhering to line numbers in comments.

@awalkowiak awalkowiak merged commit d5f6fdb into release/0.9.1 Apr 2, 2024
@awalkowiak awalkowiak deleted the OBPIH-6288 branch April 2, 2024 17:18
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.

3 participants