Institution CRUD: Disallow Delete When in Use

Description

User story:
As an administrator who is managing FOLIO institutions, I should not be able to delete an institution that is in use by one or more location record

Scenarios: Check Mark

  1. Scenario CB: Disabling the delete button, while better from a UX perspective, isn't technically feasible.

    • Given a controlled vocab value is in use by one or more record

    • When delete button is clicked

    • Then:

      • No deletion will occur

      • Popup should display:

        • Header: Cannot delete institution

        • Body: This institution cannot be deleted, as it is in use by one or more record.

        • Buttons: Okay

Mockups:

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Zak Burke April 26, 2018 at 8:19 PM

The backend will send a 400 if we attempt to delete an in-use item, and thanks to awesome work by , the ControlledVocab component will catch that and display a nice error message.

Done

Details

Assignee

Reporter

Priority

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created March 24, 2018 at 10:08 AM
Updated June 7, 2018 at 12:41 PM
Resolved May 15, 2018 at 7:12 PM
TestRail: Cases
TestRail: Runs

Flag notifications