-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
impr(jira): switch to paginated project endpoint for jira issue config #89707
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #89707 +/- ##
===========================================
+ Coverage 42.11% 87.68% +45.56%
===========================================
Files 10216 10213 -3
Lines 575535 576222 +687
Branches 22719 22685 -34
===========================================
+ Hits 242400 505272 +262872
+ Misses 332692 70516 -262176
+ Partials 443 434 -9 |
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.
🔥 love the inclusion of the project title, and ✅ tests are great too! just a few comments and questions
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.
One small comment, great work 🚀
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.
thought i approved mb
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.
Nice work on this!
projects_form_field = { | ||
"name": "project", | ||
"label": "Jira Project", | ||
"choices": [(p["id"], f"{p["key"]} - {p["name"]}") for p in jira_projects], | ||
"default": meta["id"], | ||
"type": "select", | ||
"updatesForm": True, | ||
"required": True, | ||
} |
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.
Part of the "leaving code better than we found it" mantra, it'd be nice if we could create a typeddict or dataclass for this in the future.
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.
do you mind if I pull out the FormField typing to another PR ? It's going to add a lot of changes unrelated to the original PRs goal.
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.
moving formfield typing to another PR
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
PR reverted: 13efe59 |
…ue config (#89707)" This reverts commit 515d2a1. Co-authored-by: Christinarlong <[email protected]>
Relies on FF: #89709
Addresses: TRI-123
For getting the Jira issue config, switch to using the paginated endpoint for getting projects. O also added a QOL so we'll display the label with both the Jira project key and project name. Docs for Jira search/paginated projects endpoint
Flow:
Initial load (max 10 projects)

Search load
