Facility Assignment Configuration Errors

Description

As an admin I want a report that lists all configuration errors for facilities assignments so that I can correctly update the assignments

Acceptance Criteria:

  1. For every unique Facility and Program combo that is active check for active users in the following way:

    • User must be active and verified

    • The required Role Type that should be assigned is SUPERVISION.

    • The rights can be assigned at a user's Home Facility, or via Supervisory Node

    • The required Rights that should be assigned: REQUISITION_VIEW, REQUISITION_CREATE, REQUISITION_AUTHORIZE, REQUISITION_APPROVE, REQUISITION_DELETE

    • One user or more users must have the required rights assigned. (query each of the 5 rights for every facility and program combo. If zero are found, then this is an error)

  2. When records are corrected, the report no longer shows the records.

  3. When the report is run and there are no records, the report shows "No records missing assignments"

  4. Report shows the date it is generated

  5. This new report is located in View Reports

  6. User with Admin Type rights for MANAGE_USERS and Report Type rights of VIEW_REPORTS, is the only user able to run these reports. Users without these rights should not be able to view the report in View Reports tab

  7. Report formats should match existing Jasper formats

  8. Report should list the records that are missing assignments and the following columns:

Facility Code

Facility Name

Facility Type

Assigned Programs

Assigned Roles

Assigned Supervisory Node

HC01

Comfort Health Clinic

Health Center

Family Planning

storeroom manager

null

HF01

Nandumbo Health Facility

Health Center

Family Planning

store manager, storeroom manager

SN1

Assumptions:

  1. The manual process of resolving these errors is out of scope

Activity

Show:
Joanna Bebak
August 7, 2017, 10:15 AM

I mean the rows without any text that are visible between the "Facility Name" and "Facility Type" columns, and between "Assigned Roles" and "Assigned Superv. Node" columns. I don't think such big spaces between columns are necessary; e.g. between the "Facility Code" and "Facility Name" there are none, and the data are still easily readable.

Brandon Bowersox-Johnson
August 7, 2017, 3:36 PM

Okay, please create a new Bug ticket for the formatting issues that you have reported here. It sounds like Paweł suggests we create a separate Bug ticket for addressing the formatting. (This ticket, 2760, was marked Done and moved off the board a sprint ago.)

FYI

Paweł Albecki
August 7, 2017, 4:42 PM

Respecting CSV issues, this is how Jasper generate CSV, we can't really adjust that but we can exclude some template "bands" (like report header with template title) from printing in chosen format. I believe it is reasonable to have in CSV just headers and values without title, date and so on. What do you think about this?

Brandon Bowersox-Johnson
August 7, 2017, 5:09 PM

Regarding the CSV formatting, I think it is better to have a few blank rows rather to have missing information (title, date and so on).

Joanna Bebak
August 8, 2017, 6:03 AM

All right, in that case, I agree with Brandon - the completeness of information is more important than formatting.

Done

Assignee

Mateusz Kwiatkowski

Reporter

Sam Im

Labels

Story Points

5

Time tracking

0m

Time remaining

0m

Components

Sprint

None

Fix versions

Priority

Major