tanujdargan commented on code in PR #51714:
URL: https://github.com/apache/airflow/pull/51714#discussion_r2153010393


##########
airflow-core/src/airflow/ui/src/pages/Dashboard/Stats/PluginImportErrors.tsx:
##########
@@ -30,7 +30,9 @@ import { PluginImportErrorsModal } from 
"./PluginImportErrorsModal";
 export const PluginImportErrors = ({ iconOnly = false }: { readonly iconOnly?: 
boolean }) => {
   const { onClose, onOpen, open } = useDisclosure();
   const { t: translate } = useTranslation("admin");
-  const { data, error, isLoading } = usePluginServiceImportErrors();
+  const { data, error, isLoading } = usePluginServiceImportErrors(undefined, {
+    retry: false,
+  });

Review Comment:
   This is a deliberate optimization. It prevents the UI from making multiple, 
pointless API calls when a user gets a 403 (Forbidden) error, as their 
permissions are unlikely to change between retries.



-- 
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]

Reply via email to