crowd.dev
crowd.dev copied to clipboard
feat: cleanup old inaccurate activities & maintainers for previously processed fork repos [CM-749]
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
getHeadersmethod to centralize and simplify HTTP header creation for Tinybird API requests intinybirdClient.ts. - Refactored existing API calls to use the new
getHeadersmethod for both GET and POST requests, improving maintainability. [1] [2] - Introduced a new
rawSqlmethod to execute raw SQL queries directly against Tinybird, supporting operations outside of named pipes. - Added a
deleteDatasourcemethod 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-activitiesto thescript_executor_workerpackage for maintenance tasks. - Updated dependencies in both
pnpm-lock.yamlandpackage.jsonto include@crowd/snowflake, preparing the project for Snowflake integration. [1] [2]