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

Allow calculation views to hide required fields. #14720

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

samwho
Copy link
Collaborator

@samwho samwho commented Oct 7, 2024

Description

This was raised by @aptkingston while implementing the frontend for this feature. When we return a view from the views API, all of the table fields that are not present on the view are "enriched" onto it but set to visible: false. So when making modifications to the view, the update request sent will include these invisible fields.

We need to support calculation views being allowed to hide required fields, which I believe is okay because rows cannot be written to calculation views.

@samwho samwho requested a review from aptkingston October 7, 2024 14:05
@samwho samwho requested a review from a team as a code owner October 7, 2024 14:05
@samwho samwho requested review from mike12345567 and removed request for a team October 7, 2024 14:05
@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/s labels Oct 7, 2024
@samwho samwho requested review from aptkingston and adrinr and removed request for mike12345567 October 7, 2024 14:07
packages/server/src/sdk/app/views/index.ts Outdated Show resolved Hide resolved
@samwho samwho enabled auto-merge October 8, 2024 08:30
@samwho samwho merged commit ca8ed4f into master Oct 8, 2024
12 checks passed
@samwho samwho deleted the allow-calculation-fields-to-hide-required-fields branch October 8, 2024 08:41
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants