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

HasLabel implementation v14 #14279

Closed
wants to merge 77 commits into from
Closed

Conversation

melihkurtaran
Copy link

Description

Feature: Backporting HasLabel-Interface to Vaadin 14 #14277

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

vaadin-bot and others added 30 commits November 22, 2021 15:44
Fix issue with URLDecoder handling of '+' character.

Fixes #12354

Co-authored-by: caalador <[email protected]>
…12478)

Fixes a bug where the stream of BeforeEnterObservers could contain duplicates, causing extraneous calls to BeforeEnterObserver::beforeEnter for non-root components.

Fixes #12356

Co-authored-by: Johannes Eriksson <[email protected]>
Update ASM to support Java 17

Co-authored-by: Matti Tahvonen <[email protected]>

Co-authored-by: caalador <[email protected]>
Co-authored-by: Matti Tahvonen <[email protected]>
Co-authored-by: Tarek Oraby <[email protected]>

Co-authored-by: caalador <[email protected]>
Co-authored-by: Tarek Oraby <[email protected]>
Checking the logs for errors will
wait for vaadin to be ready also.

Co-authored-by: caalador <[email protected]>
Update exception for failing to
remove node_modules folder.

Closes #12655

Co-authored-by: caalador <[email protected]>
Check if `node -p 'crypto.createHash("md4")'` works. If not,
pass the `--openssl-legacy-provider` flag. Workaround for:
webpack/webpack#14532
Fixes #12649
Since isAttached is trivially tail-recursive, use a loop instead of recursion.
Reduces memory consumption in tests that construct deep trees.

Co-authored-by: Johannes Eriksson <[email protected]>
Get the push suspend timout
parameter from the configuration
as atmosphere doesn't read it
from anywhere.

Fixes #12559

Co-authored-by: caalador <[email protected]>
Works around connection issue with webpack-dev-server 3.11.0 and Node 17+

Co-authored-by: Johannes Eriksson <[email protected]>
Use node version and url properties if defined.
Force home node also in plugin if set.

part of #12686
When copying the local frontend files
remove any read-only flags from the
copies.

fixes #12711

Co-authored-by: caalador <[email protected]>
If the version in vaadin or dependenices
is not a valid version, but a string like
next/latest compare string content to
determine if they equal.

Co-authored-by: caalador <[email protected]>
This fixes some random build issues where webpack exits with code 139

Co-authored-by: Artur <[email protected]>
The builder was executed twice, most
likely due to a merge conflict.

Co-authored-by: caalador <[email protected]>
…ing assertions (#12830)

Sometimes findElements(By.tagNvame("div")) seems to return results
before server roundtrips are completed, so list of elements is missing
elements. Performing a direct searching for child element by xpath
(findElement(By.xpath("div[N]")))) seem always to work.
To be noted that xpath position is 1 based

Fixes #10481, #10487, #10491
Do not throw silently for incompatible
import paths. Fix comment removal
for JS files to accept ' as string.

fixes #12765

Co-authored-by: caalador <[email protected]>
Do not set permissions nor follow symlinks when
deleting node_modules.

Fixes #12810

Co-authored-by: Johannes Eriksson <[email protected]>
No other converter logs a conversion error, which makes sense as you do not want to see all invalid input in your server logs
vaadin-bot and others added 20 commits May 13, 2022 16:35
… (#13774)

Move clean-frontend to pre-clean as if
mvn clean is executed before clean-frontend
clean will remove the target folder making
removal of node_modules fail on windows
if there is a symlink to target/flow-frontend

touches #13760

Co-authored-by: caalador <[email protected]>
#13779)

Ignore CancellationException if the task is cancelled in the meantime.
Authored-by: @HawkSK
Fixes #13610

Co-authored-by: @mshabarov

Co-authored-by: Mikhail Shabarov <[email protected]>
…tor (#13746) (#13818)

* fix: Avoid potential slow Set#removeAll call in HierarchicalCommunicationController#passivateInactiveKeys

The performance of calling Set#removeAll(List) is dependent on the relative sizes of the Set and List parameter. Replace Set#removeAll with List#forEach(Set::remove) to avoid this.

Fixes #13745

Co-authored-by: Mikhail Shabarov <[email protected]>
Co-authored-by: Soroosh Taefi <[email protected]>

Co-authored-by: Pepijn Van Eeckhoudt <[email protected]>
Co-authored-by: Mikhail Shabarov <[email protected]>
Co-authored-by: Soroosh Taefi <[email protected]>
)

When navigating to a non-existent route in dev mode, an error page is displayed with the list of the available routes. However, as noted by @dmitrilc, this list doesn't include routes defined via the @RouteAlias annotation.

Co-authored-by: Tarek Oraby <[email protected]>
…13733) (#13805)

Process re-sync messages via normal message queue and use semaphore to protect re-sync process (i.e. do not allow other messages while performing re-sync).

This PR is adopted from similar fixes for Vaadin 8.

vaadin/framework#11791
vaadin/framework#12043
vaadin/framework#12178

This also changes the method `forceMessageHandling` in a way that the desire to resynchronise is registered before calling `endRequest`. If this is not done, `endRequest` may end up sending out a request itself and that then causes the re-sync request to fail because a request is already in flight. This ends up throwing an IllegalStateException at com/vaadin/client/communication/RequestResponseTracker.java.

Fixes #13726

Co-authored-by: Artur <[email protected]>
Co-authored-by: Pepijn Van Eeckhoudt @pepijnve

Co-authored-by: Tatu Lund <[email protected]>
Co-authored-by: Artur <[email protected]>
…#13620)

Check if parent registry contains a better match
than the session registry.

Fixes #13348

Co-authored-by: caalador <[email protected]>
* fix: Use KeyMapper by default for unique keys

* fix: Use KeyMapper by default to generate unique keys

Delegates to regular KeyMapper whenever the unique key provider is not present and a unique key is needed for a row.

Part-of: vaadin/flow-components#3156

(cherry picked from commit 570244d)
… (#13988)

Downgrades org.eclipse.equinox.preferences dependency version to the one containing a correct groupId for org.osgi.service.prefs and pins org.osgi.service.prefs version.
#13940) (CP: 2.7) (#13997)

* feat: enable components to notify binder when validation state changes (#13940)

Co-authored-by: Mikhail Shabarov <[email protected]>
* chore: fix HasValidator javadoc (#14113)

The error in javadoc example is fixed
so the getDefaultValidator represent
the correct implementation.

Co-authored-by: Soroosh Taefi <[email protected]>
…(CP: 2.7) (#14124)

This is a manual cherry-pick to collect
all changes that are done in #14014,
#14079, and #14083.

Related to #14092
…14132)

Listener removal was missing when unbind
was happening.

Fixes #14110
…#14195)

* fix: Let DataCommunicator#flush keep track of its StateTree

fix: Let DataCommunicator#flush keep track of which StateTree is supposed to execute its flushRequest (#14068)

* DataCommunicator#flush can be stuck when moving between UI instances, for instance when the @PreserveOnRefresh annotation is present.

Co-authored-by: Willem Verstraeten <[email protected]>
Co-authored-by: Marco Collovati [email protected]

(cherry picked from commit c55bdcc)
…on binder (#14205)

Add binder-level flag to allow disabling of
validation status change listener registration
for HasValidator fields.

Related to #13940 (comment) and vaadin/flow-components#3406 (comment)

(cherry picked from commit 420498c)

Co-authored-by: Knoobie <[email protected]>
@melihkurtaran melihkurtaran requested a review from TatuLund August 5, 2022 12:12
@CLAassistant
Copy link

CLAassistant commented Aug 5, 2022

CLA assistant check
All committers have signed the CLA.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 5, 2022

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

@melihkurtaran melihkurtaran changed the base branch from 2.7 to 2.8 August 5, 2022 12:19
Copy link
Contributor

@mshabarov mshabarov left a comment

Choose a reason for hiding this comment

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

@melihkurtaran thank you for contribution!

Seems something goes wrong and a tons of commits are now going to be merged.
Probably you cherry picked from master to your branch which is on top of 2.7.
Then you changed GH target branch to 2.8.

Please pick the needed commit on top of 2.8 branch instead.

@melihkurtaran melihkurtaran deleted the feature/backport-haslabel-v14 branch August 5, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.