department-of-veterans-affairs / caseflow

Caseflow is a web application that enables the tracking and processing of appealed claims at the Board of Veterans' Appeals.
Other
54 stars 18 forks source link

Create easy way for team admins to navigate to team user management page #8170

Closed lowellrex closed 5 years ago

lowellrex commented 5 years ago

There is currently no way for admins of the various teams at the Board (and VSOs) to navigate to the user management page. This ticket exists to do the engineering work required to add that link/dropdown/whatever other method we decide on to navigate to the user management page.

Current look at the user management page: image

Acceptance criteria

lpciferri commented 5 years ago

@lowellrex - I connected with @allyceh and @sneha-pai on this and updated the AC above. would love your input on if you think using the Switch Views dropdown will work for this for now.

lowellrex commented 5 years ago

Sure! I think using the "Switch Views" dropdown will definitely work for now

joeyyang commented 5 years ago

couple questions:

lpciferri commented 5 years ago

I can answer your second question: Yes, we should put it everywhere the switcher lives. I think this is individual queues, organization queues, and the user management page.

lowellrex commented 5 years ago

how do we tell if someone is a team admin?

The OrganizationsUser table has an admin field that tells us if somebody is an admin of a team. We can use the User.administered_teams method when we build the list of selectable_organizations to determine the URL we should be pointing to (though we will probably have to move the serialized object we build in the template file into the user model).

lowellrex commented 5 years ago

Exclude JudgeTeam admins from being able to visit the team admin page until @laurjpeterson can confirm that judges should be allowed to determine who is on their team.

joeyyang commented 5 years ago

discussed this approach with @sneha-pai — we thought it'd make more sense (and be much simpler to implement) if we put this link in the user's top menu dropdown, here: screenshot 2019-02-06 11 56 57

Reasons:

@laurjpeterson — can you approve these changes? I'm happy to work with you on a new set of AC.

lpciferri commented 5 years ago

@joeyyang this sounds good to me! Then, users can navigate back to their queue by clicking the Caseflow logo. I think we'll want to email about this change when it is deployed so they know the behavior.

In other but related news - @marvokdolor-gov got approval from DVCs today that judges can manage the attorneys on their team, so they can navigate to the user admin page. We were briefly told judges wouldn't be allowed to do this last week, and I alerted @tomas-nava and @lowellrex to it, but I'm glad to say that restricting judges from navigating is not, in fact, a requirement.

I updated AC to reflect joey's comment and the recent news about judges.