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

UI: Fill username & domain fields in login, forgotPassword and resetPassword page from url #10291

Open
wants to merge 1 commit into
base: 4.20
Choose a base branch
from

Conversation

vishesh92
Copy link
Member

@vishesh92 vishesh92 commented Jan 29, 2025

Description

If the URL params contains username or domain, it will use the values for the username and domain field in Login, forgot password and reset password page. This feature would be useful if you want to open a page which has prefilled usename and/or domain. To test the forgot password and reset password page, you need to enable the user.password.reset.enabled global setting.

e.g. The below url will look like this when opened.

https://qa.cloudstack.cloud/simulator/pr/10291/#/user/login?username=admin&domain=ABC

image

Generated description

This pull request includes changes to the forms in the authentication views to support additional query parameters. The most important changes involve updating the ForgotPassword, Login, and ResetPassword components to include username and domain from the route query.

Enhancements to authentication forms:

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

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@apache apache deleted a comment from blueorangutan Jan 29, 2025
@vishesh92 vishesh92 force-pushed the ui-fill-fields-from-path branch from bd4db8c to 132ce29 Compare January 29, 2025 06:39
@apache apache deleted a comment from blueorangutan Jan 29, 2025
Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.15%. Comparing base (33a37da) to head (132ce29).
Report is 2 commits behind head on 4.20.

Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #10291      +/-   ##
============================================
- Coverage     16.15%   16.15%   -0.01%     
  Complexity    12987    12987              
============================================
  Files          5639     5639              
  Lines        494148   494153       +5     
  Branches      59916    59923       +7     
============================================
  Hits          79854    79854              
- Misses       405465   405470       +5     
  Partials       8829     8829              
Flag Coverage Δ
uitests 4.02% <ø> (-0.01%) ⬇️
unittests 17.00% <ø> (ø)

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.

@vishesh92
Copy link
Member Author

@blueorangutan ui

@blueorangutan
Copy link

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

@vishesh92 vishesh92 changed the title Fill fields in login, forgotPassword and resetPassword from url UI: Fill username & domain fields in login, forgotPassword and resetPassword page from url Jan 29, 2025
@blueorangutan
Copy link

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

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.

code looks good

@DaanHoogland
Copy link
Contributor

@vishesh92 can you please add some testing guidance in the description?

@vishesh92
Copy link
Member Author

@vishesh92 can you please add some testing guidance in the description?

@DaanHoogland updated the description.

@DaanHoogland
Copy link
Contributor

tested in qa

Copy link
Contributor

@NuxRo NuxRo left a comment

Choose a reason for hiding this comment

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

lgtm, great idea

@DaanHoogland DaanHoogland added this to the 4.20.1 milestone Jan 29, 2025
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.

4 participants