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

585 flagdepends #611

Merged
merged 2 commits into from
Jul 11, 2024
Merged

585 flagdepends #611

merged 2 commits into from
Jul 11, 2024

Conversation

bmartin5692
Copy link
Contributor

Closes #585

The cause of this bug was a race condition as both getBoxFlags and getDetails were executed at once. In some cases the flag details would return before the boxflags returned and updated the flaglist, resulting in it selecting the empty option.

This fix makes getBoxFlags return a promise which we now await before moving to getDetails.


  • Also noticed a jquery error when creating flags from a box link. As the create flag views aren't modals, removed data-toggle="modal" for these button links to fix.

The cause of this bug was a race condition as both getBoxFlags and getDetails were executed at once.  In some cases the flag details would return before the boxflags returned and updated the flaglist, resulting in it selecting the empty option.

This fix makes getBoxFlags return a promise which we now await before moving to getDetails.
The create flag views aren't modals, but the links where a box.uuid is passed into them used data-toggle="modal" which caused a jquery error.

Removed data-toggle="modal" for these button links to fix.
@eljeffeg eljeffeg merged commit 93217b1 into moloch--:master Jul 11, 2024
2 checks passed
@bmartin5692 bmartin5692 deleted the 585-flagdepends branch July 11, 2024 13:59
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.

Editing a flag - lose the dependency
2 participants