Skip to content

ui: add custom form for update template#5434

Merged
sureshanaparti merged 7 commits into
apache:4.16from
shapeblue:add-ui-updatetemplateform
Jan 25, 2022
Merged

ui: add custom form for update template#5434
sureshanaparti merged 7 commits into
apache:4.16from
shapeblue:add-ui-updatetemplateform

Conversation

@shwstppr
Copy link
Copy Markdown
Contributor

@shwstppr shwstppr commented Sep 10, 2021

Description

Adds a custom UI form for updating a template with more options such as details.

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

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

Screenshot from 2021-09-14 18-03-29

How Has This Been Tested?

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@yadvr yadvr changed the base branch from main to 4.16 November 15, 2021 10:09
@yadvr yadvr added this to the 4.16.1.0 milestone Nov 25, 2021
@sureshanaparti
Copy link
Copy Markdown
Contributor

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

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

@shwstppr shwstppr marked this pull request as ready for review January 17, 2022 06:09
@blueorangutan
Copy link
Copy Markdown

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5434 (SL-JID-1024)

Comment thread ui/src/views/image/UpdateTemplate.vue
@sureshanaparti
Copy link
Copy Markdown
Contributor

Hi @shwstppr can you address the outstanding comments please. thanks.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@shwstppr 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: http://qa.cloudstack.cloud:8080/client/pr/5434 (SL-JID-1044)

Copy link
Copy Markdown

@utchoang utchoang left a comment

Choose a reason for hiding this comment

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

LGTM!

@sureshanaparti
Copy link
Copy Markdown
Contributor

sureshanaparti commented Jan 21, 2022

@shwstppr Checked with KVM & VMware templates. I could see the keyboard type in the update template API call from UI, but it seems the API call is not including keyboard in details parameter (and so if any keyboard detail exists, it gets deleted). Please check.

Comment thread ui/src/views/image/UpdateTemplate.vue Outdated
const params = {
id: this.resource.id
}
const detailsField = ['rootDiskController', 'nicAdapter', 'keyboardType']
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
const detailsField = ['rootDiskController', 'nicAdapter', 'keyboardType']
const detailsField = ['rootDiskController', 'nicAdapter', 'keyboard']

May be, this is the issue with keyboard detail.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr
Copy link
Copy Markdown
Contributor Author

@sureshanaparti fixed the empty nicAdapter, keyboard behaviour. If no value is selected for these fields, detail will not be passed to the API and it will be removed for the template.
Added warning for changing template type to SYSTEM
Screenshot from 2022-01-24 12-26-48

@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@shwstppr 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: http://qa.cloudstack.cloud:8080/client/pr/5434 (SL-JID-1054)

@sureshanaparti
Copy link
Copy Markdown
Contributor

@sureshanaparti fixed the empty nicAdapter, keyboard behaviour. If no value is selected for these fields, detail will not be passed to the API and it will be removed for the template.
Added warning for changing template type to SYSTEM
Screenshot from 2022-01-24 12-26-48

ok @shwstppr , will check. thanks.

Copy link
Copy Markdown
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

LGTM

@Pearl1594
Copy link
Copy Markdown
Contributor

@shwstppr I believe we need to disable / remove the templatetype field from the form when a user with User role logs in -
image

@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@shwstppr 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: http://qa.cloudstack.cloud:8080/client/pr/5434 (SL-JID-1057)

@shwstppr
Copy link
Copy Markdown
Contributor Author

@Pearl1594 can you please try again

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr shwstppr force-pushed the add-ui-updatetemplateform branch from 640cf74 to 4ca5dc4 Compare January 25, 2022 03:56
@shwstppr
Copy link
Copy Markdown
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link
Copy Markdown

@shwstppr 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: http://qa.cloudstack.cloud:8080/client/pr/5434 (SL-JID-1061)

Copy link
Copy Markdown
Contributor

@Pearl1594 Pearl1594 left a comment

Choose a reason for hiding this comment

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

Tested as root admin and user - works as expected. LGTM

@sureshanaparti sureshanaparti merged commit d18ef1c into apache:4.16 Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants