User roles assignment screen broken for SN without facility

Description

Assumptions:
Facility is NOT required in Supervisory Node per

If there's any supervisory node in the system that does not have a facility assigned to it, the user roles assignment screen won't work for any user. Upon clicking "Roles" an Internal Application Error shows up.

Repro

  1. Create supervisory node without facility assigned (creating SNs is only posssible via API currently)

  2. Go to Administration -> Users

  3. Click "Roles" button next to any user

  4. Internal Application Error modal shows up and the browser console shows the error attached below.

Expected

  • I can enter user roles assignment screen even if there's a supervisory node without facility assigned.

  • display SN name without facility - if facility is null

Environment

None

QAlity Plus - Test Management

Checklists

Activity

Sam Im 
June 21, 2018 at 10:46 PM

Do you want this to be included in 3.3.1 patch release?

Paweł Albecki 
April 23, 2018 at 12:54 PM

Yes, thanks

Sebastian Brudziński 
April 23, 2018 at 12:53 PM

I hope the edit clarifies

Paweł Albecki 
April 23, 2018 at 12:50 PM

What is Internal Application Error? Is it some UI error?

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

4h 30m logged3h 30m remaining

Components

Sprint

Affects versions

Priority

Time Assistant

Created April 23, 2018 at 9:44 AM
Updated June 21, 2018 at 10:46 PM
Resolved May 2, 2018 at 9:12 AM