Expand seed data created for release testing
Descriptive summary
The infrastructure supporting creation of objects through seed data has been merged in PR #5472. Now that the basic infrastructure is in place, it is ready to have the full set of release testing which is described in Data Seeds for Hyrax Dev.
Expected
Running seeds with SEED_RELEASE_TESTING=true will produce the data described in Data Seeds for Hyrax Dev.
Actual
Running seeds with SEED_RELEASE_TESTING=true produces some collection types, collections, and users. These may not match what is in the spreadsheet and should be updated to match.
_NOTE: Seeds are generated by /app/utils/hyrax/test_data_seeder.rb which calls classes under /app/utils/hyrax/test_data_seeders for each data type to generate the actual data (e.g. collection types, collections, admin sets, works, etc.).
Rationale
Allow test environments (e.g. nurax-dev, nurax-pg, dassie) to clear all data and populate with a useful set of default data that can be used to see the app with realistic data.
Steps to run seeds
In a terminal window, navigate to the app root:
bundle exec rake db:seed WIPE_DATA=true SEED_RELEASE_TESTING=true
WIPE_DATA should completely clear all metadata and data closely coupled with repository objects. NOTE: This is a convenient way to clear out existing data while testing and re-testing the generation process.
SEED_RELEASE_TESTING should generate expected seeds.
Related work
PR #5472 add infrastructure for clearing repository and running seeds