Repository navigation
4. Sharing study material
Because we know what a hazard it is to type dozens of flashcards, Effdy provides the student with a way to share her study materials. Either topics or subjects can be shared. There are two basic ways of sharing:
- Send a copy
- Add a collaborator
A student can send a copy to another registered student of any of her topics or subjects. When a topic is sent, all its cards are copied. When a subject is sent, all its topics with all its cards are copied. In this case, the application creates whole new documents for each subject/topic/card that is owned by the recipient.
A student can add another registered student as a collaborator to any of her topics or subjects. A collaborator can modify and add new elements. Although they can add and delete cards to a topic, they can't delete topics nor subjects. Whenever any of the collaborators changes something, all the others will have access to the changes. In this case, only one record of the documents is stored in the DB, the original record, and it is only owned by the creator. The creator of the documents can remove the collaborators any time she wants.
Collaborators are not added immediately from request. The recipient of the sharing request must accept or decline the proposal. When a new proposal arrives, a notification bell appears on screen with the number of share requests the user has received.
A share request is composed of: the kind (type) of sharing, the object_type, the object id, the recipient id, the sender id, and the name of the object.