Change useUserTenantPermissions to return permissions from _self endpoints

Description

Summary: If users-keycloak interface is present use users-keycloak/_self endpoint; otherwise bl-users/_self

Environment

None

Potential Workaround

None

Attachments

4

Checklist

hide

Activity

Show:

Yauhen Viazau December 4, 2024 at 4:20 PM

Tested on https://bugfest-ramsons-consortium.int.aws.folio.org/, https://eureka-bugfest-ramsons-consortium.int.aws.folio.org/ - works as expected

  • users-keycloak/_self calls are made for each tenant on Eureka

  • bl-users/_self calls are made for each tenant on Okapi

See examples:

 

Denys Bohdan November 25, 2024 at 11:13 AM

Hi , with the issues described in I’d like to ask to review this ticket as well, so that new approach doesn’t break functionality in Sunflower release

Yauhen Viazau November 22, 2024 at 10:48 AM
Edited

Re-tested on https://folio-etesting-snapshot-consortium.ci.folio.org/, https://folio-testing-sprint-cs00000int.ci.folio.org/ - works as expected

Testing approach suggested by Aidyn.

When viewing shared instance records in Inventory on Central, Member tenants:

  • users-keycloak/_self calls are made for each tenant on Eureka

  • bl-users/_self calls are made for each tenant on Okapi

See examples:

 

Yauhen Viazau November 21, 2024 at 9:26 AM

Tested on https://folio-etesting-snapshot-consortium.ci.folio.org/ - issue found

When opening a shared instance for view, users-keycloak/_self call is being made but it yields 404 response with such body:

See examples:

Please note the error pop-ups and other failed requests in the video are due to

- please review/fix

Aidyn Zhakizhanov November 19, 2024 at 8:21 AM

This ticket should solve EUREKA-137 issue, specifically first case in the ticket

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Eureka

Fix versions

Release

Ramsons (R2 2024) Bug Fix

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created November 4, 2024 at 8:40 AM
Updated February 25, 2025 at 2:24 AM
Resolved December 2, 2024 at 1:50 PM
TestRail: Cases
TestRail: Runs