Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
-
-
ACQ Sprint 55, ACQ Sprint 56
-
3
-
EBSCO - FSE
Description
In a recent discussion we've decided to pursue a different approach to loading sample data which involves overriding the default implementation of the tenant interface (POST _/tenant). This API is called by OKAPI when the module is enabled for a tenant.
Basic approach:
- Execute the standard/default logic
- Look for one or more request parameters indicating whether or not to load sample and/or reference data. These parameters are specified in the tenantAttribute data.
- Conditionally read in data (from somewhere) and insert it into the database.
This basic approach has been implemented for inventory storage. See https://issues.folio.org/browse/MODINVSTOR-216
Special sauce:
- Define system properties which would be specified at runtime indicating whether or not to load sample and reference data. This would dictate the default behavior in the case where the aforementioned flags aren't specified by OKAPI when calling the tenant API. Note that these would be applied to ALL tenants, whereas the params provided by OKAPI would be tenant specific.
See related stories for additional details.
Additional context:
https://github.com/folio-org/okapi/blob/master/doc/guide.md#install-operation-example
https://github.com/folio-org/okapi/blob/master/doc/guide.md#tenant-parameters
TestRail: Results
Attachments
Issue Links
- blocks
-
MODORDSTOR-53 Make location repeatable
-
- Closed
-
- relates to
-
FOLIO-1779 Specify loadSample tenant parameters for mod-orders-storage
-
- Closed
-
-
MODORDSTOR-49 Refactor sample data from flat files into individual json files
-
- Closed
-
-
MODORDSTOR-50 Use sample data in unit tests
-
- Closed
-
-
UXPROD-1388 Create New Purchase Order Lines
-
- Closed
-
-
FOLIO-1519 Automatic loading of sample and reference data
-
- Closed
-
-
FOLIO-1681 folio-ansible: Use tenant init to load inventory storage reference data
-
- Closed
-
-
MODINVSTOR-216 load reference data as part of the tenant init call
-
- Closed
-
-
MODVEND-81 Load sample data via tenant API
-
- Closed
-