Handle errors when sharing local instances failed

CSP Request Details

None

CSP Rejection Details

None

CSP Approved

None

Description

In a member tenant: Display red toast if some request during sharing a local instance was unsuccessful.

Steps to reproduce:

  1. Preconditions

    • At least 1 local Source = MARC instance exists

    • At least 1 local name authority records exist

    • A user has only Inventory permissions

  2. Log into a member tenant

  3. Go to the Inventory app

  4. Find a local instance with Source = MARC and linked MARC authority fields

  5. Go to Actions/Share local instance

 

Expected result:

The user should get a red error toast because he does not have permission to get authority fields.

Note: inventory-storage.authorities.collection.get permission should be added to Inventory: Share local instance with consortium sub-permissions on the server side to avoid this problem. This ticket is about correctly handling the failed request of getting marc authorities on UI. As a workaround the user can be granted with MARC Authority: View MARC authority record UI permission.

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Ann-Marie Breaux November 20, 2023 at 5:28 PM

OK - I'm going to just close this. Thank you!

Mariia Aloshyna November 20, 2023 at 3:36 PM

Hi it's needed to cause a network issue to verify this ticket if you want to test it because the problem with authority permissions has been fixed already.

Maksym Ishchenko November 10, 2023 at 10:18 AM

Hello  

Ticket verified on Consortia rancher. Now we can't share instance with linked authorities records if user don't have authority permissions assigned to him

Moving ticket further

cc:  

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Folijet

Fix versions

Release

Poppy (R2 2023) Bug Fix

Affected releases

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 9, 2023 at 1:29 PM
Updated November 22, 2023 at 1:36 PM
Resolved November 16, 2023 at 9:15 AM
TestRail: Cases
TestRail: Runs