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

[AXON-202] Optimize Jira site resolution check at auth time #169

Merged
merged 9 commits into from
Mar 7, 2025

Conversation

marcomura
Copy link
Contributor

@marcomura marcomura commented Mar 5, 2025

Before the change, JqlManager was performing a check on the site to verify that its schema contains a resolution field in order to construct the correct default JQL query for it.

After the change, this check is performed at auth time and stored in the DetailedSiteInfo structure in the new hasResolutionField field.

This allows retrieving the default query for a site in constant time, and retrieving the list of all default queries (one for every site) with no latency compared to the approach before.

This change includes a backfill function in jqlManager.ts to handle the already-stored DetailedSiteInfo structures without the new hasResolutionField initialized.

Tested
√ Jira Cloud auth
√ Jira DC auth
√ BitBucket Cloud auth

Test plan
https://hello.atlassian.net/wiki/spaces/AIDO/pages/4962648247/3.4.13+-+Release+Test+Plan

cabella-dot
cabella-dot previously approved these changes Mar 5, 2025
Copy link
Contributor

@cabella-dot cabella-dot left a comment

Choose a reason for hiding this comment

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

I like it!

cabella-dot
cabella-dot previously approved these changes Mar 5, 2025
@marcomura marcomura self-assigned this Mar 7, 2025
@marcomura marcomura changed the title Optimize Jira site resolution check at auth time [AXON-202] Optimize Jira site resolution check at auth time Mar 7, 2025
Copy link
Collaborator

@bwieger-atlassian-com bwieger-atlassian-com left a comment

Choose a reason for hiding this comment

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

Copy link
Collaborator

@bwieger-atlassian-com bwieger-atlassian-com left a comment

Choose a reason for hiding this comment

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

LGTM

@marcomura marcomura merged commit 90fec2a into main Mar 7, 2025
2 checks passed
@marcomura marcomura deleted the refactor-jira-resolution-check branch March 7, 2025 22:12
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.

3 participants