Skip to content

feat(ui): Replace OrganizationAuth DeprecatedAsyncComponent #86556

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

evanpurkhiser
Copy link
Member

No description provided.

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner March 6, 2025 21:59
@evanpurkhiser evanpurkhiser requested review from a team and removed request for a team March 6, 2025 21:59
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 6, 2025
* TODO(epurkhiser): This does not work right now as we still fallback to the
* old SSO auth configuration page
*/
handleConfigure = (provider: AuthProvider) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Just removing these because they were unused and it's very unlikely we need to reference this code in the future

Comment on lines 15 to 19
const {data: providerList, isLoading: loadingProviders} = useApiQuery<AuthProvider[]>(
[`/organizations/${organization.slug}/auth-providers/`],
{staleTime: 0}
);
const {data: provider, isLoading: loadingProvider} = useApiQuery<AuthProvider>(
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const {data: providerList, isLoading: loadingProviders} = useApiQuery<AuthProvider[]>(
[`/organizations/${organization.slug}/auth-providers/`],
{staleTime: 0}
);
const {data: provider, isLoading: loadingProvider} = useApiQuery<AuthProvider>(
const {data: providerList, isPending: loadingProviders} = useApiQuery<AuthProvider[]>(
[`/organizations/${organization.slug}/auth-providers/`],
{staleTime: 0}
);
const {data: provider, isPending: loadingProvider} = useApiQuery<AuthProvider>(

@evanpurkhiser evanpurkhiser requested review from scttcper and a team March 7, 2025 22:44
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-ui-replace-organizationauth-deprecatedasynccomponent branch from d9b50cb to 7f3fa42 Compare March 7, 2025 22:45
Comment on lines +16 to +28
const {
data: providerList,
isLoading: loadingProviders,
error: errorProviders,
} = useApiQuery<AuthProvider[]>(
[`/organizations/${organization.slug}/auth-providers/`],
{staleTime: 0}
);
const {
data: provider,
isLoading: loadingProvider,
error: errorProvider,
} = useApiQuery<AuthProvider>([`/organizations/${organization.slug}/auth-provider/`], {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const {
data: providerList,
isLoading: loadingProviders,
error: errorProviders,
} = useApiQuery<AuthProvider[]>(
[`/organizations/${organization.slug}/auth-providers/`],
{staleTime: 0}
);
const {
data: provider,
isLoading: loadingProvider,
error: errorProvider,
} = useApiQuery<AuthProvider>([`/organizations/${organization.slug}/auth-provider/`], {
const {
data: providerList,
isPending: loadingProviders,
error: errorProviders,
} = useApiQuery<AuthProvider[]>(
[`/organizations/${organization.slug}/auth-providers/`],
{staleTime: 0}
);
const {
data: provider,
isPending: loadingProvider,
error: errorProvider,
} = useApiQuery<AuthProvider>([`/organizations/${organization.slug}/auth-provider/`], {

Copy link
Member Author

Choose a reason for hiding this comment

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

lol right

@evanpurkhiser evanpurkhiser enabled auto-merge (squash) March 7, 2025 22:57
@evanpurkhiser evanpurkhiser merged commit 3d2b9ed into master Mar 7, 2025
42 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/feat-ui-replace-organizationauth-deprecatedasynccomponent branch March 7, 2025 23:00
jan-auer added a commit that referenced this pull request Mar 10, 2025
* master: (57 commits)
  ref(getting-started): Change code to always update loader script when products changes (#86583)
  ref(spans): Detect performance issues directly in segments consumer (#86595)
  ref(getting-started): Update copies, replacing 'Sentry dashboard' with 'Sentry Issues' (#86672)
  ref(product-selection): Update code to not strip url (#86582)
  ref(quick-start): Replace 'record' with 'create_or_update' in 'record_new_project' (#86663)
  ref(assemble): Remove old `find_missing_chunks` method (#86588)
  fix(views):Exclude newly added views from last visited update as well (#86653)
  feat(workflow_engine): Only execute enabled Detectors (#86652)
  fix(autofix): Github links, remove seer branding, and UI cleanup (#86640)
  fix(seer-issues-patch) More parsing of functions for Python (#86558)
  ref(ui): Remove sentry.eot (#86649)
  feat(alerts): Restrict uptime/crons overview buttons for alerts:write (#86436)
  chore(deps): bump axios from 1.7.7 to 1.8.2 (#86642)
  deps(ui): Upgrade prettier (#86634)
  deps(ui): Upgrade eslint, biome (#86630)
  fix(shared-views): Fix default view passing to last visited endpoint (#86632)
  feat(billing): update copy for payg disabled CTA (#86143)
  ref(ui): Remove usage of withOrganization from organizationAuthList (#86554)
  fix(crons): Fix disabled state of disable button (#86637)
  feat(ui): Replace OrganizationAuth DeprecatedAsyncComponent (#86556)
  ...
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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