Skip to content

Conversation

@macobo
Copy link
Contributor

@macobo macobo commented Jul 9, 2024

This PR:

  • Creates a migration to sync https://github.com/plausible/location package results into ClickHouse
  • The sync happens daily when the library changes
  • Adds new dictionary and ALIAS columns for convenient access to location names
  • Adds support for visit:country_name, visit:region_name, visit:city_name dimensions in APIv2

Note the migrations/app check will fail in this PR - that's expected and OK in this case.

Depends on plausible/location#25

macobo added 4 commits July 9, 2024 22:51
…name dimensions

Under the hood this relies on a `location_data` table in clickhouse being regularly synced with
plausible/location repo and dictionary lookups used in ALIAS columns
Copy link
Member

@aerosol aerosol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsolicited review inline

@macobo
Copy link
Contributor Author

macobo commented Jul 12, 2024

Note: Heading out to vacation. I'll leave it up to @ukutaht whether to push this to production or wait until I'm back whereupon I'll get this merged :)

@macobo macobo merged commit ee3d1e7 into master Aug 13, 2024
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.

6 participants