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

Calculation Views UI #14778

Merged
merged 40 commits into from
Oct 24, 2024
Merged

Calculation Views UI #14778

merged 40 commits into from
Oct 24, 2024

Conversation

aptkingston
Copy link
Member

@aptkingston aptkingston commented Oct 11, 2024

Description

This PR adds the UI for calculation views.

View type is specified upon creation. "Normal" views are called "Table" views.
image

Calculation views are configured using the "Configure calculations" button in the grid toolbar:
image

This opens the calculation editor when you can define which calculations you'd like to add to your view.
image

Example of calculation results:
image

Clarification of functionality:

  • Calculation views are completely empty by default. You need to configure some calculations to see data.
  • You cannot filter on calculation columns
  • You can sort on calculation columns
  • Calculation views do not support adding, editing or deleting rows
  • Calculations can only be defined on numeric columns (number, bigint)
  • There is a max of 5 calculations per calculation view
  • There is no limit to the number of group bys

Copy link

qa-wolf bot commented Oct 11, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@aptkingston aptkingston changed the title View calculation UI Calculation Views UI Oct 11, 2024
@github-actions github-actions bot added size/m and removed size/l labels Oct 11, 2024
@github-actions github-actions bot added size/l and removed size/m labels Oct 21, 2024
@aptkingston aptkingston marked this pull request as ready for review October 23, 2024 13:23
Copy link
Member

@shogunpurple shogunpurple left a comment

Choose a reason for hiding this comment

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

LGTM! Nice work

<InfoDisplay
icon="Help"
quiet
body="Calculations only work with numeric columns and a maximum of 5 calculations can be added at once."
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 a hard technical limitation or soft limit?

Copy link
Member Author

Choose a reason for hiding this comment

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

Soft limit as far as I know. This was just specified in the ticket, but I'm not sure if there's any real reason for it other than to limit the potential performance hit of running these.

@aptkingston
Copy link
Member Author

Test failures are random flakes. Going to merge this in and let us use it in QA.

@aptkingston aptkingston merged commit 7bbe1c2 into v3-ui Oct 24, 2024
10 of 11 checks passed
@aptkingston aptkingston deleted the view-calculation-ui branch October 24, 2024 10:32
@aptkingston aptkingston mentioned this pull request Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants