codeant-ai-for-open-source[bot] commented on code in PR #45928:
URL: https://github.com/apache/superset/pull/45928#discussion_r4440546098
##########
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/keyValue.tsx:
##########
@@ -66,22 +66,41 @@ export const createFilterKey = (
return null;
});
-export const getFilterValue = (dashId: string | number, key?: string | null) =>
+// Single attempt with no client-side retries, so an aborted request settles
+// immediately. Callers that need retries own them.
+const getOnce = (endpoint: string, signal?: AbortSignal) =>
SupersetClient.get({
- endpoint: assembleEndpoint(dashId, key),
- })
+ endpoint,
+ signal,
+ fetchRetryOptions: { retries: 0 },
Review Comment:
✅ **CodeAnt verified this suggestion was addressed in subsequent commits and
marked this thread resolved** as of `ea87299`.
`getPermalinkValue` now uses the regular `SupersetClient.get` request, while
the no-retry `getOnce` helper is used by `fetchPermalinkValue`.
<sub>If that's not right, unresolve this thread and CodeAnt will leave it
open.</sub>
<!-- codeant-auto-resolve-reply -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]