-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ciastektk
force-pushed
the
ibx-8726-added-is-bookmarked-criterion
branch
from
August 19, 2024 06:44
28fd67f
to
dfe7121
Compare
ciastektk
force-pushed
the
ibx-8726-added-is-bookmarked-criterion
branch
5 times, most recently
from
August 20, 2024 12:02
d02f69d
to
466737f
Compare
konradoboza
reviewed
Aug 21, 2024
src/contracts/Repository/Values/Content/Query/Criterion/Location/IsBookmarked.php
Show resolved
Hide resolved
src/contracts/Repository/Values/Content/Query/Criterion/Value/IsBookmarkedValue.php
Outdated
Show resolved
Hide resolved
src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php
Outdated
Show resolved
Hide resolved
src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php
Outdated
Show resolved
Hide resolved
src/lib/Search/Legacy/Content/Location/Gateway/CriterionHandler/Location/IsBookmarked.php
Show resolved
Hide resolved
konradoboza
reviewed
Aug 21, 2024
src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php
Outdated
Show resolved
Hide resolved
src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php
Outdated
Show resolved
Hide resolved
ciastektk
force-pushed
the
ibx-8726-added-is-bookmarked-criterion
branch
from
August 21, 2024 07:47
953c58d
to
3698368
Compare
konradoboza
reviewed
Aug 21, 2024
konradoboza
approved these changes
Aug 21, 2024
alongosz
reviewed
Aug 21, 2024
src/contracts/Repository/Values/Content/Query/Criterion/Location/IsBookmarked.php
Outdated
Show resolved
Hide resolved
src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php
Outdated
Show resolved
Hide resolved
src/lib/Search/Common/EventSubscriber/BookmarkEventSubscriber.php
Outdated
Show resolved
Hide resolved
src/lib/Persistence/Legacy/Bookmark/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
src/lib/Search/Legacy/Content/Location/Gateway/CriterionHandler/Location/IsBookmarked.php
Outdated
Show resolved
Hide resolved
src/lib/Search/Legacy/Content/Location/Gateway/CriterionHandler/Location/IsBookmarked.php
Outdated
Show resolved
Hide resolved
alongosz
requested changes
Aug 21, 2024
src/lib/Search/Legacy/Content/Location/Gateway/CriterionHandler/Location/IsBookmarked.php
Outdated
Show resolved
Hide resolved
…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>
…e::loadUserIdsByLocation
…r/Location/IsBookmarked.php Co-authored-by: Paweł Niedzielski <pawel.niedzielski@ibexa.co>
ciastektk
force-pushed
the
ibx-8726-added-is-bookmarked-criterion
branch
from
September 4, 2024 12:39
fe32ae8
to
1efafe0
Compare
Quality Gate passedIssues Measures |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.For QA:
Documentation: