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

Initial commit for ovirt_dashboard_test_miq_plugin #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vojtechszocs
Copy link

No description provided.

Signed-off-by: Vojtech Szocs <vszocs@redhat.com>
@vojtechszocs
Copy link
Author

vojtechszocs commented Jul 28, 2017

This is a simple PoC to show oVirt dashboard rendered inside ManageIQ Ops UI through a custom menu item.

The first step was to take oVirt dashboard project and adapting it for use outside oVirt UI plugin infra:

  • cd /path/to/ovirt-engine-dashboard
  • git apply adapt-ovirt-dashboard.patch
  • yarn run build

As a result, dist/dashboard-resources/main-tab.html can be opened as a static resource, with baked-in test data (to avoid oVirt Engine request) and relevant oVirt UI plugin API calls mocked.

The next step was to modify MIQ plugin example project by associating the /plug menu item with ovirt_dashboard_test layout that emulates oVirt dashboard's main-tab.html page.

All oVirt dashboard related assets are placed under app/assets/ovirt_dashboard and added to Rails asset path in lib/miq_plugin_example/engine.rb.

Signed-off-by: Vojtech Szocs <vszocs@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant