Conversation
…d users-permission-search
…d users-permission-search
Added an API that fetches all the admins
Redesign users screen 1751
Filtered permission 1754
Filtered permissions data comp
|
File in Frontend needs to adapt to manage an object that has |
|
Thanks for finding the issue, @trillium! |
|
@trillium, do you think we should include the cc: @JackHaeg |
| for (const projectId of projectManagerObj.managedProjects) { | ||
| const projectDetail = await Project.findById(projectId); | ||
| if (projectDetail && projectDetail.name) { | ||
| projectNames.push(projectDetail.name); |
There was a problem hiding this comment.
Should you return (push) the projectId in addition to the name?
There was a problem hiding this comment.
@jng34, The projectId is already included as part of the admins data. So, I think we don't need to push it.
The API for the admins is returning this data object

The API for the project leads is returning this data object

So, I want to check if we should include the isProjectLead and managedProjectNames properties in the API that fetches all the admin as well?
Thanks for taking a look at the code.
There was a problem hiding this comment.
Got it, thanks for the screenshots.
Regarding the isProjectLead and managedProjectNames properties, I think including those in the API fetch for admins would be a good idea if the user wants to know that info about a specific admin when clicking on his/her profile.
I guess that depends on what accessLevel ('user', 'admin', 'superadmin') does the user have and what info do we want each to be able to see.
There was a problem hiding this comment.
Per discussion with @trillium, it should be okay to not include isProjectLead and managedProjectNames as part of the admins API.
|
@vorleakyek |
|
@vorleakyek @trillium |
|
@JackHaeg Oops, clicked the self-request by accident! |
|
@jng34, could you please approve the PR since you have already looked at the code? Thank you! |
|
@vorleakyek @trillium @JackHaeg |
|
Update - @ntrehan plans to review this PR this week. |
ntrehan
left a comment
There was a problem hiding this comment.
Hi @vorleakyek and @jng34
Sorry for the delay in reviewing. It was a very large PR and have gone through the changes. The changes are working as expected
I am approving the PR from my end


Fixes #1801
Fixes #1836
What changes did you make and why did you make them ?
Screenshots of Proposed Changes
Visuals after changes are applied