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

SIRI-942 revamp saving of code-list-entries #1949

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

ymo-sci
Copy link
Contributor

@ymo-sci ymo-sci commented Mar 7, 2024

Description

Due to changes of Bootstrap5 we set the code to disabled to have correct css. disabled field won't be sent in the request, so we change the route and include the id in the route. This also unifies the behaviour to many other routes, where /entity/new is the route to create a new entity and /entity/:1 will show the editor as well for entry with given id.

BREAKING - Changed behaviour: - if you create a new code-list-entry with an existing code we now no more edit the existing one (which was also kindly unintuitive until now) and will throw an error instead..

Occurrences of route-calling of /code-list/:1/entry must be changed to /code-list/:1/entry/:2

Additional Notes

  • This PR fixes or works on following ticket(s): SIRI-942
  • This PR is related to PR:

Checklist

  • Code change has been tested and works locally
  • Code was formatted via IntelliJ and follows SonarLint & best practices
  • Patch Tasks: Is local execution of Patch Tasks necessary? If so, please also mark the PR with the tag.

Due to changes of Bootstrap5 we set the code to disabled to have correct css. disabled field won't be sent in the request, so we change the route and include the id in the route.
This also unifies the behaviour to many other routes, where /entity/new is the route to create a new entity and /entity/:1 will show the editor as well for entry with given id.

BREAKING - Changed behaviour: - if you create a new code-list-entry with an existing code we now no more edit the existing one (which was also kindly unintuitive until now) and will throw an error instead..

- fixes: SIRI-942
@ymo-sci ymo-sci added 🐛 Bugfix Contains only a small fix for an existing bug 💣 BREAKING CHANGE Contains non-backwards compatible changes to public methods or changes the behavior of existing code labels Mar 7, 2024
@ymo-sci ymo-sci merged commit 692af69 into develop Mar 13, 2024
3 checks passed
@ymo-sci ymo-sci deleted the feature/ymo/SIRI-942-codelists branch March 13, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💣 BREAKING CHANGE Contains non-backwards compatible changes to public methods or changes the behavior of existing code 🐛 Bugfix Contains only a small fix for an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants