Code review fixes for PR #448#450
Conversation
Review Summary by QodoRefactor JQL query generation and simplify issue lookup logic
WalkthroughsDescription• Refactor _get_existing_jira_issue_query to return only issue keys tuple • Move JQL query construction into get_existing_jira_issue caller function • Simplify control flow by replacing conditional with for-else pattern • Remove unused Tuple import and simplify nested getattr calls • Update test cases to match new function signature and behavior Diagramflowchart LR
A["_get_existing_jira_issue_query<br/>returns tuple of keys"] -->|"issue_keys"| B["get_existing_jira_issue<br/>constructs JQL"]
B -->|"JQL query"| C["client.search_issues"]
C -->|"results"| D["Filter and cache<br/>downstream issue"]
File Changes1. sync2jira/downstream_issue.py
|
Code Review by Qodo
1.
|
|
/retest |
webbnh
left a comment
There was a problem hiding this comment.
Looks good, but it needs a little polish.
The docstring for _get_existing_jira_issue_query() needs to be updated, and either it or the actual return need to be brought into alignment. (Qodo commented on this, too.) And, I recommend changing the function's name.
The encapsulation of _jira_user_display_label() test is excellent, but the test for it is missing a case or two. Also, Qodo has a comment about its code that we should consider.
Fixes for comments raised in PR #448.