magictracks / magictracks-docs

Repo for documenting "hacking higher ed" project
Other
3 stars 0 forks source link

[Updates/Notes] 20181031 #44

Open joeyklee opened 6 years ago

joeyklee commented 6 years ago

Happy Halloween πŸŽƒ!

Just the usual weekly update here which I will eventually move to https://github.com/knittingmachine/knittingmachine-docs/blob/master/updates-and-notes.md

The last week has been dedicated to refactoring and adding core functionality to the back end of the application. Overall I think it has been pretty productive working through some of these trickier issues.

Here's the progress since last week:

  1. I've been working from the withAuth branch and will merge changes to master once I've tested all the aspects.
  2. Authentication: Feathers.js makes it pretty easy to implement authentication and authorization. So now the application required auth for creating, updating, patching, and updating documents. Unauthenticated users can read.
  3. Access control: I've implemented a crude resource based access control strategy. Now users can add collaborators to a project and this allow them to make update, patch, and remove actions on a document. I still need to work out how to deal with merge conflicts if people are working on the document at the same time (not trivial! 🀯) .
  4. Database structure: I've decided to go with using mongoose (mongodb) and using populate() as a way to link documents across collections.
  5. Saving document history versions: added document saving /versioning for the last 25 updates and changes to a document

Things on my mind: