-
Notifications
You must be signed in to change notification settings - Fork 362
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
base: master
Are you sure you want to change the base?
Conversation
63b81f5
to
ec8a4d2
Compare
ec8a4d2
to
a2a25eb
Compare
a2a25eb
to
c262718
Compare
There was a problem hiding this 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): |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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?
No description provided.