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

Fix updateTemplatePermission when the UI is set to a language other than English #9766

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

lucas-a-martins
Copy link
Contributor

Description

When the UI is set to a language other than English, the update template permissions feature throws an exception. This PR fixes this behavior to allow updating template permissions when using the UI in any language.

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)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

Before changes

template-permission-before

After changes

template-permission-after

How Has This Been Tested?

Using a private template, I tested the Add, Remove, and Reset permission operations in a UI set to several non-English languages.

Copy link
Collaborator

@FelipeM525 FelipeM525 left a comment

Choose a reason for hiding this comment

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

LGTM! tested in a local environment

Before

image

After

image

Copy link
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

@DaanHoogland
Copy link
Contributor

@blueorangutan ui

@blueorangutan
Copy link

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

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.78%. Comparing base (c087de4) to head (b71d6c5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9766      +/-   ##
============================================
- Coverage     15.78%   15.78%   -0.01%     
- Complexity    12551    12552       +1     
============================================
  Files          5625     5625              
  Lines        491993   491993              
  Branches      59773    62600    +2827     
============================================
- Hits          77670    77668       -2     
  Misses       405864   405864              
- Partials       8459     8461       +2     
Flag Coverage Δ
uitests 4.03% <ø> (ø)
unittests 16.60% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@blueorangutan
Copy link

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

Copy link
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.

clgtm

@JoaoJandre JoaoJandre added this to the 4.20.0.0 milestone Oct 4, 2024
Copy link
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.

LGTM

@DaanHoogland
Copy link
Contributor

tried in qa; Dutch and Protugese, both work.

Copy link
Collaborator

@FelipeM525 FelipeM525 left a comment

Choose a reason for hiding this comment

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

LGTM! tested locally and in the simulator build!

@JoaoJandre JoaoJandre merged commit d6181d5 into apache:main Oct 4, 2024
26 checks passed
weizhouapache pushed a commit that referenced this pull request Oct 15, 2024
… than English (#9766)

* Fix updateTemplatePermission UI in non-english language

* Improve fix

---------

Co-authored-by: Lucas Martins <lucas.martins@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