Skip to content
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

chore(data-warehouse): refactor logic #26128

Merged
merged 41 commits into from
Nov 15, 2024
Merged

chore(data-warehouse): refactor logic #26128

merged 41 commits into from
Nov 15, 2024

Conversation

EDsCODE
Copy link
Member

@EDsCODE EDsCODE commented Nov 11, 2024

Problem

  • logics in the editor component are messy

Changes

  • consolidate in a new logic

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

Copy link
Contributor

github-actions bot commented Nov 12, 2024

Size Change: 0 B

Total Size: 1.15 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.15 MB

compressed-size-action

@EDsCODE EDsCODE requested a review from a team November 12, 2024 21:07
@EDsCODE EDsCODE mentioned this pull request Nov 14, 2024
24 tasks
Copy link
Member

@Gilbert09 Gilbert09 left a comment

Choose a reason for hiding this comment

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

Looks good, not tested it, but trust that it works and is behind a flag etc - thanks for sorting this out!

actions.setActiveQuery(queryOverride || values.queryInput)
},
saveAsView: async () => {
LemonDialog.openForm({
Copy link
Member

Choose a reason for hiding this comment

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

Oh wild, didnt know you could do this from a logic

@@ -43,7 +43,7 @@ function UpdateSourceConnectionFormContainer(props: UpdateSourceConnectionFormCo
<>
<span className="block mb-2">Overwrite your existing configuration here</span>
<Form logic={dataWarehouseSourceSettingsLogic} formKey="sourceConfig" enableFormOnSubmit>
<SourceFormComponent {...props} jobInputs={source?.job_inputs} />
Copy link
Member

Choose a reason for hiding this comment

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

Is this intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

nope 😬

@EDsCODE EDsCODE merged commit 1b3421e into master Nov 15, 2024
96 checks passed
@EDsCODE EDsCODE deleted the dw-editor-logic-refactor branch November 15, 2024 17:43
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.

2 participants