Skip to content

Logging with field operation="ignore" is confusing #983

@leplatrem

Description

@leplatrem

Source:

action_context = ActionContext(
action=action,
bug=bug,
event=event,
operation=Operation.IGNORE,
jira=JiraContext(project=action.jira_project_key, issue=linked_issue_key),
extra={k: str(v) for k, v in action.parameters.model_dump().items()},
)
if action_context.jira.issue is None:
if event.target == "bug":
action_context = action_context.update(operation=Operation.CREATE)
else:
# Check that issue exists (and is readable)
jira_issue = jira.get_service().get_issue(

In logs we are seeing Getting issue XXXX-124 with operation=ignore whereas at this point we don't haven't made a decision whether the event will be ignored.
Screenshot 2024-04-29 at 13 24 57

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions