@Starker3 opened this Issue on January 27th 2022 Contributor

Refs DEV-2411
Not sure exactly under what circumstances this bug occurs, but in some cases its not possible to copy a dashboard to a different user.

For example we had a case where an Admin user was not able to copy a dashboard to a specific View user. They were able to copy to some View users and other Admin users, but several View users were not showing on the list when trying to copy.
Other Admin users were also not able to copy to that specific View users until that View user was made an Admin user.

Thomas mentioned that this might be something that only happens under certain circumstances depending on what users exist:
image

@peterhashair commented on February 3rd 2022 Contributor

Just trying to reproduce this one, the only case I found. When your site Selector is Site 2. And Permission as listed below, this will appear. @Starker3 @tsteur is that sound about the right reproduction?

Site 1:

  • Admin:
    User A
  • No Access:
    User B

Site 2

  • Admin:
    User B
    • View:
      User A
@Starker3 commented on February 9th 2022 Contributor

@peterhashair That might be how to reproduce it, if you want I can test it and see if I get the same results with such a setup?

@peterhashair commented on February 9th 2022 Contributor

@Starker3 that would be great.

@justinvelluppillai commented on April 11th 2022 Member

Hey @Starker3 did you get a chance to have a look here?

@justinvelluppillai commented on April 12th 2022 Member

Also @peterhashair is this fixed in #18796 ?

@Starker3 commented on April 12th 2022 Contributor

@justinvelluppillai @peterhashair The setup that Peter gave for reproduction doesn't work for me to reproduce this.
I had the users configured as follows:
Site 1:
Admin: User A
No Access: User B

Site 2
Admin: User B
View: User A

For Site 2 both User A and User B were able to see each other in the list when copying dashboards. The Super Users were not visible in that list, but I'm not sure if that is intentional or not?

@sgiehl commented on April 29th 2022 Member

@Starker3 Do you remember if the users that weren't shown might have had write access?
Looking at the code it seems we check if a user has admin or view access. But users with write access might be ignored.

@sgiehl commented on May 24th 2022 Member

@Starker3 Are you sure the user had view access? I was able to reproduce it with a user having write permission, which then wasn't visible for an admin. The PR would fix this.

@Starker3 commented on May 24th 2022 Contributor

@sgiehl I don't remember the specifics for the permissions level of the users when I encountered this error.
I can test it again though and see if I can reproduce it. I'll get back to you once I've tried that.

@sgiehl commented on May 25th 2022 Member

@Starker3 if you are able to reproduce that with vier permission, please reopen the issue. For write permission this should be fixed with 4.11. then.

This Issue was closed on May 25th 2022
Powered by GitHub Issue Mirror