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 an importing service dialogs #17241

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

branic
Copy link
Contributor

@branic branic commented Apr 2, 2018

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

- Service Dialogs

This PR uses the framework that was implemented for PRs #14126, #15256, #16717, and #16983 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.

Service Dialog export/import has been implemented using the same functionality that is used by the UI for performing the exports and imports. This PR also deprecates use of the dialogs rake task.

Links [Optional]

Steps for Testing/QA [Optional]

Exporting

  1. Create a directory for the exports
mkdir /tmp/service_dialogs
  1. Export service dialogs
vmdb
bin/rake evm:export:service_dialogs -- --directory /tmp/service_dialogs

Importing

  1. Import all service dialog yaml files in a directory
# vmdb
# bin/rake evm:import:service_dialogs -- --source /tmp/service_dialogs
  1. or Import specific service_dialog yaml file
# vmdb
# bin/rake evm:import:service_dialogs -- --source /tmp/service_dialogs/Simple_Dialog.yaml

@miq-bot
Copy link
Member

miq-bot commented Apr 17, 2018

This pull request is not mergeable. Please rebase and repush.

@branic branic force-pushed the service_dialogs_export_import branch from f4db959 to 6826237 Compare April 18, 2018 01:26
@miq-bot
Copy link
Member

miq-bot commented Apr 18, 2018

Checked commit branic@6826237 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
6 files checked, 0 offenses detected
Everything looks fine. 👍

Copy link
Member

@eclarizio eclarizio left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@gmcculloug gmcculloug merged commit 509b5ad into ManageIQ:master Apr 27, 2018
@gmcculloug gmcculloug added this to the Sprint 85 Ending May 7, 2018 milestone Apr 27, 2018
@branic branic deleted the service_dialogs_export_import branch April 27, 2018 19:27
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