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-6620: Added Image criterion visitors #55

Merged
merged 6 commits into from
Nov 20, 2023

Conversation

ciastektk
Copy link
Contributor

@ciastektk ciastektk commented Oct 12, 2023

⚠️ Remove dev dependency!

Question Answer
JIRA issue IBX-6620
Type feature
Target Ibexa version v4.6
Requires ibexa/core#284

This PR adds CriterionVisitors for Image criteria that enables image search in solr engine:

  • FileSize
  • Height
  • Width
  • MimeType
  • Orientation

There is also added dedicated IbexaTestKernel class for integration tests.

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).

@ciastektk ciastektk force-pushed the ibx-6620-added-image-criterion-visitors branch 3 times, most recently from 9168822 to 8653d48 Compare October 26, 2023 10:44
@ciastektk ciastektk force-pushed the ibx-6620-added-image-criterion-visitors branch from 8653d48 to 1dd102e Compare October 27, 2023 10:18
@ciastektk ciastektk marked this pull request as ready for review November 3, 2023 12:37
@ciastektk ciastektk requested a review from a team November 3, 2023 13:01
@ciastektk ciastektk force-pushed the ibx-6620-added-image-criterion-visitors branch from 1dd102e to edfd05e Compare November 6, 2023 12:23
@ciastektk ciastektk force-pushed the ibx-6620-added-image-criterion-visitors branch 2 times, most recently from bde5054 to aa82131 Compare November 7, 2023 13:23
deprecated:
version: 'eZ Platform 3.2.0'
package: 'ibexa/solr'
message: 'The "%service_id%" service is deprecated since eZ Platform 3.2.0, to be removed in eZ Platform 4.0.0., use ezpublish.search.solr.result_extractor.content.native or ezpublish.search.solr.result_extractor.location.native instead.'
Copy link
Contributor

Choose a reason for hiding this comment

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

If you are touching those, I think we can also change the version (and name) when this gonna be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed: 1e89b9e

@ciastektk ciastektk requested a review from a team November 9, 2023 10:08
@ciastektk ciastektk force-pushed the ibx-6620-added-image-criterion-visitors branch 2 times, most recently from 90ed0c1 to a041631 Compare November 13, 2023 07:51
return $criterion instanceof Criterion\Image\Height
&& (
$criterion->operator === Operator::BETWEEN
|| $criterion->operator === Operator::GTE
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't also make sense to have Operator::LTE here?

return $criterion instanceof Criterion\Image\Width
&& (
$criterion->operator === Operator::BETWEEN
|| $criterion->operator === Operator::GTE
Copy link
Contributor

Choose a reason for hiding this comment

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

Same remark as for Height.

@konradoboza konradoboza requested a review from a team November 16, 2023 15:03
@webhdx webhdx force-pushed the ibx-6620-added-image-criterion-visitors branch from a041631 to 2012855 Compare November 20, 2023 14:23
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@webhdx webhdx merged commit 5499eef into main Nov 20, 2023
19 checks passed
@webhdx webhdx deleted the ibx-6620-added-image-criterion-visitors branch November 20, 2023 14:42
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.

7 participants