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

Add notification on card assignment to user, fixes #475 #545

Merged

Conversation

steav
Copy link
Contributor

@steav steav commented Jul 22, 2018

No description provided.

@steav steav changed the title Add notification on card assignment to user #475 Add notification on card assignment to user Jul 22, 2018
@steav steav changed the title Add notification on card assignment to user Add notification on card assignment to user, fixes #475 Jul 22, 2018
}
$notification->setParsedSubject(
(string) $l->t('The card "%s" on "%s" has been assigned to you by %s.', $params)
);
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a rich subject as well, similar to https://github.com/nextcloud/deck/pull/545/files#diff-52c5c003756b8dcc9c5318257107346dL95? This way the user will also be linked properly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@juliusknorr
Copy link
Member

Thank you very much for your pull request @steav, looks good besides the inline comment. Can you also remove the changes to the language files. We are managing translations via transifex and those strings will be pulled from there: https://www.transifex.com/nextcloud/nextcloud

@juliusknorr
Copy link
Member

@steav Can you also add a sign-off message to the commits as described in https://github.com/nextcloud/deck#sign-your-work ?

@steav
Copy link
Contributor Author

steav commented Jul 23, 2018

Thanks you a lot @juliushaertl for your advices and your awesome work!

@juliusknorr
Copy link
Member

@steav Can you also have a look at the failing tests and add some basic ones for the new methods?


/* Notify user about the card assignment */
$card = $this->cardMapper->find($cardId);
$this->notificationHelper->sendCardAssigned($card, $userId);
Copy link
Member

Choose a reason for hiding this comment

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

We should only send a notification if the user assigns somebody else. If you assign yourself, there is no need for a notification.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@juliusknorr
Copy link
Member

@steav Really nice work done here. Tested and works fine. I just have one small enhancement commented inline. After that it is good to go. 😉

@juliusknorr juliusknorr force-pushed the issue-475-notifications-on-card-assignment branch from e2e832d to 476b15e Compare July 28, 2018 10:21
@codecov

This comment has been minimized.

Signed-off-by: Julius Härtl <[email protected]>
@juliusknorr juliusknorr merged commit 769053b into nextcloud:master Jul 28, 2018
@juliusknorr
Copy link
Member

merged. 🚀 Thank you very much for your contribution @steav Further pull requests are always welcome. 😉

@juliusknorr juliusknorr mentioned this pull request Oct 8, 2018
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants