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

Skip listing rule groups in CreateRuleGroup api if max rule groups limit is not set #5653

Merged

Conversation

emanlodovice
Copy link
Contributor

What this PR does:
With this PR the ListRuleGroupsForUserAndNamespace function should not be called in the CreateRuleGroup endpoint if the MaxRuleGroups limit for the tenant is not set. The existing tests for the validation should still pass after this change.

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

Checklist

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

…mit is not set

Signed-off-by: Emmanuel Lodovice <lodovice@amazon.com>
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thanks

@yeya24 yeya24 merged commit 09ee53a into cortexproject:master Nov 14, 2023
14 checks passed
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.

Improve CreateRuleGroup for tenant with no RulerMaxRuleGroupsPerTenant limit
2 participants