Empty values (no value) for inactive harvesting status

Description

Background:

Since UIEUS-301 it's not possible anymore to save a UDP with no value for fields that are not mandatory when the harvesting status is "inactive".

Scope: 

It should be possible to select an empty value for 

  • Harvest statistics via

  • Service type

  • Report release

If the harvesting status is "inactive", those fields are not mandatory and the user should be able to save the record with this empty value.

If the harvesting status active, the fields become mandatory and the user should not be able to save the record with the empty value. A message "Required!" should be displayed.

Info:

The behavior can be seen in the orders app, with the fields payment status (not mandatory) and Order format (mandatory)

Environment

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

Viola E. October 5, 2022 at 1:21 PM
Edited

"harvestVia" and "serviceType" are required by the backend. These fields should not be required anymore. Probably the  "harvestVia" is because the "harvestingConfig"-object is listed as required. (Maybe we should change the required just to the "harvestingStatus"-field?):
https://github.com/folio-org/mod-erm-usage/blob/94302ac40260cbe7d521ba843f4ae958647a2c4f/ramls/schemas/udprovider.json#L187

https://github.com/folio-org/mod-erm-usage/blob/94302ac40260cbe7d521ba843f4ae958647a2c4f/ramls/schemas/udprovider.json#L52

The app is getting the values for "serviceType" from this API-endpoint:
GET /erm-usage-harvester/impl 
But I think we will add the empty value anyhow just in the frontend.

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Leipzig

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created October 5, 2022 at 6:42 AM
Updated October 19, 2022 at 8:05 AM
Resolved October 19, 2022 at 8:05 AM
TestRail: Cases
TestRail: Runs