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

Rename TagMapping resource_type for Amazon Vms and Images #525

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Oct 22, 2020

The Amazon provider was the first cloud provider to participate in the (originally) ContainerLabelTagMapping class. It has since been expanded to include many providers including Openstack, Azure, and VMware vSphere.

This means that the original labeled_resource_type of "Vm" and "Image" meaning Amazon VMs and Templates is quite confusing.

Follow-up to: ManageIQ/manageiq-providers-vmware#658 (comment)
Depends on: ManageIQ/manageiq-ui-classic#7438 ManageIQ/manageiq-providers-amazon#671

@agrare agrare added the wip label Oct 22, 2020
@agrare agrare changed the title [WIP] Rename TagMapping resource_type for Amazon Vms and Images Rename TagMapping resource_type for Amazon Vms and Images Nov 4, 2020
@miq-bot miq-bot removed the wip label Nov 4, 2020
@agrare
Copy link
Member Author

agrare commented Nov 4, 2020

Now that kasparov is branched off I'm going to un-wip this

end

def up
ProviderTagMapping.where(:labeled_resource_type => "Vm").update_all(:labeled_resource_type => "VmAmazon")
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a say_with_time on all of these?

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@Fryguy
Copy link
Member

Fryguy commented Nov 6, 2020

Now that kasparov is branched off I'm going to un-wip this

Is this master only?

The Amazon provider was the first cloud provider to participate in the
(originally) ContainerLabelTagMapping class.  It has since been expanded
to include many providers including Openstack, Azure, and VMware
vSphere.

This means that the original labeled_resource_type of "Vm" and "Image"
meaning Amazon VMs and Templates is quite confusing.
@agrare agrare force-pushed the update_tag_mapper_labeled_resource_type branch from b96f82c to e786e94 Compare November 6, 2020 16:50
@miq-bot
Copy link
Member

miq-bot commented Nov 6, 2020

Checked commit agrare@e786e94 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint
2 files checked, 6 offenses detected

spec/migrations/20201022201901_update_amazon_tag_mapper_resource_type_spec.rb

@agrare
Copy link
Member Author

agrare commented Nov 6, 2020

@Fryguy correct we don't need this on kasparov

@Fryguy
Copy link
Member

Fryguy commented Nov 6, 2020

LGTM...just needs the dependent PR to be ready.

@Fryguy Fryguy merged commit 3e088c6 into ManageIQ:master Dec 7, 2020
@agrare agrare deleted the update_tag_mapper_labeled_resource_type branch December 7, 2020 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants