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(editor-3000): extract datavizlogic #26266

Open
wants to merge 62 commits into
base: master
Choose a base branch
from

Conversation

EDsCODE
Copy link
Member

@EDsCODE EDsCODE commented Nov 19, 2024

Problem

  • datavizlogic isn't reusable in other scenes because of reliance on insightlogics

Changes

  • move the insight related fields out of datavizlogic

👉 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?

@EDsCODE EDsCODE changed the base branch from master to dw-sidebar-integration November 19, 2024 02:02
@EDsCODE EDsCODE changed the title chore(data-warehouse): extract datavizlogic chore(editor-3000): extract datavizlogic Nov 19, 2024
@EDsCODE
Copy link
Member Author

EDsCODE commented Nov 19, 2024

@EDsCODE EDsCODE marked this pull request as ready for review November 19, 2024 02:06
@EDsCODE EDsCODE marked this pull request as draft November 19, 2024 02:49
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.

A couple of nits, but ✅

@@ -559,31 +558,31 @@ export const dataVisualizationLogic = kea<dataVisualizationLogicType>([
return columns.filter((n) => n.type.isNumerical)
},
],
dashboardId: [(_state, props) => [props.dashboardId], (dashboardId) => dashboardId],
Copy link
Member

Choose a reason for hiding this comment

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

Gotta do something like this to get the type checks to pass:

dashboardId: [(_state, props) => [props.dashboardId ?? (() => undefined)], (dashboardId) => dashboardId],

@@ -45,7 +46,7 @@ import { variablesLogic } from './Components/Variables/variablesLogic'
import { dataVisualizationLogic, DataVisualizationLogicProps } from './dataVisualizationLogic'
import { displayLogic } from './displayLogic'

interface DataTableVisualizationProps {
export interface DataTableVisualizationProps {
Copy link
Member

Choose a reason for hiding this comment

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

Any reason this now needs to be exported? Dont see it being used anywhere else

@EDsCODE EDsCODE marked this pull request as ready for review November 19, 2024 14:58
Copy link
Contributor

github-actions bot commented Nov 19, 2024

Size Change: 0 B

Total Size: 1.16 MB

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

compressed-size-action

Base automatically changed from dw-sidebar-integration to master November 19, 2024 18:17
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