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

alert count: don't get them on every dropdown click #4149

Merged
merged 2 commits into from
Mar 30, 2021

Conversation

valentijnscholten
Copy link
Member

fixes #4147

In base.html there's jQuery that attaches the get_alerts() function to every element with class dropdown-toggle.
The intention is to get the new alerts whenever somebody clicks on the alerts dropdown. But as a side effect it is also attached to every other dropdown on screen, i.e. opening the filters, opening similar findings, selecting findings for bulk edit, etc.

@valentijnscholten valentijnscholten added bugfix performance performance improvement or bug report labels Mar 27, 2021
@valentijnscholten
Copy link
Member Author

Later I thought maybe it was on purpose? To get updated alerts every time the user interacts with the UI? In that case we should change it into update_alert_count() because get_alerts doesn't update anything visible in the UI. wdyt @devGregA @mtesauro @Maffooch

@madchap
Copy link
Collaborator

madchap commented Mar 28, 2021

Still would seem overkill to me.

@valentijnscholten valentijnscholten added this to the 1.14.0 milestone Mar 29, 2021
@damiencarol damiencarol requested review from a team March 29, 2021 09:53
@madchap madchap merged commit cd6f8a4 into DefectDojo:dev Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix performance performance improvement or bug report
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants