-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
quick fix for positionInViewFilterGroup #9223
Conversation
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.
PR Summary
This PR modifies the position field handling in query-runner-args.factory.ts to prevent SQL query issues caused by column naming conflicts with 'positionInViewFilterGroup'.
- Added field name check
field.name === 'position'
inshouldBackfillPosition
condition to ensure only specific position fields trigger backfilling - Prevents unintended position backfilling for other position-type fields like 'positionInViewFilterGroup' that were causing SQL query failures
- Temporary fix that may need a more comprehensive solution to address underlying column naming conflicts
1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
const shouldBackfillPosition = | ||
options.objectMetadataItemWithFieldMaps.fields.some( | ||
(field) => field.type === FieldMetadataType.POSITION, | ||
(field) => | ||
field.type === FieldMetadataType.POSITION && | ||
field.name === 'position', | ||
); |
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.
style: consider making the position field name configurable rather than hardcoding 'position' to support different naming conventions
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.
LGTM
Fix LGTM as discusses offline. Imho positionInViewFilterGroup should not be named that way or at least I don't see the reasoning behind that name. Let's merge this fix to mitigate the issue and find a better solution for the next release. |
Log
|
fix 9206 In the future, we should have a look at the column naming "positionInViewFilterGroup" because it breaks the SQL queries in `record-position-query.factory.ts` for viewFilter tablenames
fix 9206 In the future, we should have a look at the column naming "positionInViewFilterGroup" because it breaks the SQL queries in `record-position-query.factory.ts` for viewFilter tablenames
fix 9206 In the future, we should have a look at the column naming "positionInViewFilterGroup" because it breaks the SQL queries in `record-position-query.factory.ts` for viewFilter tablenames
fix 9206
In the future, we should have a look at the column naming "positionInViewFilterGroup"
because it breaks the SQL queries in
record-position-query.factory.ts
for viewFilter tablenames