dscgt / recycling_website

Admin website for GT OSWM&R.
0 stars 0 forks source link

Group deletion safety #58

Closed michaelyfan closed 3 years ago

michaelyfan commented 3 years ago

Prevents a group from being deleted if it is being used in a model.

How to test

  1. Install new dependencies with npm i
  2. Run the app with npm start
  3. Navigate to http://localhost:4200 in a web browser
  4. Make a checkin group
  5. Make a checkin model that contains this group
  6. Try to delete the group, and ensure it is not deleted
  7. Make another checkin model, attach the group to it, and ensure the group cannot be deleted
  8. Delete both checkin models and then ensure the group can be deleted
  9. repeat the last 5 steps with their route equivalent
    1. verify no bugs in browser console