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

Npe message fix for maintenance #4441

Closed
wants to merge 56 commits into from
Closed

Conversation

pekam
Copy link
Contributor

@pekam pekam commented Jul 26, 2018

This change is Reviewable

pekam and others added 30 commits June 21, 2018 12:41
* Trigger productionMode and IgnoreIE11 in BrowserStack

* Revert productionMode activation

* activate production mode only on browserstack property

* Use TestBench queries in ChildOrderIT

* Improve browser checking in BodyScrollIT

* Try to fix CompositeIT with waitForElementPresent

* Wait for shadow-root child in ChildOrderIT

* Increase timeout for ChildOrderIT

* Revert "Increase timeout for ChildOrderIT"

This reverts commit 435dc81.

* Revert "Wait for shadow-root child in ChildOrderIT"

This reverts commit 1d40a78.

* Revert "Use TestBench queries in ChildOrderIT"

This reverts commit 6deceaa.

* Merge branch 'master' into ie11-conf

* Remove es5 folder config

* Move ExportedJSFunction tests out of test-root-context

* Move ClientSideExceptionHandling tests out of test-root-context

* Move InfoIT out of test-root-context

* Move frontend protocol tests out of test-root-context

* Add description for flow-test-dev-mode

* Merge branch 'master' into ie11-conf
* Fix PaperInputIT by moving to the end of the field before typing

* Fix AttachExistingDomElementByIdIT by using tab instead of enter to commit the value change of an input field

* WebComponentsIT: Skip browser log API which doesn't exist for IE11

* Move ExceptionStackTraceIT to test-dev-mode because stack trace is not shown in production mode

* Use TB query instead of getInShadowRoot
* Send 404 for non-existing frontend resources
Do it ONLY if the target is the flow-component-renderer element itself.

Fixes grid#122
* Add RPC support for composite components

* Support composite of composite

* Split method search in hierarchy
* Update frontend tools.

* Variant information is written to the analyzer.

* Support new json filed in generator.

* Add javadocs.
* Add HasTheme interface if variants are present for the component.

* Generate theme variants as enums.

* HasTheme supports theme variants now.

* Add missing components to analysis to get their variants.

* Add Lumo theme variants.

* Generate theme variants with classes.

* Regenerate the components

* Code review fixes.

* Regenerate the components

* Wrap tag name in {@code}.

* Regenerate the components

* Add generated annotation to the class.

* Regenerate the components
* Update Copyright Header

* Update Since tag
Add an automatic PWA initialisation annotation for Flow-based projects.
SomeoneToIgnore and others added 18 commits July 13, 2018 10:17
…4396)

* Update all components to versions with Material Theme support.
* Make inactive nodes mark their children as dirty on setInactive

This moves the setting of dirty nodes out of the collectChanges method.

When using long-polling push, the client keeps asking for changes from
the server. The server then collects all the changes and sends to the
client. The problem is: a child node is always considered `dirty`, if
its parent is invisible, and the node is always included in the changes
sent to the client.

Since there's not a single moment where there's nothing to send, the
server keeps sending the changes, and the client keeps asking for the
changes. This creates a busy loop between client and server, which only
ends when the parent node is made visible again.

To prevent this, this patch changes this logic to make the children
nodes only dirty when the parent visibility changes.

Fix #4353
If we plan to show Material theme examples, we need this dependency for it.
* Enable the test to check the added variant

* Adding one more method to the test class
* Stream resource test (targeted for OSGi).
* Make ArrayUpdater backwards compatible

* Create the HierarchicalArrayUpdater interface

With the HierarchicalArrayUpdater interface, the logic needed for
TreeGrid (or any hierarchical listing component) is separated from the
ArrayUpater interface, making the ArrayUpater itself backwards
compatible.
* Try not to lose the weak reference of UI during the test
* Add API diff via profile in the vaadin-parent project

Fix for #4419
@pekam pekam closed this Jul 26, 2018
@pekam pekam deleted the npe-message-fix-for-maintenance branch July 26, 2018 12:02
@pekam pekam added this to the Abandoned milestone Jul 26, 2018
updatedButtonText.startsWith("Remove"));
Assert.assertEquals(
"When a theme variant got added, component 'theme' attribute should contain one more variant that before",
previousThemes.size() + 1, updatedThemes.size());
Copy link
Collaborator

Choose a reason for hiding this comment

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

MINOR Cast one of the operands of this addition operation to a "long". rule

/**
* Base class for the integration tests of component demos.
*
*/
public abstract class ComponentDemoTest extends ChromeBrowserTest {
protected WebElement layout;

/**
Copy link
Collaborator

Choose a reason for hiding this comment

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

CRITICAL First sentence of Javadoc is incomplete (period is missing) or not present. rule

}
}

private Function<WebElement, String> DEFAULT_VARIANT_PRODUCER = new DefaultProducer();
Copy link
Collaborator

Choose a reason for hiding this comment

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

CRITICAL Rename this field "DEFAULT_VARIANT_PRODUCER" to match the regular expression '^[a-z][a-zA-Z0-9]*$'. rule

updatedButtonText.startsWith("Add"));
Assert.assertEquals(
"When a theme variant got removed, component 'theme' attribute should contain one less variant than before",
previousThemes.size() - 1, updatedThemes.size());
Copy link
Collaborator

Choose a reason for hiding this comment

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

MINOR Cast one of the operands of this subtraction operation to a "long". rule

@@ -21,7 +21,6 @@
/**
Copy link
Collaborator

Choose a reason for hiding this comment

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

CRITICAL First sentence of Javadoc is incomplete (period is missing) or not present. rule

@@ -20,7 +20,6 @@
/**
Copy link
Collaborator

Choose a reason for hiding this comment

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

CRITICAL First sentence of Javadoc is incomplete (period is missing) or not present. rule

@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 21 issues

  • CRITICAL 11 critical
  • MAJOR 4 major
  • MINOR 4 minor
  • INFO 2 info

Watch the comments in this conversation to review them.

Top 10 extra 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. CRITICAL LoadingIndicator.java#L41: Define a constant instead of duplicating this literal "0% {width: 0%;}" 3 times. rule
  2. CRITICAL LoadingIndicator.java#L42: Define a constant instead of duplicating this literal "100% {width: 50%;}}" 3 times. rule
  3. CRITICAL LoadingIndicator.java#L57: Define a constant instead of duplicating this literal "0% {opacity: 1;}" 3 times. rule
  4. CRITICAL LoadingIndicator.java#L58: Define a constant instead of duplicating this literal "50% {opacity: 0.1;}" 3 times. rule
  5. CRITICAL LoadingIndicator.java#L59: Define a constant instead of duplicating this literal "100% {opacity: 1;}}" 3 times. rule
  6. CRITICAL WidgetUtil.java#L42: First sentence of Javadoc is incomplete (period is missing) or not present. rule
  7. CRITICAL ExclusionRegistry.java#L53: Define a constant instead of duplicating this literal "vaadin-dialog" 3 times. rule
  8. MAJOR Console.java#L37: Define and throw a dedicated exception instead of using a generic one. rule
  9. MAJOR SimpleElementBindingStrategy.java#L195: Make the enclosing method "static" or remove this set. rule
  10. MAJOR SimpleElementBindingStrategy.java#L994: Remove this unused private "invokeWhenNodeIsConstructed" method. rule

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.