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 #6373 - make lifecycle_environment_ids accessible #4339

Merged
merged 1 commit into from Jul 7, 2014
Merged

fixes #6373 - make lifecycle_environment_ids accessible #4339

merged 1 commit into from Jul 7, 2014

Conversation

stbenjam
Copy link
Contributor

Smart Proxies can now have lifecycle environments, but when adding a Smart
Proxy through the UI, it fails with a mass assignment error.

@jlsherrill
Copy link
Member

ah good find. this will fix creation but still allows someone to select lifecycle environments upon creation and simply establishes the AR relationship (Ignoring the associations in pulp). See here how we handle update by intercepting the update call: https://github.com/Katello/katello/blob/master/app/controllers/katello/concerns/smart_proxies_controller_extensions.rb

Ideally we would:

a) not show a lifecycle environment tab on create
or
b) incorporate the same level of intercepting on the create call.

My vote would be a) for its simplicity and also about the fact that eventually this tab will be feature dependent. If the 'pulp' feature isn't there, the tab will not be shown, so it can't really be on the create screen anyways.

Smart Proxies can now have lifecycle environments, but when adding a Smart
Proxy through the UI, it fails with a mass assignment error.
@stbenjam
Copy link
Contributor Author

stbenjam commented Jul 1, 2014

@jlsherrill Ah, I didn't understand how this was working originally but I think I do now. I disable the tab entirely on creation now.

Are there instructions around on how to get a Foreman smart proxy with content up and running so I can test that updating the lifecycle environment works?

@jlsherrill
Copy link
Member

@stbenjam Looks good to me! I'm pretty sure i answered that question for you, but i'll put it here for reference:

https://github.com/Katello/katello-installer#production-examples

First use capsule-certs-generate & and then run capsule-installer on the capsule to be

ACK, let me know if you want me to merge it.

@stbenjam
Copy link
Contributor Author

stbenjam commented Jul 4, 2014

@jlsherrill Yup, it's good! Merge away.

jlsherrill added a commit that referenced this pull request Jul 7, 2014
fixes #6373 - make lifecycle_environment_ids accessible
@jlsherrill jlsherrill merged commit 9d13d62 into Katello:master Jul 7, 2014
@stbenjam stbenjam deleted the 6373-proxy-environments branch September 18, 2014 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants