ral-facilities / inventory-management-system-api

Apache License 2.0
1 stars 0 forks source link

Reduce size of mock generated data #392 #397

Closed joelvdavies closed 1 month ago

joelvdavies commented 1 month ago

Description

Adjusts the generate_mock_data script to generate less data overall by fixing a bug with system generation producing subsystems down though MAX_LEVELS_DEEP + 1 and reducing some of the constants . See the screenshots below. Old: image

New: image

This makes it considerably faster and should make it quicker to populate mock data for the object_storage_api. This PR also makes some modifications in line with https://github.com/ral-facilities/object-storage-api/pull/43.

Testing instructions

Add a set up instructions describing how the reviewer should test the code

Agile board tracking

Closes #392

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.87%. Comparing base (5931ed9) to head (11f588f). Report is 5 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #397 +/- ## ======================================== Coverage 97.87% 97.87% ======================================== Files 41 41 Lines 1504 1504 ======================================== Hits 1472 1472 Misses 32 32 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.