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

Exclude function properties from generated components #4673

Merged
merged 5 commits into from Oct 8, 2018

Conversation

pekam
Copy link
Contributor

@pekam pekam commented Oct 5, 2018

This change is Reviewable

@pekam pekam self-assigned this Oct 5, 2018
Copy link
Contributor

@gilberto-torrezan gilberto-torrezan left a comment

Choose a reason for hiding this comment

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

Reviewed 6 of 6 files at r1.
Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained


flow-components-parent/flow-code-generator-api/src/main/java/com/vaadin/generator/ComponentGeneratorUtils.java, line 388 at r1 (raw file):

        case FUNCTION:
            System.out.println("asdf");

asdf for you too

Copy link
Contributor Author

@pekam pekam left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained


flow-components-parent/flow-code-generator-api/src/main/java/com/vaadin/generator/ComponentGeneratorUtils.java, line 388 at r1 (raw file):

Previously, gilberto-torrezan (Gilberto Torrezan) wrote…

asdf for you too

ty <3

Copy link
Contributor

@gilberto-torrezan gilberto-torrezan 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 1 files at r2, 1 of 1 files at r3.
Reviewable status: 2 unresolved discussions, 0 of 1 LGTMs obtained

a discussion (no related file):
Also use the code generator and push the new sources (leave the webcomponent version update to the other PR though).

The generated files are the actual validation for the code generation.


For some reason it seems that it picked the new version of
vaadin-overlay.
Copy link
Contributor Author

@pekam pekam left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained

a discussion (no related file):

Previously, gilberto-torrezan (Gilberto Torrezan) wrote…

Also use the code generator and push the new sources (leave the webcomponent version update to the other PR though).

The generated files are the actual validation for the code generation.

Done.


Copy link
Contributor

@gilberto-torrezan gilberto-torrezan left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained

a discussion (no related file):
Ok, now there are two other properties that probably are better to be excluded as well: model and owner.


Copy link
Contributor

@gilberto-torrezan gilberto-torrezan left a comment

Choose a reason for hiding this comment

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

Reviewed 68 of 68 files at r4.
Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained

Copy link
Contributor Author

@pekam pekam left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained

a discussion (no related file):

Previously, gilberto-torrezan (Gilberto Torrezan) wrote…

Ok, now there are two other properties that probably are better to be excluded as well: model and owner.

Well they are for the overlay components which we don't use anyway, but sure I can add those to ExclusionRegistry


Copy link
Contributor Author

@pekam pekam left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained

a discussion (no related file):

Previously, pekam (Pekka Maanpää) wrote…

Well they are for the overlay components which we don't use anyway, but sure I can add those to ExclusionRegistry

Done.


Copy link
Contributor Author

@pekam pekam left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 unresolved discussions, 0 of 1 LGTMs obtained


flow-components-parent/flow-generated-components/src/main/java/com/vaadin/flow/component/grid/GridVariant.java, line 26 at r5 (raw file):

        "WebComponent: Vaadin.GridElement#5.1.0", "Flow#1.2-SNAPSHOT" })
public enum GridVariant {
    MATERIAL_COLUMN_DIVIDERS("column-dividers"), LUMO_NO_BORDER(

@gilberto-torrezan do you think this is a problem? Order changed randomly. GridVariant.values() will return in different order now.

Copy link
Contributor

@gilberto-torrezan gilberto-torrezan left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 8 of 8 files at r5.
Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained, and 1 stale


flow-components-parent/flow-generated-components/src/main/java/com/vaadin/flow/component/grid/GridVariant.java, line 26 at r5 (raw file):

Previously, pekam (Pekka Maanpää) wrote…

@gilberto-torrezan do you think this is a problem? Order changed randomly. GridVariant.values() will return in different order now.

I don't think it will bring any disturbance in the force, but having a deterministic order (alphabetically, for instance) would be better for sure. Better to ticketize this.

Copy link
Contributor Author

@pekam pekam left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all discussions resolved, 1 of 1 LGTMs obtained


flow-components-parent/flow-generated-components/src/main/java/com/vaadin/flow/component/grid/GridVariant.java, line 26 at r5 (raw file):

Previously, gilberto-torrezan (Gilberto Torrezan) wrote…

I don't think it will bring any disturbance in the force, but having a deterministic order (alphabetically, for instance) would be better for sure. Better to ticketize this.

#4677

Copy link
Contributor

@gilberto-torrezan gilberto-torrezan left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all discussions resolved, 1 of 1 LGTMs obtained

@@ -55,6 +58,14 @@
excludeProperty("vaadin-dialog", "noCloseOnOutsideClick");
excludeProperty("vaadin-list-box", "selected");
excludeProperty("vaadin-list-box", "items");
excludeProperty("vaadin-combo-box-overlay", "owner");
Copy link
Collaborator

Choose a reason for hiding this comment

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

CRITICAL Define a constant instead of duplicating this literal "owner" 4 times. rule

@@ -55,6 +58,14 @@
excludeProperty("vaadin-dialog", "noCloseOnOutsideClick");
excludeProperty("vaadin-list-box", "selected");
excludeProperty("vaadin-list-box", "items");
excludeProperty("vaadin-combo-box-overlay", "owner");
excludeProperty("vaadin-combo-box-overlay", "model");
Copy link
Collaborator

Choose a reason for hiding this comment

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

CRITICAL Define a constant instead of duplicating this literal "model" 4 times. rule

@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 3 issues

  • CRITICAL 3 critical

Watch the comments in this conversation to review them.

1 extra issue

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 ExclusionRegistry.java#L57: Define a constant instead of duplicating this literal "vaadin-dialog" 3 times. rule

Copy link
Contributor

@gilberto-torrezan gilberto-torrezan 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 2 discussions.
Reviewable status: :shipit: complete! all discussions resolved, 1 of 1 LGTMs obtained

@gilberto-torrezan gilberto-torrezan merged commit bfaca07 into master Oct 8, 2018
@gilberto-torrezan gilberto-torrezan deleted the exclude-functions branch October 8, 2018 08:04
@gilberto-torrezan gilberto-torrezan added this to the 1.2.0.alpha1 milestone Oct 10, 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