Skip to content

Parse comma in filter#1985

Merged
jessevz merged 2 commits intodevfrom
parse-comma-in-filter
Mar 17, 2026
Merged

Parse comma in filter#1985
jessevz merged 2 commits intodevfrom
parse-comma-in-filter

Conversation

@jessevz
Copy link
Copy Markdown
Contributor

@jessevz jessevz commented Mar 16, 2026

This pull request fixes 2 things: it solves that filters that allow only 1 value to contain ','. And it fixes a bug in pagination for tasks because the pagination filter did not use the $factory for the table correctly. Which resulted in an error for the task table because of ambigious column.

closes #1978

jessevz added 2 commits March 16, 2026 15:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses filter parsing and pagination SQL generation in the API/DBA layers, fixing backend errors caused by commas in single-value filters and correcting ambiguous-column issues in task pagination queries.

Changes:

  • Update filter parsing so only __in / __nin treat commas as multi-value separators; other operators treat commas as literal characters.
  • Fix PaginationFilter query generation to consistently prefix columns with the correct table name when includeTable is enabled.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/inc/apiv2/common/AbstractBaseAPI.php Adjusts filter value splitting to avoid breaking single-value operators when the value contains commas.
src/dba/PaginationFilter.php Adds missing table prefixes in the pagination WHERE clause to prevent ambiguous column errors (notably for tasks).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@jessevz jessevz merged commit 4379d4f into dev Mar 17, 2026
8 checks passed
@jessevz jessevz deleted the parse-comma-in-filter branch March 17, 2026 13:44
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.

3 participants