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

Check element readiness based on the "$" property not just the "root" property #3294

Merged
merged 2 commits into from
Jan 12, 2018

Conversation

denis-anisimov
Copy link
Contributor

@denis-anisimov denis-anisimov commented Jan 11, 2018

Fix for #3277


This change is Reviewable

@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 2 issues

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MAJOR SimpleElementBindingStrategy.java#: This file has 776 lines, which is greater than 750 authorized. Split it into smaller files. rule
  2. MAJOR SimpleElementBindingStrategy.java#L690: Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. rule

@ZheSun88
Copy link
Contributor

Reviewed 6 of 6 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


flow-client/src/test-gwt/java/com/vaadin/client/flow/GwtBasicElementBinderTest.java, line 1206 at r1 (raw file):

        Element shadowRoot = Browser.getDocument().createElement("div");

        WidgetUtil.setJsProperty(element, "root", shadowRoot);

what is the purpose by changing these two lines?
That is not a blocker.


Comments from Reviewable

@denis-anisimov
Copy link
Contributor Author

Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


flow-client/src/test-gwt/java/com/vaadin/client/flow/GwtBasicElementBinderTest.java, line 1206 at r1 (raw file):

Previously, ZheSun88 (Sun Zhe) wrote…

what is the purpose by changing these two lines?
That is not a blocker.

root property has been checked against null in the main code to execute the logic.
Now another property is checked.
The presence of the root property should not do anything.
That what happens: now the root property is set from the very beginning and then after bind and flush nothing should happen. That's checked.


Comments from Reviewable

@denis-anisimov denis-anisimov merged commit 0add8fc into master Jan 12, 2018
@denis-anisimov denis-anisimov deleted the 3277-@id-mixins branch January 12, 2018 05:48
@ZheSun88 ZheSun88 added this to the 1.0.0.alpha18 milestone Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants