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

IBX-7355: Allowed LIKE query conditions in Criteria for joins #13

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

Steveb-p
Copy link
Contributor

Question Answer
JIRA issue IBX-7355
Type feature
Target Ibexa version v4.6

This PR allows query conditions, specifically those related to JOINed tables, to make use of CONTAINS / STARTS_WITH / ENDS_WITH operators, which correspond to LIKE conditions.

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Provided automated test coverage.
  • Checked that target branch is set correctly (main for features, the oldest supported for bugs).
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Asked for a review (ping for example @ibexa/php-dev for back-end changes and/or @ibexa/javascript-dev for
    front-end changes).

@Steveb-p Steveb-p requested review from bdunogier and a team December 12, 2023 14:05
@Steveb-p Steveb-p added Feature New feature request Ready for review labels Dec 12, 2023
@@ -379,4 +322,67 @@ private function isInheritedColumn(string $column): bool
return $this->schemaMetadata->getIdentifierColumn() !== $column
&& $this->schemaMetadata->isInheritedColumn($column);
}

private function handleComparison(Comparison $comparison, Parameter $parameter, string $fullColumnName, string $placeholder): string

Choose a reason for hiding this comment

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

Arguments in separate lines for readability would be nice.

@konradoboza konradoboza requested a review from a team December 12, 2023 14:49
@Nattfarinn Nattfarinn requested a review from a team December 12, 2023 14:50
Copy link

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

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

QA approved on Ibexa DXP 4.6

@adamwojs adamwojs merged commit aa6aedf into main Jan 11, 2024
11 checks passed
@adamwojs adamwojs deleted the allow-like-queries-in-joins branch January 11, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants