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

Use the new Fenix components model to move bugs out of Fenix:General #2399

Merged
merged 17 commits into from
Jul 8, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions bugbot/rules/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,21 @@ def get_bugs(self, date="today", bug_ids=[]):
# Classify those bugs
bugs = get_bug_ids_classification("component", bug_ids)

suhaibmujahid marked this conversation as resolved.
Show resolved Hide resolved
# Collect bugs classified as Fenix::General
fenix_general_bug_ids = [
bug_id
for bug_id, bug_data in bugs.items()
if "class" in bug_data and bug_data["class"] == "Fenix::General"
suhaibmujahid marked this conversation as resolved.
Show resolved Hide resolved
]

# Reclassify the Fenix::General bugs using the fenixcomponent model
if fenix_general_bug_ids:
fenix_general_classification = get_bug_ids_classification(
"fenixcomponent", fenix_general_bug_ids
)
suhaibmujahid marked this conversation as resolved.
Show resolved Hide resolved
for bug_id in fenix_general_classification:
suhaibmujahid marked this conversation as resolved.
Show resolved Hide resolved
bugs[bug_id] = fenix_general_classification[bug_id]

results = {}

for bug_id in sorted(bugs.keys()):
Expand Down