Open djamg opened 1 year ago
An example to write the strings to make it sound less passive: Mustrum Ridcully is now an admin of Ankh-Morpork (appointed by Havelock Vetinari)
These changes have to go in the feature file
Subject first, followed by action and then actor. For example, "Sreelakshmi made admin of xyz project by Zainab Bawa."
The updated strings with matching tests are part of #1423.
Havelock Vetinari is the
owner
of Ankh-Morpork organization and Mustrum Ridcully is a user. Vetinari decides to make Ridcully anadmin
of the organization.This action by Vetinari triggers a notification to the other admins of the organization in this format:
<actor> made <subject> <role> of <organization>
which is specified in the feature file and implemented in this fileThe notification template looks like this:
The image of the
subject
appears because they are the user of interest (Ridcully) next to theactor
(Vetinari)'s name.There are 3 conflicts here:
actor
(in the data model).subject
is the user of interest (here, Ridcully), and so the notification view changes theactor
.