-
Notifications
You must be signed in to change notification settings - Fork 17
IBX-9060: Added $query parameter for filtering notifications count and loading #520
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8bd2a39
IBX-9060: Added $query parameter for filtering notifications count an…
tbialcz b1370e9
Merge branch '4.6' into ibx_9060-notification-filtering
tbialcz 49c4ec0
IBX-9060: Fixed code style
tbialcz b5a96d8
IBX-9060: Implemented notification query logic: added NotificationQue…
tbialcz dc978aa
Merge branch '4.6' into ibx_9060-notification-filtering
tbialcz 8f0c65b
Merge branch '4.6' into ibx_9060-notification-filtering
tbialcz 852c013
IBX-9060: Refactored notification loading logic by splitting `loadNot…
tbialcz 626debe
IBX-9060: Refactored notification filtering with criterion handlers, …
tbialcz 70061b3
IBX-9060: Replaced `Criterion` abstract class with `CriterionInterfac…
tbialcz f722a69
IBX-9060: Replaced `Criterion` abstract class with `CriterionInterfac…
tbialcz 9a12a9d
Merge remote-tracking branch 'origin/ibx_9060-notification-filtering'…
tbialcz dac3c1d
IBX-9060: Optimized notification count caching logic by avoiding unne…
tbialcz 2b79cf5
IBX-9060: Refactored `NotificationQuery` namespace, improved encapsul…
tbialcz 00c0c64
IBX-9060: Fixed issues after code review
tbialcz 8b26279
IBX-9060: Added `ibexa/polyfill-php82` dependency and utilized `itera…
tbialcz 3b687a0
IBX-9060: Simplified resource path in legacy notification service con…
tbialcz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
26 changes: 26 additions & 0 deletions
26
src/contracts/Repository/Values/Notification/CriterionHandlerInterface.php
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) Ibexa AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Ibexa\Contracts\Core\Repository\Values\Notification; | ||
|
||
use Doctrine\DBAL\Query\QueryBuilder; | ||
use Ibexa\Contracts\Core\Repository\Values\Notification\Query\CriterionInterface; | ||
|
||
/** | ||
* @template T of \Ibexa\Contracts\Core\Repository\Values\Notification\Query\CriterionInterface | ||
*/ | ||
interface CriterionHandlerInterface | ||
{ | ||
public function supports(CriterionInterface $criterion): bool; | ||
|
||
/** | ||
* @param \Doctrine\DBAL\Query\QueryBuilder $qb | ||
* @param T $criterion | ||
*/ | ||
public function apply(QueryBuilder $qb, CriterionInterface $criterion): void; | ||
} |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tbialcz I'm coming a bit late to the party, but the issues in new code need to be resolved instead of being added to the baseline.