Skip to content

Conversation

@PhyllisHelton
Copy link

Summary

  • Adds a reusable HTTP Cloud Function () that monitors Google Sheets for changes via the Drive API and triggers dbt jobs when modifications are detected
  • Uses stateless 24-hour lookback (72 hours on Monday to cover weekends) with an optional parameter for daily schedules
  • Includes Terraform schedule configuration for the DW security sheets (3 sheets, dbt job 920201, M-F 7pm EST)
  • Updates README with service accounts, Pub/Sub topics, and google-sheets-trigger documentation

New files

    • HTTP handler with request validation, change detection, and Pub/Sub publishing
    • Google Drive API wrapper for retrieving sheet modifiedTime
    • 15 unit tests covering all logic paths
  • and
    • CI/CD workflow

Modified files

    • Added google-sheets-trigger module with dw_security_sheets schedule
    • Added Service Accounts, Pub/Sub Topics, and google-sheets-trigger sections
    • Added CLAUDE.local.md

Test plan

  • All 15 unit tests pass ()
  • Local integration test confirms Drive API access to all 3 Google Sheets with
  • Service account created and sheets shared
  • Drive API enabled
  • Test via Cloud Scheduler Force Run in POC environment after merge

PhyllisHelton and others added 4 commits January 27, 2026 10:24
Reusable HTTP Cloud Function that monitors Google Sheets for changes
via the Google Drive API and triggers dbt jobs when modifications are
detected. Uses a stateless 24-hour lookback (72 hours on Monday to
cover weekends) with an optional include_weekends parameter.

Includes:
- HTTP handler with request validation and structured logging
- SheetsClient using Drive API with shared drive support
- Pub/Sub integration to trigger dbt jobs
- 15 unit tests covering all logic paths
- GitHub Actions CI/CD workflow
- Terraform schedule configuration for DW security sheets
- README documentation for service accounts, Pub/Sub, and usage

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds an Environments section to the README clarifying that staging
is the recommended testing environment, with step-by-step instructions.
Marks POC as experimental-only.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants