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

Fix response with data omitempty #5953

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented May 15, 2024

What this PR does:

Omit empty data field in response to be consistent with Prometheus and Grafana.

Which issue(s) this PR fixes:
Fixes #

Checklist

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

Signed-off-by: Ben Ye <benye@amazon.com>
@yeya24 yeya24 changed the title Fix response to omitempty Fix response with data omitempty May 15, 2024
@alanprot
Copy link
Member

Nice catch! Thanks

@yeya24 yeya24 merged commit 23b4148 into cortexproject:master May 15, 2024
16 checks passed
@yeya24 yeya24 deleted the fix-response branch May 15, 2024 22:32
@yeya24 yeya24 mentioned this pull request May 15, 2024
3 tasks
yeya24 added a commit that referenced this pull request May 20, 2024
Signed-off-by: Ben Ye <benye@amazon.com>
@yeya24 yeya24 mentioned this pull request May 20, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants