Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

EZP-30951: Added missing support for searching (Not)Empty Field values #157

Merged
merged 11 commits into from
Nov 22, 2019

Conversation

mateuszbieniek
Copy link
Contributor

@mateuszbieniek mateuszbieniek commented Oct 11, 2019

Question Answer
JIRA issue EZP-30951
Requires ezsystems/ezpublish-kernel#2821
Bug/Improvement yes
New feature yes
Target version 1.7 for eZ Platform v2.5.x LTS
Doc needed yes

This PR adds Mapper, so a new index for not required fields will be added to Solr: is_empty.
is_empty (true/false) determines if Field is considered empty as per Feild Definition.

The Developer then can search (not) empty Fields with IsFieldEmpty Criterion.

This PR requires these kernel changes: ezsystems/ezpublish-kernel#2821

@mateuszbieniek mateuszbieniek changed the title EZP-30951: Added missing support for searching for NULL and (Not)Empty Field values [WIP] EZP-30951: Added missing support for searching for NULL and (Not)Empty Field values Oct 11, 2019
@mateuszbieniek mateuszbieniek changed the title [WIP] EZP-30951: Added missing support for searching for NULL and (Not)Empty Field values EZP-30951: Added missing support for searching for NULL and (Not)Empty Field values Oct 11, 2019
@alongosz
Copy link
Member

@mateuszbieniek could you provide, either in this PR description or in the kernel one, a sample PHP code, so it's easier for both the Doc Team and the others to understand how they can use it?

The scope is just a few lines, starting from building Criteria and ending with calling e.g. findContent.

Copy link
Member

@kmadejski kmadejski left a comment

Choose a reason for hiding this comment

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

New files don't have required copyright header, please add it. I'm not about to list all nitpicks which could be solved by CS-fixer, just run it 😛

@mateuszbieniek
Copy link
Contributor Author

@alongosz sure thing! Ill do it on monday :)

@pspanja

This comment has been minimized.

@mateuszbieniek

This comment has been minimized.

@pspanja

This comment has been minimized.

@mateuszbieniek

This comment has been minimized.

@pspanja

This comment has been minimized.

@mateuszbieniek

This comment has been minimized.

@pspanja

This comment has been minimized.

@mateuszbieniek

This comment has been minimized.

@mateuszbieniek mateuszbieniek changed the base branch from 1.6 to 1.7 October 16, 2019 12:33
Copy link
Contributor

@andrerom andrerom left a comment

Choose a reason for hiding this comment

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

+1 besides tackling kernel dependency one or the other way

@micszo micszo self-assigned this Nov 21, 2019
Copy link
Member

@micszo micszo 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 eZ Platform EE v2.5.6 with diffs.

@micszo micszo removed their assignment Nov 22, 2019
@lserwatka lserwatka merged commit 0a9da38 into ezsystems:1.7 Nov 22, 2019
@lserwatka
Copy link
Member

You can merge it up

@mateuszbieniek
Copy link
Contributor Author

@lserwatka done.

# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging this pull request may close these issues.

9 participants