-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(data-exploration): person and cohort tables #13136
Conversation
Actually ready for a look! |
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.
Great! Only one real issue that I ran into: The delete button for persons in cohorts does not show up for me.
Besides that some UX details regarding exports on the persons page, and a few inline comments. Nothing that needs to change, just observations:
-
The exported CSV for "selected columns" contains a
person.$delete
column, which is probably unnecessary. -
The exported CSV for "all columns" contains a
value_at_data_point
column, which is probably unnecessary. -
Not related to this PR, but we might be able to improve this with data exploration - The exported CSV contains columns
id
anddistinct_ids.0
, but I can't filter for these columns (unclear what property I should use). -
The export button does not reflect the number of selected columns this any more:
@@ -193,7 +198,7 @@ export function CohortEdit({ id }: CohortLogicProps): JSX.Element { | |||
</> | |||
)} | |||
|
|||
{!isNewCohort && ( | |||
{typeof cohort.id === 'number' && ( |
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.
How does this differ from !isNewCohort
? Might want to extract to a variable for better understanding.
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.
Unfortunately this is needed for typing below when passing the cohort id to the query :/
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.
I think a comment would be great in that case :)
Thanks for the review! Fixed all the feedback, I hope. Would love to get this in to help move along work on the two stacked PRs on top of this, plus the event table regressions...
Removed!
This is there also on the current live persons table export. I propose we deal with it later 🙃
Hopefully HogQL will help here
Fixed! |
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.
🚢 it!
@@ -193,7 +198,7 @@ export function CohortEdit({ id }: CohortLogicProps): JSX.Element { | |||
</> | |||
)} | |||
|
|||
{!isNewCohort && ( | |||
{typeof cohort.id === 'number' && ( |
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.
I think a comment would be great in that case :)
Problem
Follow up to #13116
Changes
Replaces persons and cohort tables with data exploration versions.
I had to do some annoying refactors to get the delete button properly extracted, apologies for all the noise around this in the PR:
I also cleaned up the storybook query stories somewhat.
How did you test this code?
Clicking around in the interface. Hopefully soon with visual regression tests.