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

Unify the HTML5 canvas-based remote consoles under a single endpoint #18927

Merged
merged 3 commits into from
Jul 17, 2019

Conversation

skateman
Copy link
Member

@skateman skateman commented Jul 1, 2019

We had RBAC features for each remote console type separately, which is pointless as this separation is no longer behavioral. The VMRC console is no longer web-based while all the others are, it also offers way more functionalities than the others. Therefore, I'm proposing to create an RBAC feature for all the console types based on HTML5 <canvas>. They all offer the same functionality and the user doesn't really has to know which is actually running under the hood, the backend is always capable to select the best fitting one.

The buttons for requesting remote consoles should follow this in the UI, i.e. one button for VMRC and another onr for HTML5-based consoles. Thanks to this it is possible to drop the global setting of a console type for VMs running on VMware providers. The console type for HTML5 will be determined by the provider upon request which will allow us for a better console support both in the ops and the service UI.

I also cleaned up the supports mixin usage in the area, now there's only a single supports_html5_console? call instead of the separate VNC, SPICE and WebMKS ones. The conditions became much simpler and more provider agnostic.

Depends on: ManageIQ/manageiq-providers-vmware#409

https://bugzilla.redhat.com/show_bug.cgi?id=1532720

app/models/vm/operations.rb Outdated Show resolved Hide resolved
@skateman skateman force-pushed the html5-console branch 2 times, most recently from 7a226e0 to cebc415 Compare July 1, 2019 19:44
app/models/vm/operations.rb Outdated Show resolved Hide resolved
@skateman
Copy link
Member Author

skateman commented Jul 1, 2019

@miq-bot add_label providers/console, enhancement, hammer/no, changelog/yes

@skateman skateman force-pushed the html5-console branch 3 times, most recently from f6a2c63 to 9c098ea Compare July 2, 2019 06:32
@skateman skateman changed the title [WIP] Unify the HTML5 canvas-based remote consoles under a single endpoint Unify the HTML5 canvas-based remote consoles under a single endpoint Jul 2, 2019
@skateman skateman changed the title Unify the HTML5 canvas-based remote consoles under a single endpoint [WIP] Unify the HTML5 canvas-based remote consoles under a single endpoint Jul 2, 2019
@skateman skateman changed the title [WIP] Unify the HTML5 canvas-based remote consoles under a single endpoint Unify the HTML5 canvas-based remote consoles under a single endpoint Jul 2, 2019
@miq-bot
Copy link
Member

miq-bot commented Jul 5, 2019

Checked commits skateman/manageiq@3c01363~...304063e with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
5 files checked, 0 offenses detected
Everything looks fine. ⭐

Copy link
Contributor

@lpichler lpichler left a comment

Choose a reason for hiding this comment

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

I am good with product features changes 👍 (as these changes are reflected in seed processes)
(not sure about changes related to support mixing)

@himdel
Copy link
Contributor

himdel commented Jul 17, 2019

Confirming I've seen the consoles open with these changes, both in Ops UI and in SUI, connected. 👍
(together with the rest of the PRs)

Copy link
Member

@kbrock kbrock left a comment

Choose a reason for hiding this comment

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

This looks great.

Just the 1 concern.

(I tend to worry about us changing privileges and user's having the old privileges but not the new ones)

db/fixtures/miq_product_features.yml Show resolved Hide resolved
@kbrock kbrock merged commit 55207cf into ManageIQ:master Jul 17, 2019
@kbrock kbrock added this to the Sprint 116 Ending Jul 22, 2019 milestone Jul 17, 2019
@kbrock kbrock self-assigned this Jul 17, 2019
@skateman skateman deleted the html5-console branch July 17, 2019 13:08
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.

7 participants