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 for searching by row ID (with a limit) when the row has many related rows #14257

Merged
merged 5 commits into from
Jul 30, 2024

Conversation

mike12345567
Copy link
Collaborator

Description

When searching by row ID with external DBs/SQS we can get into a situation where the limit of 1 which is applied by the frontend can cause problems, with many to many relationships we need to retrieve multiple rows (all of the joined related rows).

This bug exhibits itself in one part of the platform, when attempting to a row by ID in a form block that has multiple many to many relationships. The frontend needs to be able to send a limit of 1 incase it is using a form block but hasn't gotten a row ID (this can happen in preview/the builder) and it just wants to populate with a row for display.

Thanks to @poirazis for raising this issue!

…ation where the limit of 1 which is applied by the frontend can cause problems, with many to many relationships we need to retrieve multiple rows (all of the joined related rows). This was raised by poirazis, it exhibits itself in one part of the platform, when attempting to a row by ID in a form block that has multiple many to many relationships. The frontend needs to be able to send a limit of 1 incase it is using a form block but hasn't gotten a row ID (this can happen in preview/the builder) and it just wants to populate with a row for display.
@mike12345567 mike12345567 self-assigned this Jul 26, 2024
@mike12345567 mike12345567 requested a review from a team as a code owner July 26, 2024 15:24
@mike12345567 mike12345567 requested review from samwho and removed request for a team July 26, 2024 15:24
@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/m labels Jul 26, 2024
Copy link
Collaborator

@adrinr adrinr left a comment

Choose a reason for hiding this comment

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

🚀

@mike12345567 mike12345567 merged commit ba3f69e into master Jul 30, 2024
12 checks passed
@mike12345567 mike12345567 deleted the fix/search-by-row-id branch July 30, 2024 11:41
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 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/m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants