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 1923923 - Reuse BugJobMap instead of BugscacheOccurrence #8467

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

Conversation

vrigal
Copy link
Collaborator

@vrigal vrigal commented Jan 30, 2025

No description provided.

@vrigal vrigal force-pushed the internal-bugjobmap branch from 63b81f5 to ec8a4d2 Compare January 30, 2025 16:54
@vrigal vrigal force-pushed the internal-bugjobmap branch from ec8a4d2 to a2a25eb Compare January 31, 2025 13:21
@vrigal vrigal force-pushed the internal-bugjobmap branch from a2a25eb to c262718 Compare January 31, 2025 14:13
@vrigal vrigal marked this pull request as ready for review January 31, 2025 14:14
@vrigal vrigal changed the title WIP: Reuse BugJobMap instead of BugscacheOccurrence Bug 1923923 - Reuse BugJobMap instead of BugscacheOccurrence Jan 31, 2025
Copy link
Collaborator

@jmaher jmaher left a comment

Choose a reason for hiding this comment

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

overall this looks good. my comments might be unnecessary

@@ -772,12 +754,22 @@ def who(self):
return "autoclassifier"

@classmethod
def create(cls, job_id, bug_id, user=None, bug_open=False):
def create(cls, *, job_id, internal_bug_id=None, bugzilla_id=None, user=None, bug_open=False):
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is the * as a parameter?

def create(cls, job_id, bug_id, user=None, bug_open=False):
def create(cls, *, job_id, internal_bug_id=None, bugzilla_id=None, user=None, bug_open=False):
if (bool(internal_bug_id) ^ bool(bugzilla_id)) is False:
raise ValueError("Only one of internal bug ID or Bugzilla ID must be set")
Copy link
Collaborator

Choose a reason for hiding this comment

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

won't we always have internal_bug_id set, but optionally have bugzilla-id set?

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

Successfully merging this pull request may close these issues.

2 participants