AnimeThemes / animethemes-server

AnimeThemes.moe resource management & API
https://animethemes.moe/
MIT License
92 stars 13 forks source link

Schedule job to create sanitized database dumps #74

Closed ghost closed 3 years ago

ghost commented 3 years ago

For onboarding purposes, it is desirable to work with a copy of production data. We should not expect that new developers will use database seeders as they will be pruned after the wiki release. Additionally, some database seeders assume read+write access to s3 storage, and we are not currently granting such access outside of the moderation team.

We should have a job scheduled to dump wiki-related database tables for publishing in the animethemes-db-dump repo. There exists a package that would make writing an artisan command (see VideoReconcileCommand) for this task fairly easy. This command should also be added to the console kernel so that it can be run on demand.

ghost commented 3 years ago

We may have other needs for providing local seed data, but I will be closing this issue for now.