[FOLIO-1361] Update data loading in folio-ansible Created: 19/Jul/18  Updated: 15/Jan/19

Status: Open
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: New Feature Priority: P3
Reporter: Wayne Schneider Assignee: Wayne Schneider
Resolution: Unresolved Votes: 0
Labels: ci, for-next-sprint, sprint43, sprint44, sprint45
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint:
Development Team: Core: Platform

 Description   

Sample and reference data loading in folio-ansible currently uses a POST to the endpoint to create the data. In order for the tasks to be (at least loosely) idempotent, they have to tolerate the error that is returned for a duplicate record key – a 400 or a 422, depending on the endpoint. This is also the error code returned for failed record validation.

If we switch the HTTP method to PUT, we may be able to have a loosely idempotent Ansible role (it will replace all the data, which is not necessarily ideal, as for example the metadata property will change) while failing as appropriate if there is a validation problem with the sample data.


Generated at Thu Feb 08 23:12:46 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.