Skip to content

UI: Add button to copy VM console URL to clipboard#7351

Merged
DaanHoogland merged 1 commit intoapache:mainfrom
scclouds:button-to-copy-consoleurl
Mar 31, 2023
Merged

UI: Add button to copy VM console URL to clipboard#7351
DaanHoogland merged 1 commit intoapache:mainfrom
scclouds:button-to-copy-consoleurl

Conversation

@ezntt
Copy link
Copy Markdown
Contributor

@ezntt ezntt commented Mar 17, 2023

Description

This PR adds a new button that allows the user to copy the VM console URL to the clipboard. VM consoles have a security mechanism that allows for a one-time use per URL (see #6577). Therefore, if the same URL is accessed again, an error message is displayed. When access to the console is requested via the UI button, a new tab is opened which automatically connects to the VM console. However, for the purpose of obtaining only the URL for later use or sharing, it is more convenient to copy the URL rather than opening it directly in a new tab. The new button appears alongside the existing button that opens the console in a new tab

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Screenshots (if appropriate):

image

How Has This Been Tested?

I conducted manual testing in a local lab environment. During the testing process, I clicked the new added button and then accessed the copied URL. This allowed me to access the console in the same way as the existing "View Console" button.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2023

Codecov Report

Merging #7351 (46eaa20) into main (2aa3f98) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #7351   +/-   ##
=========================================
  Coverage     12.68%   12.68%           
  Complexity     8656     8656           
=========================================
  Files          2718     2718           
  Lines        256169   256169           
  Branches      39932    39932           
=========================================
  Hits          32504    32504           
  Misses       219531   219531           
  Partials       4134     4134           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@BryanMLima
Copy link
Copy Markdown
Contributor

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@BryanMLima a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/7351 (QA-JID-62)

Copy link
Copy Markdown
Contributor

@JoaoJandre JoaoJandre left a comment

Choose a reason for hiding this comment

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

CLTM

@BryanMLima
Copy link
Copy Markdown
Contributor

LGTM

@DaanHoogland
Copy link
Copy Markdown
Contributor

LGTM

Difd you test @BryanMLima ?

@BryanMLima
Copy link
Copy Markdown
Contributor

@DaanHoogland Yes, I tested in a local lab and in the QA environment. In both scenarios the URL was successfully copied.

@DaanHoogland DaanHoogland merged commit 57ff125 into apache:main Mar 31, 2023
@yadvr yadvr added this to the 4.19.0.0 milestone Apr 2, 2023
kishankavala pushed a commit to shapeblue/cloudstack that referenced this pull request Apr 13, 2023
Co-authored-by: Eduardo Zanetta <eduardo.zanetta@scclouds.com.br>
soreana pushed a commit to leaseweb/cloudstack that referenced this pull request May 19, 2023
Co-authored-by: Eduardo Zanetta <eduardo.zanetta@scclouds.com.br>
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.

6 participants