Skip to content

Ensure base work item types are created when needed

Mario Celi requested to merge 353552-upsert-work-item-types-on-app-start into master

What does this MR do and why?

Work item types are required for the app to work. They are seeded into the DB via fixtures.

In the event they were not seeded, we still want to make sure they exist when needed.

Related to #353552 (closed)

How to validate locally

  1. Run the rails console bin/rails c
  2. Remove all work item types WorkItems::Type.delete_all
  3. Create an issue using the web app
  4. Creation should fail prior to this change. And 5 work item types should created after creating the issue with this change (and not fail).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Mario Celi

Merge request reports