dosubot[bot] commented on issue #31191:
URL: https://github.com/apache/superset/issues/31191#issuecomment-2512213081

   <!-- Answer -->
   The issue you're experiencing with the service account field appearing 
during editing, even for public Google Sheets, might be related to the frontend 
logic that determines when to display this field. In Superset, the 
`EncryptedField` component manages the display of the service account JSON 
field. It should not require a service account for public sheets, but it seems 
like the field is being shown due to the conditions set in the frontend code.
   
   The `uploadOption` state and the `isEditMode` flag play a role in this 
behavior. The field is displayed if the form is in edit mode or if a new 
database is being edited, which might be why you're seeing it during editing 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/features/databases/DatabaseModal/DatabaseConnectionForm/EncryptedField.tsx)</sup>.
   
   To address this, you might want to check the configuration and ensure that 
the `isPublic` state is correctly set to `true` for public sheets. This should 
prevent the service account field from being required. If the issue persists, 
it could be a bug in the UI logic that needs further investigation.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
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: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to