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-8726: Added IsBookmarked criterion #417

Merged
merged 35 commits into from
Sep 4, 2024

Conversation

ciastektk
Copy link
Contributor

@ciastektk ciastektk commented Aug 16, 2024

🎫 Issue IBX-8726

Description:

This PR adds IsBookmarked criterion which allow to filter by bookmarked locations.
Main use case is DAM, where we need to filter bookmarked locations by content type.

Response will be automatically updated after added new or deleted Bookmark. The BookmarkEventSubscriber is responsible for triggering serach index updates.

Persistence API

New method loadUserIdsByLocation have been added to Bookmark Handler, which allows to load all id of users which already bookmarked given location.

Supported search engines

LSE, Solr, and Elasticsearch supports IsBookmarked criterion.

Examples

Criterion has argument $value type of bool with default value true. Criterion works with current user reference, and id taken from it will be used in query.

new IsBookmarked();
new IsBookmarked(false);

For QA:

Documentation:

@mnocon mnocon added the Doc needed The changes require some documentation label Aug 19, 2024
@ciastektk ciastektk force-pushed the ibx-8726-added-is-bookmarked-criterion branch from 28fd67f to dfe7121 Compare August 19, 2024 06:44
@ciastektk ciastektk force-pushed the ibx-8726-added-is-bookmarked-criterion branch 5 times, most recently from d02f69d to 466737f Compare August 20, 2024 12:02
@ciastektk ciastektk marked this pull request as ready for review August 20, 2024 12:19
@ciastektk ciastektk requested a review from a team August 20, 2024 13:17
@konradoboza konradoboza requested a review from a team August 21, 2024 06:15
@ciastektk ciastektk requested a review from konradoboza August 21, 2024 07:39
@ciastektk ciastektk force-pushed the ibx-8726-added-is-bookmarked-criterion branch from 953c58d to 3698368 Compare August 21, 2024 07:47
@ciastektk ciastektk requested review from konradoboza and a team August 21, 2024 07:58
@ciastektk ciastektk requested review from konradoboza and a team August 21, 2024 09:51
@konradoboza konradoboza requested a review from alongosz August 21, 2024 09:55
@konradoboza konradoboza requested a review from a team August 21, 2024 10:51
ciastektk and others added 22 commits September 4, 2024 14:39
…on/IsBookmarked.php

Co-authored-by: Konrad Oboza <konrad.oboza@ibexa.co>
…IsBookmarkedValue.php

Co-authored-by: Konrad Oboza <konrad.oboza@ibexa.co>
Co-authored-by: Konrad Oboza <konrad.oboza@ibexa.co>
…r/Location/IsBookmarked.php

Co-authored-by: Konrad Oboza <konrad.oboza@ibexa.co>
Co-authored-by: Konrad Oboza <konrad.oboza@ibexa.co>
Co-authored-by: Konrad Oboza <konrad.oboza@ibexa.co>
…r/Location/IsBookmarked.php

Co-authored-by: Paweł Niedzielski <pawel.niedzielski@ibexa.co>
@ciastektk ciastektk force-pushed the ibx-8726-added-is-bookmarked-criterion branch from fe32ae8 to 1efafe0 Compare September 4, 2024 12:39
Copy link

sonarcloud bot commented Sep 4, 2024

@alongosz alongosz merged commit 0ba8cd1 into 4.6 Sep 4, 2024
19 of 22 checks passed
@alongosz alongosz deleted the ibx-8726-added-is-bookmarked-criterion branch September 4, 2024 13:31
@julitafalcondusza julitafalcondusza removed the Doc needed The changes require some documentation label Nov 19, 2024
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.

10 participants