-
Notifications
You must be signed in to change notification settings - Fork 290
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 #37881 - Update global reg form for multi-env AKs and clean up loose ends #11169
base: master
Are you sure you want to change the base?
Conversation
@@ -7,7 +7,7 @@ def plugin_data | |||
aks = ActivationKey.authorized(:view_activation_keys) | |||
.where(organization_id: registration_params[:organization_id]) | |||
.order(:name) | |||
.map { |ak| { name: ak.name, lce: ak.environment&.name } } | |||
.map { |ak| { name: ak.name, cves: ak.content_view_environments.map(&:label).join(', ') } } |
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.
Is the space after comma necessary ? does it work ?
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.
If you were copy/pasting to hammer with the spaces you'd need quotes. But this is just for displaying in the web UI, so I thought the spaces just looked nicer.
@@ -26,8 +26,8 @@ child :content_view_environments => :content_view_environments do | |||
lifecycle_environment_library: cve.lifecycle_environment&.library? | |||
} | |||
end | |||
node :candlepin_name do |cve| |
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.
I 'd be nervous to do this for an api response. Can we may be have both ?
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.
The code that introduced this API response node was just merged today IIRC, so I don't think anyone relies on it yet. Thoughts?
Also updated the setting description since multiCV works with both hosts and AKs now. |
4b37ae0
to
7c8b96a
Compare
rebased |
What are the changes introduced in this pull request?
candlepin_name
andcandlepin_names
methods and method arguments tolabels
throughout the Ruby codebase.Considerations taken when implementing this change?
This resolves the outstanding issues mentioned in #11161 (comment)
It also cleans up the loose end with the setting description, and eliminates a TODO comment.
What are the testing steps for this pull request?
This should affect these places in the UI - make sure everything works ok:
also, the method name changes affect multi-env hosts and AKs, so test some updates and make sure everything still works.