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

[1.29] feat: deprecate attach/auto-attach #3415

Conversation

DuckBoss
Copy link
Contributor

@DuckBoss DuckBoss commented Jun 7, 2024

This update aims to add deprecation notices to the attach/auto-attach commands.

Changes Made

  • Added deprecation notices to man page.
  • Added deprecation notice to attach and auto-attach module descriptions.
  • Added deprecation notice to --auto-attach and --autosubscribe register options help text.
  • Moved the attach module from the 'Primary Modules' section in the sub-man help text to 'Other Modules'.

Resolves: CCT-401

@DuckBoss DuckBoss assigned DuckBoss and unassigned DuckBoss Jun 7, 2024
@DuckBoss DuckBoss force-pushed the jajerome/deprecate-auto-attach branch 3 times, most recently from b19f8dc to 38c92bc Compare June 7, 2024 14:13
Updated man-page to include deprecation notices
to usage instructions of 'attach' and 'auto-attach'
commands.

Signed-off-by: Jason Jerome <[email protected]>
@DuckBoss DuckBoss force-pushed the jajerome/deprecate-auto-attach branch from 38c92bc to 5d880ca Compare June 7, 2024 14:16
Copy link
Contributor

@m-horky m-horky left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jirihnidek jirihnidek left a comment

Choose a reason for hiding this comment

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

Thanks for the draft. I have few comments and requests.


def _command_name(self):
return "attach"

def _primary(self):
return True
return False
Copy link
Contributor

Choose a reason for hiding this comment

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

Good point.

src/subscription_manager/cli_command/attach.py Outdated Show resolved Hide resolved
src/subscription_manager/cli_command/autoheal.py Outdated Show resolved Hide resolved
src/subscription_manager/cli_command/register.py Outdated Show resolved Hide resolved
src/subscription_manager/cli_command/register.py Outdated Show resolved Hide resolved
DuckBoss added 2 commits June 10, 2024 09:52
This patch adds a deprecation notice
to the attach/auto-attach command descriptions.
This patch also moves the attach command to the
'Other Modules' section in the sub-man help text
from the 'Primary Modules' section.

The attach command already displays an error
message when attempting to attach subscriptions
with an SCA registered system, so no changes
are required to implement this.

Signed-off-by: Jason Jerome <[email protected]>
This patch updates the '--auto-attach' and '--autosubscribe'
options help text with a deprecation notice.

Signed-off-by: Jason Jerome <[email protected]>
@DuckBoss DuckBoss force-pushed the jajerome/deprecate-auto-attach branch from 5d880ca to f6e9a2c Compare June 10, 2024 13:54
@DuckBoss DuckBoss marked this pull request as ready for review June 10, 2024 13:57
@DuckBoss DuckBoss requested a review from jirihnidek June 10, 2024 13:57
Copy link
Contributor

@jirihnidek jirihnidek left a comment

Choose a reason for hiding this comment

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

Thanks for update. LGTM

@jirihnidek jirihnidek merged commit e4bfa2e into candlepin:subscription-manager-1.29 Jun 10, 2024
4 of 5 checks passed
@DuckBoss DuckBoss deleted the jajerome/deprecate-auto-attach branch June 10, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants