-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat(dw-edit-managed-sources): Edit Self Managed Sources for DW #28111
base: master
Are you sure you want to change the base?
Conversation
frontend/src/scenes/data-warehouse/settings/DataWarehouseSourceIcon.tsx
Dismissed
Show dismissed
Hide dismissed
frontend/src/scenes/data-warehouse/settings/DataWarehouseSourceIcon.tsx
Dismissed
Show dismissed
Hide dismissed
Size Change: -5 B (0%) Total Size: 1.18 MB ℹ️ View Unchanged
|
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.
PR Summary
This PR adds functionality for editing self-managed data warehouse sources, with significant changes across multiple components. Here's a summary of the key changes:
- Added new
DataWarehouseTableForm
component supporting both creation and updates of warehouse tables with credential handling - Created standalone
DataWarehouseSourceIcon
component with provider mapping for consistent source visualization - Implemented validation for HogQL table names and URL patterns for different cloud storage providers in
dataWarehouseTableLogic
- Added new
SelfManaged
component in pipeline sources for editing existing data warehouse tables - Extended
PipelineBackend
enum withDataWarehouse
type and updated node handling logic for self-managed sources - Improved form validation with regex checks for table names and URL patterns
- Added cache invalidation of queries endpoint upon source updates
The changes maintain type safety while adding editing capabilities for self-managed sources, with consistent UI between managed and self-managed sources.
13 file(s) reviewed, 22 comment(s)
Edit PR Review Bot Settings | Greptile
frontend/src/scenes/data-warehouse/new/DataWarehouseTableForm.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/data-warehouse/settings/DataWarehouseManagedSourcesTable.tsx
Show resolved
Hide resolved
frontend/src/scenes/data-warehouse/settings/DataWarehouseManagedSourcesTable.tsx
Show resolved
Hide resolved
frontend/src/scenes/data-warehouse/settings/DataWarehouseManagedSourcesTable.tsx
Show resolved
Hide resolved
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.
A few minor points, most blocking is the useEffect
vs kea logic - looks good otherwise 👌
frontend/src/scenes/data-warehouse/settings/DataWarehouseSourceIcon.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/data-warehouse/settings/DataWarehouseSourceIcon.tsx
Dismissed
Show dismissed
Hide dismissed
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
# Conflicts: # frontend/src/scenes/data-warehouse/new/NewSourceWizard.tsx
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.
Tested. Looks good!
One NIT I found was that if I click to edit -> hit cancel -> click to edit immediately, the fields aren't prefilled anymore
Problem
We cannot currently edit self managed sources for DW.
Changes
We are getting the fields that we can right now w/o whitelisting hashed sensitive credentials and flushing them down to the client.
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
Added, changed items