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

Mark the collection role module as deprecated #15455

Draft
wants to merge 3 commits into
base: devel
Choose a base branch
from

Conversation

AlanCoding
Copy link
Member

SUMMARY

Work to add new, replacement, modules has already been done in 3bb559d but that did not make it fully clear that the old module will be removed via the standard way of doing this.

Putting up this PR, hoping that the collection sanity test checks it properly.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

@github-actions github-actions bot added the component:awx_collection issues related to the collection for controlling AWX label Aug 21, 2024
@AlanCoding
Copy link
Member Author

Nice feedback from the sanity check!

ERROR: Found 2 validate-modules issue(s) which need to be resolved:
ERROR: plugins/modules/role.py:0:0: deprecation-mismatch: "meta/runtime.yml" and DOCUMENTATION.deprecation do not agree.
ERROR: plugins/modules/role.py:0:0: invalid-documentation: DOCUMENTATION.deprecated: required key not provided @ data['deprecated']. Got None

Copy link

sonarcloud bot commented Aug 21, 2024

deprecated:
remove_by_date: 2025-02-01
why: Endpoints corresponding to module will be removed in the API
alternative: Use the role_user_assignment and role_team_assignment modules instead.
Copy link
Member Author

Choose a reason for hiding this comment

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

ERROR: plugins/modules/role.py:0:0: deprecation-mismatch: "meta/runtime.yml" and DOCUMENTATION.deprecation do not agree on removal date: '2025-02-01' vs. None
ERROR: plugins/modules/role.py:0:0: deprecation-wrong-collection: "DOCUMENTATION.deprecation.removed_from_collection must be the current collection name: None vs. 'awx.awx'
ERROR: plugins/modules/role.py:0:0: invalid-documentation: DOCUMENTATION.deprecated.remove_by_date: extra keys not allowed @ data['deprecated']['remove_by_date']. Got datetime.date(2025, 2, 1)
ERROR: plugins/modules/role.py:0:0: invalid-documentation: DOCUMENTATION.deprecated.removed_from_collection: required key not provided @ data['deprecated']['removed_from_collection']. Got None
ERROR: plugins/modules/role.py:0:0: invalid-documentation: DOCUMENTATION.deprecated.removed_in: required key not provided @ data['deprecated']['removed_in']. Got None

still not sure how/if we can do this.

@AlanCoding AlanCoding marked this pull request as draft August 21, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:awx_collection issues related to the collection for controlling AWX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant