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

Return 404 on unknown tenant #321

Merged
merged 2 commits into from
Nov 4, 2020

Conversation

joe-elliott
Copy link
Member

@joe-elliott joe-elliott commented Nov 4, 2020

What this PR does:
People are seeing this in the beta, so I felt like we should just fix it. I don't see a reason to distinguish between asking for a tenant that does not exist and asking for a trace that does not exist so just returned nil if the tenant was not found.

Which issue(s) this PR fixes:
Fixes #94

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott joe-elliott changed the title If the tenant id is not found just return nil Return 404 on unknown tenant Nov 4, 2020
Copy link
Contributor

@annanay25 annanay25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@joe-elliott joe-elliott merged commit fd114a2 into grafana:master Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Receiving tenantID single-tenant not found
2 participants