codeant-ai-for-open-source[bot] commented on PR #38124:
URL: https://github.com/apache/superset/pull/38124#issuecomment-3934370470

   ## **Sequence Diagram**
   
   Shows the simplified metrics upload flow after replacing the monolithic 
googleapis package with google-auth-library + @googleapis/sheets. The script 
authenticates with a service account, constructs a Sheets client, and writes 
metrics to the target spreadsheet.
   
   ```mermaid
   sequenceDiagram
       participant Script
       participant AuthLib as GoogleAuth
       participant SheetsClient as @googleapis/sheets
       participant GoogleSheets as Google Sheets API
   
       Script->>AuthLib: Load SERVICE_ACCOUNT_KEY & create credentials
       AuthLib-->>Script: Auth credentials (scoped for spreadsheets)
       Script->>SheetsClient: Initialize sheets client with auth
       Script->>SheetsClient: writeToGoogleSheet(data, range, headers, append)
       SheetsClient->>GoogleSheets: spreadsheets.values.update/append request
       GoogleSheets-->>SheetsClient: 200 OK
       SheetsClient-->>Script: Success (write complete)
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


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

Reply via email to