Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IWF-174: Incorrect overriding stateOptions when reusing a static valu… #279

Merged
merged 9 commits into from
Dec 13, 2024

Conversation

stevo89519
Copy link
Contributor

…e as getStateOptions()

Description

Incorrect overriding stateOptions when reusing a static value as getStateOptions()

The openapi-generator property 'generateBuilders' is not working. I will reach out to them to see if they recognize the issue. In the meantime, the solution is to duplicate the StateOptions when we fetch it from the WorkflowState so that any changes to the Options are not persisted back to the State by reference.

Checklist

  • Code compiles correctly
  • Tests for the changes have been added
  • All tests passing
  • This PR change is backwards-compatible
  • This PR CONTAINS a (planned) breaking change (it is NOT backwards-compatible)

Related Issue

Closes #<issue_number>

…a/sharrison/IWF-174

# Conflicts:
#	src/main/java/io/iworkflow/core/Client.java
#	src/main/java/io/iworkflow/core/mapper/StateMovementMapper.java
@stevo89519 stevo89519 merged commit 055f283 into main Dec 13, 2024
1 check passed
@stevo89519 stevo89519 deleted the jira/sharrison/IWF-174 branch December 13, 2024 18:33
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