Skip to content

Conversation

@jeremylenz
Copy link
Contributor

Problem Statement

Since Simple Content Access (SCA) is now the default and only mode for all organizations, subscription attachment to activation keys and hosts is no longer supported in Satellite. The CLI methods were removed in SatelliteQE/robottelo#19931 and the API endpoints are being removed from Satellite.

Solution

This PR removes the subscription attachment methods from nailgun entities:

ActivationKey:

  • add_subscriptions()
  • remove_subscriptions()
  • subscriptions()

HostSubscription:

  • path() override for add_subscriptions and remove_subscriptions
  • subscriptions()
  • add_subscriptions()
  • remove_subscriptions()

Related PRs

Files changed: 1 file, 131 deletions(-)

…scription

Since Simple Content Access (SCA) is now the default and only mode for all
organizations, subscription attachment to activation keys and hosts is no
longer supported. This removes the following methods:

ActivationKey:
- add_subscriptions()
- remove_subscriptions()
- subscriptions()

HostSubscription:
- path() override for add_subscriptions and remove_subscriptions
- subscriptions()
- add_subscriptions()
- remove_subscriptions()

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

… Host

This commit removes the remaining subscription attachment path references:
- ActivationKey.path(): Removed add_subscriptions, remove_subscriptions, and subscriptions from path definitions
- Host.path(): Removed bulk/add_subscriptions and bulk/remove_subscriptions from path definitions
- Host: Removed bulk_add_subscriptions() and bulk_remove_subscriptions() methods
The HostSubscription entity was used to manage the relationship between hosts
and subscriptions. Since subscription attachment is no longer supported in SCA
mode, this entire entity class is obsolete and has been removed.

Changes:
- Removed HostSubscription class from entities.py
- Removed HostSubscription from entity instantiation tests
- Removed HostSubscription from required params tests
- Removed test_hostsubscription() test method
- Removed ActivationKey subscription method tests (add_subscriptions, remove_subscriptions, subscriptions)
- Removed HostSubscription method tests (add_subscriptions, remove_subscriptions)
@jeremylenz jeremylenz force-pushed the remove-subscription-attachment-methods branch from 7df6846 to 4591c79 Compare November 10, 2025 17:23
Remove test cases for add_subscriptions, remove_subscriptions, and
subscriptions paths from test_id_and_which since these methods
were removed from ActivationKey.
@LadislavVasina1
Copy link
Contributor

pre-commit.ci autofix

@jameerpathan111 jameerpathan111 merged commit 343a994 into SatelliteQE:master Nov 11, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No-CherryPick PR doesnt need CherryPick to previous branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants