-
Notifications
You must be signed in to change notification settings - Fork 364
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
fix: getkubernetesResourceManagers popup #9722
Conversation
✅ Deploy Preview for determined-ui canceled.
|
83719d9
to
2b0c919
Compare
Co-authored-by: name saloni.gupta@hpe.com
2b0c919
to
a5e27f4
Compare
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.
It's been a while since I've been in this code base, but had some questions on the changes made 🙏
@@ -61,7 +61,7 @@ const isNonK8RMError = (e: unknown): boolean => { | |||
}; | |||
|
|||
const isNotAuthorizedErr = (e: unknown): boolean => { | |||
return e instanceof DetError && e.sourceErr instanceof Response && e.sourceErr['status'] === 403; | |||
return e instanceof DetError && e.sourceErr instanceof Response && (e.sourceErr['status'] === 403 || e.sourceErr['status'] === 401); |
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.
question:
- is there enough overlap of this and
isAuthFailure
? - not for this PR but maybe this function can be made reusable into
src/utils/services.ts
if this is deemed common enough of a situation?
@@ -110,7 +110,7 @@ const WorkspaceCreateModalComponent: React.FC<Props> = ({ onClose, workspaceId } | |||
handleError(e, { | |||
level: ErrorLevel.Error, | |||
publicMessage: 'Failed to fetch list of workspace namespace bindings.', | |||
silent: false, | |||
silent: 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.
question: this effectively silences this error for good from the user perspective but will still get logged, confirming that it is what we want (as opposed to conditionally showing it to the user)
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.
The issue of logging errors from the getKubernetesResourceManagers
API request I believe is resolved in a different PR. @salonig23 can you please link that PR here?
is this still necessary with #9735? |
No it is not. @amandavialva01 can you close this PR? |
Yea I can close this, is there a PR where the issue of the |
Ticket
Description
Fix
getKubernetesResourceManager
toast so that it doesn't show up on login screen after a user logs out.Test Plan
CI passes.
Checklist
docs/release-notes/
See Release Note for details.