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

Fixed blocksGroupWithPartition unable to reuse functions from blocksGroup #6547

Merged

Conversation

alexqyle
Copy link
Contributor

@alexqyle alexqyle commented Jan 24, 2025

What this PR does:
blocksGroupWithPartition extends blocksGroup. However, when calling functions inside blocksGroup from a blocksGroupWithPartition instance, those attributes defined inside blocksGroup were not set properly when initialize blocksGroupWithPartition. This caused unexpected value returned from blocksGroup functions.

The fix is removing duplicate attributes from blocksGroupWithPartition that already defined inside blocksGroup. When initializing blocksGroupWithPartition instance, those attributes in blocksGroup should be explicitly provided.

Which issue(s) this PR fixes:

Checklist

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

Signed-off-by: Alex Le <[email protected]>
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jan 24, 2025
@danielblando danielblando merged commit 69f5fb4 into cortexproject:master Jan 24, 2025
17 checks passed
@alexqyle alexqyle deleted the fix-blocksGroupWithPartition branch January 24, 2025 23:14
CharlieTLe pushed a commit to CharlieTLe/cortex that referenced this pull request Jan 24, 2025
…roup (cortexproject#6547)

* Fixed blocksGroupWithPartition unable to reuse functions from blocksGroup

Signed-off-by: Alex Le <[email protected]>

* update tests

Signed-off-by: Alex Le <[email protected]>

---------

Signed-off-by: Alex Le <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants