-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(events): Add typed event for filtering autocompletion sugges… #41218
feat(events): Add typed event for filtering autocompletion sugges… #41218
Conversation
44e8ab6
to
c82298f
Compare
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.
Looks good
Commit type should be feat
for a new event/api
lib/public/Collaboration/AutoComplete/AutoCompleteFilterEvent.php
Outdated
Show resolved
Hide resolved
/** | ||
* @since 28.0.0 | ||
*/ | ||
public function getItemType(): ?string { |
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.
any string?
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.
As far as I understand yes. same for itemId. Basically whatever API provider and consumer agree up on.
$limit, | ||
); | ||
$this->dispatcher->dispatchTyped($event); | ||
$results = $event->getResults(); |
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.
though no error, a little creepy, this overwriting game
Signed-off-by: Joas Schilling <coding@schilljs.com>
c82298f
to
2b8114d
Compare
…tions
OCP\EventDispatcher\GenericEvent
which is deprecated.Checklist