-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fixes #37865 - Add Multi environments to activation key info #958
Conversation
What do you think about adding another field like this?
This would provide an easy way to copy/paste the current CVEs somewhere so you could edit as needed. It would also need another rabl node added in Katello. Also it struck me as a bit weird that we don't provide each CVE's id anywhere. do you think we should add that as well? This way it could help with |
+1 to those ideas, when you say another rabl node would it go in https://github.com/Katello/katello/blob/bc39167a85e8aaa3ab4285bd459e672c7bcfc7a5/app/views/katello/api/v2/activation_keys/base.json.rabl or somewhere else? It sounds like this is related to that other card |
Yes that's the file where it would go. It would be a top-level node. I'm realizing we already have a node called |
Doesnt need to be in RABL why not just in the info command? |
c07a1f0
to
12b0343
Compare
@jeremylenz updated this pr and the Katello one, when you get time to test it |
When I do hammer activation-key list I still see
I think we should replace the lifecycle environment and content view columns with 'Content view environments' and use the new field you made. Should also add the 'Multi content view environment' field. |
dc8507c
to
f6210f7
Compare
@jeremylenz updated! Fixed the list command too. Added ---|-----------|----------------|----------------------------|-------------------------------
ID | NAME | HOST LIMIT | CONTENT VIEW ENVIRONMENTS | MULTI CONTENT VIEW ENVIRONMENT
---|-----------|----------------|----------------------------|-------------------------------
3 | multi-key | 0 of Unlimited | Library/RHEL-8,Dev/Animals | yes
2 | RHEL-9 | 1 of Unlimited | Library/RHEL-9 | no
1 | Rocky-8 | 1 of Unlimited | Library/Rocky-8 | no
---|-----------|----------------|----------------------------|------------------------------- Had to update the license because GPL-3.0 is deprecated and was causing Ruby 3.3 to not build. |
f6210f7
to
8160ac8
Compare
Also enabled a skipped test that has been fixed since katello 4.5
8160ac8
to
7ae2afe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
With PR with an ak that has multiple envs:
AK with single env: