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

Decouple remote wipe notifcation channels with events #15775

Merged
merged 1 commit into from
Jul 2, 2019

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented May 28, 2019

For #15646.

Todo

  • Simple PoC
  • Work on event system
  • Fix and write tests

@ChristophWurst ChristophWurst added this to the Nextcloud 17 milestone May 28, 2019
@ChristophWurst ChristophWurst self-assigned this May 28, 2019
@ChristophWurst

This comment has been minimized.

@ChristophWurst ChristophWurst marked this pull request as ready for review June 27, 2019 14:35
@ChristophWurst ChristophWurst force-pushed the refactor/decouple-remote-wipe-notifications branch 2 times, most recently from f0fb875 to 91fb2ae Compare June 27, 2019 14:38
}

private function sendNotification(string $event, IToken $token): void {
$notification = $this->notificationManager->createNotification();
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to send those as normal notifications,
or more like the silent notification when a notification is deleted on another device?
Similar to nextcloud/notifications#318

That would allow us, to send it only to the affected device.

In that case I would simply trigger an event and make the notifications app listen to it and then do it's magic there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fine by me. Can we do this in a follow-up PR? The little refactoring exercise here is needed to also add e-mail notifications 😉

@ChristophWurst ChristophWurst force-pushed the refactor/decouple-remote-wipe-notifications branch from 91fb2ae to aa6622c Compare June 27, 2019 15:16
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

Awesome!

Code looks good.
I tested it and it works as advertised! 🚀

@rullzer rullzer requested a review from juliusknorr June 27, 2019 16:15
@rullzer rullzer added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 27, 2019
@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 27, 2019
@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 4. to release Ready to be released and/or waiting for tests to finish labels Jul 2, 2019
Copy link
Member

@georgehrke georgehrke 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 👍

@georgehrke georgehrke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 2, 2019
@georgehrke georgehrke merged commit 9f7fca4 into master Jul 2, 2019
@georgehrke georgehrke deleted the refactor/decouple-remote-wipe-notifications branch July 2, 2019 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants