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

Implement entitlement overrides OM738 #1366

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Implement entitlement overrides OM738 #1366

merged 1 commit into from
Aug 15, 2024

Conversation

GAlexIHU
Copy link
Contributor

Overview

Users need a 0 downtime option to change a subject's entitlements. This is especially important for plan upgrade/downgrade scenarios.

Fixes #OM738

Notes for Reviewers

  • Tx Handling is still messy, I don't want to convolute that refactor with this feature

@GAlexIHU GAlexIHU added the release-note/feature Release note: Exciting New Features label Aug 14, 2024
Copy link
Contributor

@turip turip left a comment

Choose a reason for hiding this comment

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

👍

ctx = entutils.NewTxContext(ctx, tx)

// Delete previous entitlement
// FIXME: we publish an event during this even if we fail later
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be fine for now, but I agree that we should revamp trns handling, and provide hooks for publishing only if the whole transaction seems ok to commit (it's not 100% but better than the current situation)

@GAlexIHU GAlexIHU merged commit 1dc1bf3 into main Aug 15, 2024
18 checks passed
@GAlexIHU GAlexIHU deleted the feat/om738 branch August 15, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/feature Release note: Exciting New Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants