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

Add support for exporting and importing widgets #18327

Merged
merged 1 commit into from
Jan 30, 2019
Merged

Add support for exporting and importing widgets #18327

merged 1 commit into from
Jan 30, 2019

Conversation

branic
Copy link
Contributor

@branic branic commented Jan 3, 2019

These rake scripts and classes provide functionality for exporting/importing of the following ManageIQ object types:

  • Widgets

This PR uses the framework that was implemented for PRs #14126, #15256, #16717, and others to export/import other ManageIQ object types.

These scripts are based on the CFME RH Consulting Scripts and are used by Red Hat consultants to enable storing customizations in Git and maintaining customizations between environments (e.g. dev/qa/prod) for an SDLC lifecycle.

Links [Optional]

Steps for Testing/QA [Optional]

Exporting

  1. Create a directory for the exports
mkdir /tmp/widgets
  1. Export user defined widgets
vmdb
bin/rake evm:export:widgets -- --directory /tmp/widgets

Importing

  1. Import all widget yaml files in a directory
# vmdb
# bin/rake evm:import:widgets -- --source /tmp/widgets
  1. or Import specific widget yaml file
# vmdb
# bin/rake evm:import:widget -- --source /tmp/widgets/Test_Widget.yaml

@branic
Copy link
Contributor Author

branic commented Jan 7, 2019

/cc @gmcculloug @gtanzillo

@miq-bot
Copy link
Member

miq-bot commented Jan 7, 2019

Checked commit https://github.com/branic/manageiq/commit/9478c4f00c084c4f3e158c93fe1f7f0d4d73c8e4 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
5 files checked, 0 offenses detected
Everything looks fine. 🍰

Copy link
Member

@gtanzillo gtanzillo left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks @branic

@gtanzillo gtanzillo added this to the Sprint 104 Ending Feb 4, 2019 milestone Jan 30, 2019
@gtanzillo gtanzillo merged commit 4b95808 into ManageIQ:master Jan 30, 2019
@branic branic deleted the widgets_export_import branch January 30, 2019 20: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