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

Bug 1823503 - After add comment, sometimes all status flags are changed to fixed by itself. #2042

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dklawren
Copy link
Collaborator

@dklawren dklawren commented Mar 29, 2023

Although I was never able to reproduce this reliably in production and not at all locally, there were some areas that could use some fixing to reduce overlap and possible conflict.

BugModal was utilizing TrackingFlags code to load the tracking flags instead of loading the data itself. TrackingFlags/Extension.pm therefore could have been loading flag data incorrectly for the wrong bug and/or with incorrect current values. And then passing it along to BugModal/Extension.pm.

This change makes makes BugModal load flag data itself. TrackingFlags is only needed for loading the tracking_flag_json which is used for tracking flag mandatory comments.

I also refactored BugModal to simplify the data sent along to the template instead of passing full flag objects. This will make it simpler in the future to debug what the data looks like that is being passed.

* Updated bug_modal template to properly hide flags with out a value set
@dklawren dklawren requested a review from globau March 29, 2023 21:11
@dklawren dklawren added the WIP label Mar 30, 2023
@dklawren dklawren removed the request for review from globau March 30, 2023 20:29
@dklawren
Copy link
Collaborator Author

Although I would still like to see these changes happen at some point i am going to make this WIP for now as I want to add some test cases and some other improvements.

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

Successfully merging this pull request may close these issues.

1 participant