Skip to content

ref(tsc): organization details endpoint to apiOptions#113782

Merged
TkDodo merged 1 commit intomasterfrom
tkdodo/ref/organization-details-endpoint-to-apiOptions
Apr 24, 2026
Merged

ref(tsc): organization details endpoint to apiOptions#113782
TkDodo merged 1 commit intomasterfrom
tkdodo/ref/organization-details-endpoint-to-apiOptions

Conversation

@TkDodo
Copy link
Copy Markdown
Collaborator

@TkDodo TkDodo commented Apr 23, 2026

No description provided.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 23, 2026
Comment on lines -19 to -23
const v1QueryKey = [
getApiUrl('/organizations/$organizationIdOrSlug/', {
path: {organizationIdOrSlug: organization.slug},
}),
] as ApiQueryKey;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

note: since all usages of '/organizations/$organizationIdOrSlug/' have been moved to apiOptions, we don't need to juggle 2 caches here anymore

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Beautiful 🙏🏼

] satisfies ApiQueryKey,
queryFn: context => fetchDataQuery<Organization>(context).then(result => result[0]),
enabled: !!organization,
refetchOnWindowFocus: true,
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

removed because it’s the default value 🤷

@TkDodo TkDodo marked this pull request as ready for review April 23, 2026 11:03
@TkDodo TkDodo requested review from a team as code owners April 23, 2026 11:03
@TkDodo TkDodo requested a review from a team April 23, 2026 11:03
Comment thread static/app/views/setupWizard/utils/useOrganizationDetails.tsx
@TkDodo TkDodo merged commit ed941a8 into master Apr 24, 2026
66 checks passed
@TkDodo TkDodo deleted the tkdodo/ref/organization-details-endpoint-to-apiOptions branch April 24, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants