Add wrangler airtable sync via dashbored - #64
Open
autowattage wants to merge 1 commit into
Open
Conversation
24c02
reviewed
Aug 25, 2026
| NULL::text AS code_url, | ||
| TIMESTAMP WITH TIME ZONE '2026-08-10 00:00:00+00' AS claim_start_ts | ||
| FROM {{ source('airtable_wrangler', 'ysws_project_submission') }} hp | ||
| WHERE hp."linked_lapse_lookout_hackatime_links" IS NOT NULL AND hp."linked_lapse_lookout_hackatime_links" <> '' |
Member
There was a problem hiding this comment.
The linked_lapse_lookout_hackatime_links field contains full URLs (e.g. https://hackatime.hackclub.com/@user/project/Name+Here), not bare project aliases — and some rows have multiple, newline-separated. The current CTE passes the whole URL string as the alias, which will never match project_name in the warehouse → 0 DAU.
Suggested change
| WHERE hp."linked_lapse_lookout_hackatime_links" IS NOT NULL AND hp."linked_lapse_lookout_hackatime_links" <> '' | |
| LOWER(REPLACE(BTRIM(SPLIT_PART(url, '/project/', 2)), '+', ' ')) AS hackatime_alias, | |
| NULL::text AS project_name, | |
| NULL::text AS code_url, | |
| TIMESTAMP WITH TIME ZONE '2026-08-10 00:00:00+00' AS claim_start_ts | |
| FROM {{ source('airtable_wrangler', 'ysws_project_submission') }} hp | |
| CROSS JOIN LATERAL unnest(string_to_array(hp."linked_lapse_lookout_hackatime_links", E'\n')) AS url | |
| WHERE url LIKE '%/project/%' |
Splits on newlines, extracts the segment after /project/, decodes + → space.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add
wranglerto the warehouse (airtable).tables: ysws_project_submission, shop_queue, currency, ysws_config
sync: full-refresh via DLT
field IDs for the new base are included in
generated_ids.py, read from the base schema at wizard time. sync uses the existingAIRTABLE_PERSONAL_ACCESS_TOKEN, which needs access to this base before the first materialization.hackatime claims CTE (draft, needs review)
via dashbored