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

feat(events): Add typed event for filtering autocompletion sugges… #41218

Merged
merged 1 commit into from Nov 2, 2023

Conversation

nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Oct 31, 2023

…tions

  • The previous event is not a typed event and uses OCP\EventDispatcher\GenericEvent which is deprecated.

Checklist

@nickvergessen nickvergessen added 3. to review Waiting for reviews technical debt pending documentation This pull request needs an associated documentation update labels Oct 31, 2023
@nickvergessen nickvergessen added this to the Nextcloud 28 milestone Oct 31, 2023
@nickvergessen nickvergessen self-assigned this Oct 31, 2023
@nickvergessen nickvergessen force-pushed the techdebt/noid/add-autocomplete-filter-event branch from 44e8ab6 to c82298f Compare October 31, 2023 14:43
@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
Copy link
Member

@ChristophWurst ChristophWurst left a 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

https://www.conventionalcommits.org/en/v1.0.0/#summary

/**
* @since 28.0.0
*/
public function getItemType(): ?string {
Copy link
Member

Choose a reason for hiding this comment

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

any string?

Copy link
Member Author

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();
Copy link
Member

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

@nickvergessen nickvergessen changed the title techdebt(events): Add typed event for filtering autocompletion sugges… feat(events): Add typed event for filtering autocompletion sugges… Nov 2, 2023
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen merged commit c0c2362 into master Nov 2, 2023
48 of 50 checks passed
@nickvergessen nickvergessen deleted the techdebt/noid/add-autocomplete-filter-event branch November 2, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews pending documentation This pull request needs an associated documentation update technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants