mtamc / memo

Website for rating books, movies, video games, and TV shows.
0 stars 0 forks source link

Enable or document tooling for how to maintain lists #16

Closed dustinvtran closed 2 years ago

dustinvtran commented 2 years ago

Example. Find all entries without a link to a database. This way you can go through the set of entries and add the links.

Example. Find all entries with a link to a database and overwritten manual fields. This way you can go through the set of entries and remove the manual fields if they're duplicate, incorrect, or simply not necessary any longer as the databases update over time.

This can be done on the website or we could also just do grep-like commands in CLI due to direct access to the faunadb/etc. apis. In either approach, we should document how to complete the workflow.

ghost commented 2 years ago

Let's create a scripts folder (on the same level as api and frontend) that contains this kind of utility, just like a script to download certain stuff from the database and export it as json, then another script that takes a json of existing, updated entries and uses it to update the db.

dustinvtran commented 2 years ago

Sounds good!

ghost commented 2 years ago

db_maintenance folder created, will eventually have more documentation/content

ghost commented 2 years ago

3ae558c Added a README.md with minimal examples explained