-
Notifications
You must be signed in to change notification settings - Fork 55
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: app details calc cleanup #2529
base: feat/calc-cleanup
Are you sure you want to change the base?
Conversation
… into feat/app-details-calc-cleanup
</ConditionalWrap> | ||
) | ||
|
||
if (jsonManifestData?.kind !== 'Secret' || isEditMode || secretViewAccess) { |
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.
if (jsonManifestData?.kind !== 'Secret' || isEditMode || secretViewAccess) { | |
if (jsonManifestData?.kind !== 'Secret' || isEditMode || !secretViewAccess) { |
}, | ||
) | ||
}) | ||
.catch(noop) |
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.
While it's great to have catch but can you verify if the error was supposed to be propagated here? Same applied to other places as well
@@ -562,11 +648,11 @@ export const Details: React.FC<DetailsType> = ({ | |||
clearPollingInterval() | |||
if (isPollingRequired) { | |||
appDetailsIntervalID = setInterval(callAppDetailsAPI, interval) | |||
callAppDetailsAPI(true) | |||
callAppDetailsAPI(true).then(noop).catch(noop) |
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.
same here
|
const callAppDetailsAPI = async (fetchExternalLinks?: boolean) => { | ||
appDetailsAPI(params.appId, params.envId, interval - 5000, appDetailsAbortRef) | ||
.then(async (response) => { | ||
// eslint-disable-next-line no-param-reassign |
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.
Can we await this?
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: