posthog
posthog copied to clipboard
fix(data-warehouse): Only expose certain tables via the warehouse table view and autocomplete
Problem
- Updates the database table logic to only expose listed tables in both hogql autocomplete, and within data warehouse table explorer
Changes
- Semi-reverts this from @mariusandra https://github.com/PostHog/posthog/pull/21970
- Updated the internal
_table_names
inDatabase
to only include tables we'd like to expose, and also removes any other dependency on this list from outside of theDatabase
class - Updated references from data warehouse and autocomplete
Does this work well for both Cloud and self-hosted?
- Yes
How did you test this code?
- Tested creating views with conflicting names, and autocomplete