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

feat: Update navigation method signatures #17407

Merged
merged 3 commits into from
Aug 10, 2023

Conversation

tltv
Copy link
Member

@tltv tltv commented Aug 9, 2023

This change makes UI#navigate, BeforeEvent#rerouteTo and BeforeEvent#forwardTo methods more consistent without changing the existing API:

  • adds new methods in BeforeEvent that accepts route parameters.
  • adds new methods in BeforeEvent that accepts query parameters.
  • improves forwardTo and rerouteTo to accept route parameters being part of the location String (same way as UI#navigate does it already).

Fixes: #14553

This change makes UI#navigate, BeforeEvent#rerouteTo and BeforeEvent#forwardTo methods more consistent without changing the existing API:
- adds new methods in BeforeEvent that accepts route parameters.
- adds new methods in BeforeEvent that accepts query parameters.
- improves forwardTo and rerouteTo to accept route parameters being part of the location String (same way as UI#navigate does it already).

Fixes: #14553
@sonatype-lift
Copy link

sonatype-lift bot commented Aug 9, 2023

Sonatype Lift is retiring

Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console.
We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

Test Results

1 001 files  ±0  1 001 suites  ±0   1h 0m 13s ⏱️ - 2m 10s
6 386 tests +4  6 345 ✔️ +4  41 💤 ±0  0 ±0 
6 634 runs   - 2  6 588 ✔️ ±0  46 💤  - 2  0 ±0 

Results for commit c0a57fc. ± Comparison against base commit c39c88a.

♻️ This comment has been updated with latest results.

@sonarcloud
Copy link

sonarcloud bot commented Aug 10, 2023

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
0.0% 0.0% Duplication

@mshabarov mshabarov merged commit a4bd305 into main Aug 10, 2023
18 checks passed
@mshabarov mshabarov deleted the sync-rerouteto-forwardto-navigate branch August 10, 2023 11:42
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.2.0.alpha7 and is also targeting the upcoming stable 24.2.0 version.

vaadin-bot pushed a commit that referenced this pull request Sep 22, 2023
* feat: Update navigation method signatures

This change makes UI#navigate, BeforeEvent#rerouteTo and BeforeEvent#forwardTo methods more consistent without changing the existing API:
- adds new methods in BeforeEvent that accepts route parameters.
- adds new methods in BeforeEvent that accepts query parameters.
- improves forwardTo and rerouteTo to accept route parameters being part of the location String (same way as UI#navigate does it already).

Fixes: #14553

* Fixed javadoc

* Added hasRedirectQueryParameters()
vaadin-bot pushed a commit that referenced this pull request Sep 22, 2023
* feat: Update navigation method signatures

This change makes UI#navigate, BeforeEvent#rerouteTo and BeforeEvent#forwardTo methods more consistent without changing the existing API:
- adds new methods in BeforeEvent that accepts route parameters.
- adds new methods in BeforeEvent that accepts query parameters.
- improves forwardTo and rerouteTo to accept route parameters being part of the location String (same way as UI#navigate does it already).

Fixes: #14553

* Fixed javadoc

* Added hasRedirectQueryParameters()
vaadin-bot added a commit that referenced this pull request Sep 22, 2023
* feat: Update navigation method signatures

This change makes UI#navigate, BeforeEvent#rerouteTo and BeforeEvent#forwardTo methods more consistent without changing the existing API:
- adds new methods in BeforeEvent that accepts route parameters.
- adds new methods in BeforeEvent that accepts query parameters.
- improves forwardTo and rerouteTo to accept route parameters being part of the location String (same way as UI#navigate does it already).

Fixes: #14553

* Fixed javadoc

* Added hasRedirectQueryParameters()

Co-authored-by: Tomi Virtanen <[email protected]>
mcollovati pushed a commit that referenced this pull request Sep 22, 2023
This change makes UI#navigate, BeforeEvent#rerouteTo and BeforeEvent#forwardTo methods more consistent without changing the existing API:
- adds new methods in BeforeEvent that accepts route parameters.
- adds new methods in BeforeEvent that accepts query parameters.
- improves forwardTo and rerouteTo to accept route parameters being part of the location String (same way as UI#navigate does it already).

Fixes: #14553
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.

Synchronize rerouteTo, forwardTo and navigate signatures
4 participants