-
Notifications
You must be signed in to change notification settings - Fork 731
fix: filter out bad timestamp issue activities to prevent overflows #3693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| DESCRIPTION > | ||
| Compacts activities from same issue into one, keeping necessary information in a single row. Helps to serve issue-wide widgets in the development tab. | ||
| Compacts activities from same issue into one, keeping necessary information in a single row. Helps to serve issue-wide widgets in the development tab. | ||
|
|
||
|
|
||
| NODE issues_opened | ||
| SQL > | ||
|
|
@@ -13,24 +14,33 @@ SQL > | |
| memberId, | ||
| organizationId | ||
| FROM activityRelations_deduplicated_cleaned_bucket_union | ||
| WHERE type = 'issues-opened' | ||
| WHERE type = 'issues-opened' AND toYear(timestamp) >= 1971 | ||
|
Comment on lines
16
to
+17
|
||
|
|
||
|
|
||
|
|
||
| NODE issues_closed | ||
| SQL > | ||
|
|
||
| SELECT sourceParentId, MIN(timestamp) AS closedAt | ||
| FROM activityRelations_deduplicated_cleaned_bucket_union | ||
| WHERE type = 'issues-closed' AND sourceParentId != '' | ||
| WHERE type = 'issues-closed' AND sourceParentId != '' AND toYear(timestamp) >= 1971 | ||
| GROUP BY sourceParentId | ||
|
Comment on lines
25
to
27
|
||
|
|
||
|
|
||
|
|
||
| NODE issues_comment | ||
| SQL > | ||
|
|
||
| SELECT sourceParentId, MIN(timestamp) AS commentedAt | ||
| FROM activityRelations_deduplicated_cleaned_bucket_union | ||
| WHERE type = 'issue-comment' AND sourceParentId != '' AND toYear(timestamp) >= 1971 | ||
| GROUP BY sourceParentId | ||
|
|
||
|
|
||
|
|
||
| NODE issue_analysis_results_merged | ||
| SQL > | ||
|
|
||
| SELECT | ||
| opened.id, | ||
| opened.sourceId, | ||
|
|
@@ -61,3 +71,5 @@ TYPE COPY | |
| TARGET_DATASOURCE issues_analyzed | ||
| COPY_MODE replace | ||
| COPY_SCHEDULE 20 * * * * | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 2 uses a tab indentation under
DESCRIPTION >, while other Tinybird pipes in this repo use spaces (e.g.,pull_request_analysis_copy_pipe.pipe). Tabs can make diffs noisy and may be interpreted differently by tooling—please switch this to consistent space indentation.