Change tenant id to central when opening details of Shared Authority

Description

Purpose: To change X-Okapi-Tenant header to the central tenant id to be able to display the shared Authority for a Local member tenant.

Scenario 1:

  1. Given a Shared Instance in a Consortial Local member tenant

  2. When a user views the Authority details

  3. Then change X-Okapi-Tenant header to the central tenant id to be able to view the Authority.

Environment

None

Potential Workaround

None

Attachments

1
  • 22 Aug 2023, 02:22 PM

Checklist

hide

TestRail: Results

Activity

Show:

Yauhen ViazauAugust 22, 2023 at 2:22 PM

Tested on https://folio-dev-spitfire-2nd-consortium.ci.folio.org/ - works as expected

Value in "x-okapi-tenant" header is changed to "consortium" (central tenant) when opening detail view shared Authority record on Member tenant for requests to following endpoints:

  • /search/authorities

  • /mapping-rules/marc-authority

  • /source-storage/records

Detail view of shared record can now be opened on Member tenant

See screencast as an example:

Note: on Central tenant, detail view of local Member Authority records can also be opened and "x-okapi-tenant" in the same requests is "college"/"university" (depending on where local record is)

Denys BohdanAugust 18, 2023 at 11:03 AM
Edited

Hey , should users be able to view Local Authority records when they are in central tenant?

It seems to be problematic because we don't know which tenant that Local Authority is from so we don't know what tenant to put in request headers. And back-end is responsing with error in central tenant when requesting Local Authority record with central tenant header.

Please ignore, we can get tenant id for Local Authorities, there is no issue

Denys BohdanAugust 18, 2023 at 10:41 AM

Note to QA: Editing Shared Authority records from member tenants will be done in scope of https://folio-org.atlassian.net/browse/UIMARCAUTH-285#icft=UIMARCAUTH-285

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created August 15, 2023 at 7:58 AM
Updated October 3, 2023 at 3:29 PM
Resolved August 25, 2023 at 7:38 PM
TestRail: Cases
TestRail: Runs