Skip to content

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

Open
dklawren wants to merge 2 commits intomozilla-bteam:masterfrom
dklawren:1823503
Open

Bug 1823503 - After add comment, sometimes all status flags are changed to fixed by itself.#2042
dklawren wants to merge 2 commits intomozilla-bteam:masterfrom
dklawren:1823503

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