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

fix: missing enums are not immediately saved #1940

Merged
merged 2 commits into from
Jul 25, 2023
Merged

fix: missing enums are not immediately saved #1940

merged 2 commits into from
Jul 25, 2023

Conversation

TheSlimvReal
Copy link
Collaborator

Currently it sometimes happens that users end up with a (new) empty enum object and the database has conflicts on enum documents.

This can happen when

  • The user just started to sync
  • The enum is requested before the configurable enums are synced

Then a new enum is created and saved which will conflict with the existing enum once it is synced.
To prevent this we are not saving the empty enum immediately.
This means the enum is only saved if new options are added.
Once the existing enum is synced the newly created one will just be discarded.

@TheSlimvReal TheSlimvReal marked this pull request as ready for review July 24, 2023 07:50
@github-actions
Copy link

Deployed to https://pr-1940.aam-digital.net/

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sleidig sleidig merged commit 5028765 into master Jul 25, 2023
@sleidig sleidig deleted the enum_conflicts branch July 25, 2023 12:09
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.22.0-master.9 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.22.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants