crowd.dev icon indicating copy to clipboard operation
crowd.dev copied to clipboard

feat: cleanup old inaccurate activities & maintainers for previously processed fork repos [CM-749]

Open mbani01 opened this issue 2 months ago • 0 comments

This pull request introduces enhancements to the Tinybird client library, adds new utility scripts, and updates dependencies to support Snowflake integration. The most significant improvements are the addition of new methods for interacting with Tinybird datasources and the refactoring of header management for API requests.

Tinybird client enhancements:

  • Added a private getHeaders method to centralize and simplify HTTP header creation for Tinybird API requests in tinybirdClient.ts.
  • Refactored existing API calls to use the new getHeaders method for both GET and POST requests, improving maintainability. [1] [2]
  • Introduced a new rawSql method to execute raw SQL queries directly against Tinybird, supporting operations outside of named pipes.
  • Added a deleteDatasource method to allow selective deletion of data from a Tinybird datasource using the official delete API.

Script and dependency updates:

  • Added a new script cleanup-fork-activities to the script_executor_worker package for maintenance tasks.
  • Updated dependencies in both pnpm-lock.yaml and package.json to include @crowd/snowflake, preparing the project for Snowflake integration. [1] [2]

mbani01 avatar Oct 31 '25 12:10 mbani01