posthog icon indicating copy to clipboard operation
posthog copied to clipboard

fix(data-warehouse): Only expose certain tables via the warehouse table view and autocomplete

Open Gilbert09 opened this issue 9 months ago • 0 comments

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 in Database to only include tables we'd like to expose, and also removes any other dependency on this list from outside of the Database 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

Gilbert09 avatar May 02 '24 13:05 Gilbert09