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

Fix share activity dispatch #27514

Merged
merged 1 commit into from
Jun 16, 2021
Merged

Fix share activity dispatch #27514

merged 1 commit into from
Jun 16, 2021

Conversation

artonge
Copy link
Contributor

@artonge artonge commented Jun 15, 2021

A regression was introduced by #26727. This reverts one of the changes that causes share creation activities to not be dispatched.

This was caught by https://github.com/nextcloud/activity/pull/593/checks?check_run_id=2822075000.

Another solution would be to update the code to drop legacy API, but I don't want to dive into that without a more informed opinion.

FYI: It is probably due to a linter removing the variable because it is unused. We only need the side-effects from the constructor.

@icewind1991, @juliushaertl or @MorrisJobke ?

@juliushaertl
Copy link
Member

juliushaertl commented Jun 15, 2021

I'd say we get this in as a fix. Dropping the legacy hooks would be a bigger change that we should rather do early in the release cycle so we catch possibly missed usages early.

Edit: #14552 for reference on the legacy event methods

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Beside the nitpick this looks fine 👍

@MorrisJobke MorrisJobke added this to the Nextcloud 22 milestone Jun 16, 2021
Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge
Copy link
Contributor Author

artonge commented Jun 16, 2021

Comment added. Ready to get merged :)

@artonge artonge added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 16, 2021
@juliushaertl juliushaertl merged commit 6b60495 into master Jun 16, 2021
@juliushaertl juliushaertl deleted the fix/share_activity branch June 16, 2021 09:34
@blizzz blizzz mentioned this pull request Jun 16, 2021
45 tasks
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 bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants