unfoldingWord / dcs

Door43 Content Service
https://git.door43.org
MIT License
0 stars 6 forks source link

New database table to track published (prod) file revisions #325

Open mandolyte opened 3 years ago

mandolyte commented 3 years ago

The Gitea database (DCS uses MySql), will be updated to include a table which will be updated after a release to reflect any new revisions of the files. At present, the following columns are being considered for the “revision table”:

This work package would include the code that runs at release time to maintain the above table. There are prerequisites that will be evaluated to determine if the release is considered “good enough”:

richmahn commented 3 years ago

Just a note, a lot of these fields would be more likely in the API response object, where things like owner and repo (both names and objects) can be derived by a simple repo_id that then can be found in the repository table which has an owner_id which references the user table. html_url, content-url and such helpful API-specific properties be computed at the time that the database model object is converted to the API response object for each object.

jdejoode commented 3 years ago

I am wondering how this would work for strictly offline use of our tools. If a teams does not want to use DCS, can they still access the type of information that this database is likely to store or are they limited in functionality?

richmahn commented 3 years ago

@jdejoode Just have to run DCS on their own machine. Not hard. Can do it in a Docker container or compile the source, or use the https://github.com/unfoldingWord-dev/tx-dev-dcs repo to start one with populated data in a Docker container.