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

Fixes #37941 - Handle AK creation params sent by AngularJS #11191

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

jeremylenz
Copy link
Member

What are the changes introduced in this pull request?

During activation key create, the controller assigns content view environments like so:

activation_key.content_view_environments = @content_view_environments if update_cves?

Due to recent changes, update_cves? was always returning false when creating an AK from the AngularJS web UI. This is because (for some reason) the page sends environment and content_view_id params, a combination that was not previously accounted for. This PR updates update_cves? to handle that.

Considerations taken when implementing this change?

We sure have a lot of weirdness from AngularJS that we compensate for in the controllers. When the page is removed (someday) I hope we can simplify our code accordingly.

What are the testing steps for this pull request?

Create an activation key in the web UI
Select a lifecycle env and content view
Ensure that the AK gets created with the LCE/CV

@sjha4 sjha4 self-assigned this Oct 31, 2024
@jeremylenz
Copy link
Member Author

updated with your suggestion @sjha4

@jeremylenz jeremylenz force-pushed the 37941-angular-ak-create branch 2 times, most recently from e8ff943 to a687470 Compare October 31, 2024 14:34
@lfu
Copy link
Member

lfu commented Oct 31, 2024

It looks good to me 👍🏻
ak

Copy link
Member

@sjha4 sjha4 left a comment

Choose a reason for hiding this comment

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

Ack..Working well.. 🎉

@jeremylenz jeremylenz merged commit 82d7a2c into Katello:master Oct 31, 2024
27 checks passed
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