Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Role calculation incorrect #17

Closed
thechadd opened this issue Nov 22, 2019 · 5 comments
Closed

Site Role calculation incorrect #17

thechadd opened this issue Nov 22, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@thechadd
Copy link

Howdy! Thanks so much for putting this on gitlab! On my version of the TS Users, I had to modify the Site Role calc to accurately identify the Viewer role:

IF [Admin Level_orig] = 10
    THEN 'Server Administrator'
ELSEIF [Site Role_orig] = 'Author'
    THEN 'Creator'
ELSEIF [Site Role_orig] = 'Publisher'
    THEN 'Explorer (can publish)'
ELSEIF [Site Role_orig] = 'Interactor'
    THEN 'Explorer'
ELSEIF [Site Role_orig] = 'BasicUser'
    THEN 'Viewer'
ELSEIF [Site Role_orig] = 'SiteAdministratorAuthor'
    THEN 'Site Administrator Creator'
ELSEIF [Site Role_orig] = 'SiteAdministrator'
    THEN 'Site Administrator Explorer'
ELSE [Site Role_orig]
END

There is no [Site Role_orig] of Viewer.
Here is the original

IF [Admin Level_orig] = 10
    THEN 'Server Administrator'
ELSEIF [Site Role_orig] = 'Author'
    THEN 'Creator'
ELSEIF [Site Role_orig] = 'Publisher'
    THEN 'Explorer (can publish)'
ELSEIF [Site Role_orig] = 'Interactor'
    THEN 'Explorer'
ELSEIF [Site Role_orig] = 'Viewer'
    THEN 'Viewer'
ELSEIF [Site Role_orig] = 'SiteAdministratorAuthor'
    THEN 'Site Administrator Creator'
ELSEIF [Site Role_orig] = 'SiteAdministrator'
    THEN 'Site Administrator Explorer'
ELSE [Site Role_orig]
END

I'd submit the fix, myself, but I am not good at git 😆

@mcoles
Copy link
Contributor

mcoles commented Nov 22, 2019

Good timing, I'm updating them all for 2019.1 as we speak....thanks for submitting!

@mcoles mcoles added the bug Something isn't working label Nov 22, 2019
@thechadd
Copy link
Author

@mcoles. Hey if you don't mind, can I attempt a branch and pull request with this change? This would be my first contribution to a gitlab project. Hopefully I could contribute more to this, too. No biggie either way. Cheers!

@mcoles
Copy link
Contributor

mcoles commented Nov 26, 2019

@thechadd , absolutely. I just created a Development branch for you to submit your pull request to, since if you submit one based on Master, I have to merge it directly to it, or reject entirely, neither of which are good options. I have a feeling that Git is going to find a bunch of merge conflicts with different fixes people submit, though, because Tableau loves to make all kinds of edits in the XML for simple changes. This one should be okay, though, since you're just editing a calc.

@thechadd
Copy link
Author

Alright, I give up. Spent all afternoon following tutorials, forking, cloning, and trying to stage and unstage line-by-line changes, and my software just isn't cooperating with my noobness. I'll leave it to you experts until I can spend more time to figure this out. Thanks again

@mcoles
Copy link
Contributor

mcoles commented Nov 26, 2019

No problem @thechadd , I have had to learn as I go too, and am still doing so. :)

mcoles added a commit that referenced this issue Dec 20, 2019
Hid new fields #9
Forced values for all LUID fields to lowercase #8
Added additional Site fields for consistency #10
Updated User Filter for consistency with other data sources #16
Fixed Site Role calculation for Viewer role #17
@mcoles mcoles closed this as completed Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants