CON-139: Add fixtures
Description
- Several features added to the mock application
- Remove non-db schemas from Django models
- Remove 'id' field from non-db schemas
- Adds support for non-db schemas in mock application, name understanding query filters as schemas that are not in the db.
- Added SHA-1 as preferred hash algorithm
- Renamed some fields from
hashtoserialized_hashand made descriptions clearer - Endpoints added:
/service/individual/record/(GET) and/service/individual/record/agreement/{agreementId}/all/(GET) - Endpoint removed:
/service/individual/record/agreement/(GET) - Tooling: Mock application is generated entirely from OpenAPI YAML (WIP)
- Added
agreement_revision_hashto ConsentRecord - Mock application automatically generates Revision and Signature objects, making it easy to export fixtures.
- Exporting fixtures from mock application docker environment with
./dev.sh fixtures - OpenPGP signature example in fixtures
TODO
-
Resolve FK data when storing revisions -
Concatenate all related M2M fields'M2M relations are resolved and included as lists in serialized objects.serialized_hashin revisions?
Related Issue
CON-139
Motivation and Context
https://govstack-global.atlassian.net/browse/CON-139
How Has This Been Tested?
It's part of the mock application, fixtures are loaded.