Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: display error when fetching OAuth2 provider apps#11713

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
code-asher merged 2 commits intomainfromasher/display-oauth2-app/error
Jan 22, 2024

Conversation

code-asher
Copy link
Member

This was pulled out of#11609. I am trying to break out parts of that PR so we can review and merge it more easily.

@code-ashercode-asher changed the titleDisplay error when fetching OAuth2 provider appsfix: display error when fetching OAuth2 provider appsJan 19, 2024
@code-ashercode-asher marked this pull request as ready for reviewJanuary 19, 2024 20:48
@code-ashercode-asher mentioned this pull requestJan 20, 2024
20 tasks
Copy link
Member

@ParkreinerParkreiner left a comment

Choose a reason for hiding this comment

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

Looks good! Just had one question about how the error was getting passed in

@@ -28,12 +29,14 @@ type OAuth2AppsSettingsProps = {
apps?: TypesGen.OAuth2ProviderApp[];
isEntitled: boolean;
isLoading: boolean;
error?: unknown;
Copy link
Member

@ParkreinerParkreinerJan 22, 2024
edited
Loading

Choose a reason for hiding this comment

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

Should this be optional? Feels like making a dev always pass a value in (even if it's hopefullyundefined 99% of the time) would help make sure we don't forget our errors as the code gets updated over time

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Good point, I just assumed it could be undefined from React Query but I did not actually check. 😛

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Ah I see, it can benull but notundefined. Fixing.

@code-ashercode-asher merged commit7589df3 intomainJan 22, 2024
@code-ashercode-asher deleted the asher/display-oauth2-app/error branchJanuary 22, 2024 18:56
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 22, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@ParkreinerParkreinerParkreiner approved these changes

Assignees

@code-ashercode-asher

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@code-asher@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp