Skip to content

fix(parser): condition tree parser on HasMany or Polymorphic relations#284

Closed
DayTF wants to merge 1 commit intomainfrom
fix/condition-tree-parser-hasMany-and-polymorphic
Closed

fix(parser): condition tree parser on HasMany or Polymorphic relations#284
DayTF wants to merge 1 commit intomainfrom
fix/condition-tree-parser-hasMany-and-polymorphic

Conversation

@DayTF
Copy link
Copy Markdown
Contributor

@DayTF DayTF commented Apr 13, 2026

Definition of Done

General

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Validate the code quality (indentation, syntax, style, simplicity, readability)

Security

  • Consider the security impact of the changes made

Note

Fix ConditionTreeParser.parse_value to cast values using foreign key schema for ManyToOne relations

When a filter targets a ManyToOne or PolymorphicManyToOne relation field, parse_value was using the relation type itself to determine casting, causing incorrect value handling. The fix resolves the field schema to the relation's foreign key schema before casting, so operators like IN, NOT_IN, and EQUAL on relation fields produce correctly typed values.

Macroscope summarized 35a03b9.

@DayTF DayTF closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant