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 1904151 - Updates and improvements to Bugzilla/Report/Graph.pm and Bugzilla/API/V1/BugGraph.pm #2265

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

dklawren
Copy link
Collaborator

@dklawren dklawren commented Jun 21, 2024

  • Use breadth first instread of depth first for generating the JSON tree for /rest/bug/123/graph
  • Move the code that filters secure bugs and resolved bug to Bugzilla/Report/Graph.pm
    • This will allow later for showdependencytree.cgi and showdependencygraph.cgi to switch over to using Bugzilla/Report/Graph instead of each generating the trees themselves. This will remove duplication.
    • Will file separate bugs for the work in above

@dklawren dklawren requested a review from cgsheeh June 21, 2024 21:43
Copy link
Collaborator

@cgsheeh cgsheeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, what's the motivation behind the switch to BFS?

@dklawren
Copy link
Collaborator Author

Seems reasonable, what's the motivation behind the switch to BFS?

I mistakenly was using depth-first which meant the tree was being returned in the wrong order. breadth-first starts from the root bug and id and the order is more correct and matches the showdependencytree.cgi output.

@dklawren dklawren merged commit e37bbe8 into mozilla-bteam:master Jun 26, 2024
17 checks passed
@dklawren dklawren deleted the 1904151 branch June 26, 2024 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants