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

Some admins can't view their own analytics #154

Closed
GUI opened this issue Nov 18, 2014 · 1 comment
Closed

Some admins can't view their own analytics #154

GUI opened this issue Nov 18, 2014 · 1 comment

Comments

@GUI
Copy link
Member

GUI commented Nov 18, 2014

With the new admin permissions model, admins should only see the analytics for the APIs they own. However, for at least one new group, they aren't able to view any analytics. The analytics pages are accessible and they load, but all the graphs report 0s for everything.

I'm pretty sure this isn't affecting all the admin groups, so it might be specific to admin accounts that belong to multiple different groups or something else more specific. Investigate the new Communicart admin group where this was seen.

@GUI
Copy link
Member Author

GUI commented Dec 9, 2014

This should be fixed now.

The culprit turned out to be related to case-sensitivy in URL path prefixes. So this was only occurring where we had setup admin permissions with a URL scope containing uppercase characters. This isn't particularly common, and didn't affect any production APIs, but for whatever reason I've typically been setting new development and staging paths for agencies with uppercase characters (for example, /DEV/new-api and /STAGING/new-api). The way the analytics database gets indexed, it lowercases everything, so our permission scoping queries just needed to be updated to lowercase the input.

Fixed by: NREL/api-umbrella-web@99988bc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant