-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add EmbeddedTerraform UI #3
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This pr depends on UI PR: ManageIQ/manageiq-ui-classic#9117 and core PR: ManageIQ/manageiq#22943 |
Note, #9 has been merged, renaming ConfigurationScriptPayload to Template |
menu_section :embedded_terraform_workflow | ||
|
||
def self.model | ||
ManageIQ::Providers::EmbeddedTerraform::AutomationManager::ConfigurationScriptPayload |
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.
ManageIQ::Providers::EmbeddedTerraform::AutomationManager::ConfigurationScriptPayload | |
ManageIQ::Providers::EmbeddedTerraform::AutomationManager::Template |
...views/ManageIQ_Providers_EmbeddedTerraform_AutomationManager_ConfigurationScriptPayload.yaml
Outdated
Show resolved
Hide resolved
d617432
to
24786f6
Compare
Okay it was pretty involved to rename this but I think I got everything done and tested |
24786f6
to
566af32
Compare
I'm going to take this out of WIP, I've tested creating SCM credentials, creating a repository, and viewing imported templates on the UI and everything appears functional. |
when 'ansible_credential_tag' | ||
tag(self.class.model) | ||
when "ansible_repository_tag" # repositories from nested list | ||
tag(ManageIQ::Providers::EmbeddedTerraform::AutomationManager::ConfigurationScriptSource) |
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.
Do each of these cases automatically do assert_privileges checks from tag
, javascript_redirect
, etc.?
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 think they do... looking down below.
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.
not sure about tag but maybe
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.
should it say ansible_credential_tag
and ansible_resository_tag
?
end | ||
|
||
def tag_edit_form_field_changed | ||
assert_privileges('ansible_credential_tag') |
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.
similar to above, is it ansible or terraform?
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 think we don't want to depend something which requires a database migration in order to merge this, so for now ansible_credential_tag is fine (this is the same for embedded_workflows which also uses ansible_credential_tag and we can fix them together)
page << javascript_prologue | ||
page.replace("main_div", :template => "embedded_terraform_repository/show") | ||
end | ||
when "ansible_repository_tag" |
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.
same as above re: ansible instead of terraform
t, | ||
:items => [ | ||
button( | ||
:ansible_credential_tag, |
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.
Ditto from above
:onwhen => "1+", | ||
:items => [ | ||
button( | ||
:ansible_credential_tag, |
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.
Same
:items => | ||
[ | ||
button( | ||
:ansible_repository_tag, |
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.
more ansible product features
:items => | ||
[ | ||
button( | ||
:ansible_repository_tag, |
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.
last two ansible features
048e82c
to
a0ebda0
Compare
We started with embedded ansible but with the addition of embedded terraform, it makes sense to generalize these common product features. Related to ManageIQ/manageiq-providers-embedded_terraform#3
We started with embedded ansible but with the addition of embedded terraform, it makes sense to generalize these common product features. Related to ManageIQ/manageiq-providers-embedded_terraform#3
a0ebda0
to
8ede6a6
Compare
5eb891a
to
3126bea
Compare
3126bea
to
fff7ad5
Compare
fff7ad5
to
45033ef
Compare
@jrafanie I think this is ready to merge we just wont have ManageIQ/manageiq-ui-classic#9117 until we add this plugin to the core Gemfile |
yes, I tried it out yesterday and it was working so let's get this in. It's in the new provider anyway so you would need to have added the provider in the first place to encounter any problems this PR may introduce. |
@jeffibm feel free to review/comment on this after it's merged, we can always fix any problems you see. Thanks! |
We started with embedded ansible but with the addition of embedded terraform, it makes sense to generalize these common product features. Related to ManageIQ/manageiq-providers-embedded_terraform#3
Depends on:
Depend
TODO
db_to_controller
title_from_layout
WorkflowRepositoryForm
,WorkflowCredentialsForm
javascript formsMenu:
Credentials Show List:
Credentials Show:
Credentials Show -> Repositories Show List:
Repositories Show List:
Repositories Show:
Repositories Show -> Templates Show List:
Templates Show List:
Templates Show: