mitodl / mit-open

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

fixtures for testimonials #1176

Closed shanbady closed 3 days ago

shanbady commented 1 week ago

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/4687

Description (What does it do?)

This PR is a POC implementation and part of an ongoing discussion about how we should handle data migrations for one-off static fixtures.

I had 3 approaching this that I tried.

Approach 1 (pr): Add fixtures in as a data migration that runs inline with regular migration process

potential issues:

Approach 2 (branch): create a separate app for handling migrations and cross reference dependent migrations in other apps:

potential issues:

Approach 3 (this branch): create a separate app for handling migrations and use a flag to control when the app's migrations run and make sure it always runs last

How this is setup:

potential issues:

shanbady commented 3 days ago

closing in favor of https://github.com/mitodl/mit-open/pull/1218