Permission to view eUsage reports accordion

Description

Users would like to have a separate permission to allow viewing of the eUsage Reports accordion on the agreement record, regardless of whether they have permission to use the eUsage app. This permission will also allow users who are not using eUsage to prevent the accordion from being shown.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2
  • 08 Oct 2021, 05:13 PM
  • 08 Oct 2021, 05:13 PM

Checklist

hide

TestRail: Results

Activity

Show:

Mike TaylorOctober 8, 2021 at 8:11 PM

Welcome news!

(Sorry about the snarky comment earlier.)

Kristen WilsonOctober 8, 2021 at 8:02 PM

This works now. Thanks,

I also tested removing the eUsage reports permission and the agreement displays correctly without the accordion. 

Mike TaylorOctober 8, 2021 at 7:33 PM

I went ahead and did the rebuild/redeploy/post perms cycle.

Please QA this again with a newly created user. Thanks!

Mike TaylorOctober 8, 2021 at 7:15 PM

Fixed: https://github.com/folio-org/ui-plugin-eusage-reports/commit/7b62e586b500670ffac7f10d51a1900e44a6feb7

(Unfortunately, it won't be possible to QA this for some time – until a new thor bu7ndle has been built and deployed and the permission re-installed.)

Mike TaylorOctober 8, 2021 at 7:03 PM
Edited

The underlying problem here is that the permission I added – plugin-eusage-reports.view-charts (eUsage reports: charts may be viewed) does not include the relevant low-level permissions as sub-permissions. These are:

  • eusage-reports-report-use-over-time.get – eUsage reports - use over time

  • eusage-reports-report-reqs-by-date-of-use.get – eUsage reports - reqs by date of use

  • eusage-reports-report-reqs-by-pub-year.get – eUsage reports - reqs by pub year

  • eusage-reports-report-cost-per-use.get – eUsage reports - cost per use

  • eusage-reports-report-status.get – eUsage reports - status

(The last one is questionable, but it seems better to include.)

I'll make the changes to the UI module's descriptor.

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Mjolnir

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created September 24, 2021 at 12:34 PM
Updated September 21, 2022 at 12:20 PM
Resolved October 8, 2021 at 8:02 PM
TestRail: Cases
TestRail: Runs

Flag notifications