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

Update enabled status for virtual children of Element without Component #6315

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

denis-anisimov
Copy link
Contributor

@denis-anisimov denis-anisimov commented Aug 23, 2019

Fixes vaadin/vaadin-grid-flow#687


This change is Reviewable

denis-anisimov pushed a commit to vaadin/vaadin-grid-flow that referenced this pull request Aug 23, 2019
@denis-anisimov
Copy link
Contributor Author

IT tests is provided here: vaadin/vaadin-grid-flow#750

return checkParentChainState(parentComponent);
Element parent = element.getParent();
if (parent != null) {
if (isAttachedToParent(element, parent)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

MAJOR Merge this if statement with the enclosing one. rule

@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 1 issue

  • MAJOR 1 major

Watch the comments in this conversation to review them.

Copy link
Contributor

@ujoni ujoni left a comment

Choose a reason for hiding this comment

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

:lgtm:

Can you merge this PR so, that the merge commit contains a short explanation of how this fixes the issue? It is not immediately obvious and might be nice to have a record.

Reviewed 1 of 2 files at r1.
Reviewable status: 1 unresolved discussion, 1 of 1 LGTMs obtained (waiting on @denis-anisimov)

OLD Vaadin Flow ongoing work (Vaadin 10+) automation moved this from External Reviews to Reviewer approved Aug 27, 2019
Copy link
Contributor

@ujoni ujoni left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r1.
Reviewable status: 1 unresolved discussion, 1 of 1 LGTMs obtained (waiting on @denis-anisimov)

Copy link
Contributor Author

@denis-anisimov denis-anisimov left a comment

Choose a reason for hiding this comment

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

Dismissed @vaadin-bot from a discussion.
Reviewable status: :shipit: complete! all discussions resolved, 1 of 1 LGTMs obtained

@denis-anisimov denis-anisimov merged commit 2ca3cb2 into master Aug 27, 2019
OLD Vaadin Flow ongoing work (Vaadin 10+) automation moved this from Reviewer approved to Done - pending release Aug 27, 2019
@denis-anisimov denis-anisimov deleted the grid-687-setEnabled branch August 27, 2019 05:50
denis-anisimov pushed a commit that referenced this pull request Aug 27, 2019
…nt (#6315)

ComponentUtil::onComponentAttach/ComponentUtil::onComponentDetach should use Element API parent to decide whether to call Component::onEnabledStateChanged.
That allows to use correct parent in case there is no Component mapped to Element.

Fixes vaadin/vaadin-grid-flow#687
denis-anisimov pushed a commit that referenced this pull request Aug 27, 2019
(#6315)

ComponentUtil::onComponentAttach/ComponentUtil::onComponentDetach should
use Element API parent to decide whether to call
Component::onEnabledStateChanged.
That allows to use correct parent in case there is no Component mapped
to Element.

Fixes vaadin/vaadin-grid-flow#687
# Conflicts:
#	flow-server/src/test/java/com/vaadin/flow/component/ComponentTest.java
@caalador caalador moved this from Done - pending release to External Reviews in OLD Vaadin Flow ongoing work (Vaadin 10+) Aug 27, 2019
denis-anisimov pushed a commit that referenced this pull request Aug 27, 2019
(#6315)

ComponentUtil::onComponentAttach/ComponentUtil::onComponentDetach should
use Element API parent to decide whether to call
Component::onEnabledStateChanged.
That allows to use correct parent in case there is no Component mapped
to Element.
@caalador caalador moved this from External Reviews to Reviewer approved in OLD Vaadin Flow ongoing work (Vaadin 10+) Aug 27, 2019
@caalador caalador moved this from Reviewer approved to Done - pending release in OLD Vaadin Flow ongoing work (Vaadin 10+) Aug 27, 2019
ujoni pushed a commit that referenced this pull request Aug 27, 2019
…nt (#6315)

ComponentUtil::onComponentAttach/ComponentUtil::onComponentDetach should use Element API parent to decide whether to call Component::onEnabledStateChanged.
That allows to use correct parent in case there is no Component mapped to Element.

Fixes vaadin/vaadin-grid-flow#687
ujoni pushed a commit that referenced this pull request Aug 27, 2019
(#6315)

ComponentUtil::onComponentAttach/ComponentUtil::onComponentDetach should
use Element API parent to decide whether to call
Component::onEnabledStateChanged.
That allows to use correct parent in case there is no Component mapped
to Element.

Fixes vaadin/vaadin-grid-flow#687
# Conflicts:
#	flow-server/src/test/java/com/vaadin/flow/component/ComponentTest.java
ujoni pushed a commit that referenced this pull request Aug 27, 2019
(#6315)

ComponentUtil::onComponentAttach/ComponentUtil::onComponentDetach should
use Element API parent to decide whether to call
Component::onEnabledStateChanged.
That allows to use correct parent in case there is no Component mapped
to Element.
@ujoni ujoni added this to the 2.1.0.alpha1 milestone Aug 27, 2019
joheriks pushed a commit to vaadin/vaadin-grid-flow that referenced this pull request Aug 28, 2019
@joheriks joheriks modified the milestones: 2.1.0.alpha1, 2.0.9 Aug 30, 2019
@joheriks joheriks moved this from Done - pending release to Released in OLD Vaadin Flow ongoing work (Vaadin 10+) Sep 2, 2019
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.

setEnabled should propagate enabled status to ComponentColumn components
4 participants