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

Fix patching rows from views with hidden relationships #15201

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Dec 17, 2024

Description

Fixing the following scenario:

  1. Create an external table with related data
  2. Create a view excluding the relations
  3. Update a row from that view
  4. Go back to the main table, see the relationship being dropped

This PR adds tests catching the issue and fixes to the proper behaviour, where the relationship is not dropped. Also, it makes sure that any field that is not part of the views can be modified.

Screen.Recording.2024-12-18.at.12.07.44.mov

Launchcontrol

Fixing wrongly dropped relationships for trimmed tables

Copy link

qa-wolf bot commented Dec 17, 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!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/s labels Dec 17, 2024
@adrinr adrinr force-pushed the fix/views-with-hidden-relationships branch from e4aaa49 to d061f44 Compare December 18, 2024 10:51
@adrinr adrinr marked this pull request as ready for review December 18, 2024 11:08
@adrinr adrinr requested a review from a team as a code owner December 18, 2024 11:08
@adrinr adrinr requested review from samwho and mike12345567 and removed request for a team December 18, 2024 11:08
Copy link
Collaborator

@mike12345567 mike12345567 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 catch

@adrinr adrinr enabled auto-merge December 18, 2024 11:23
@adrinr adrinr merged commit e2aed7e into master Dec 18, 2024
20 checks passed
@adrinr adrinr deleted the fix/views-with-hidden-relationships branch December 18, 2024 11:36
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 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.

2 participants