MajidBenam / seshat

This is the beginning of the Seshat Project code.
0 stars 3 forks source link

Document how to make database updates #5

Closed edwardchalstrey1 closed 6 days ago

edwardchalstrey1 commented 8 months ago

Both RAs and software engineers on the Seshat project need to know how they can update the production Seshat database(s) used by the live website.

We should document how this can be done and the exact steps to take for different kinds of operations.

The kinds of possible operations that I think should be documented:

For RAs

@MajidBenam For these tasks, how do you currently manage edit requests; Enrico mentioned something about trying to make a change and you had to give him approval to make it? Is there some identity management in AWS or specifically to log into the database?

For engineers

@MajidBenam I'm just starting with Django, but I think should follow the same established workflow for updating the software generally (which we can also document), where we:

  1. make a new branch off the dev branch
  2. Make code changes, and for db changes this means adding to the migrations e.g. seshat/apps/core/migrations or the equivalent for whichever app/db it is
  3. Make a PR for review
  4. @MajidBenam Does a git pull on the production VM hosting the website, to introduce changes (and in the case of db changes, runs the new migrations)

Notes:

edwardchalstrey1 commented 8 months ago

Currently RAs:

edwardchalstrey1 commented 6 days ago

Closing this as a new issue was opened: https://github.com/edwardchalstrey1/seshat/issues/91