Skip to content

build: add tooling to avoid jit issues with empty NgModule definitions - #13843

Merged
jelbourn merged 1 commit into
angular:masterfrom
crisbeto:validate-decorator-pattern
Oct 30, 2018
Merged

build: add tooling to avoid jit issues with empty NgModule definitions#13843
jelbourn merged 1 commit into
angular:masterfrom
crisbeto:validate-decorator-pattern

Conversation

@crisbeto

Copy link
Copy Markdown
Member

* Expands the decorator validation rule to allow us to run a regex against all the arguments of a decorator. This allows us to guard against cases like angular#13792.
* Fixes a similar issue as angular#13792 in the `LayoutModule` which was caught after the new changes to the rule.
@crisbetocrisbeto added pr: merge safe target: patch This PR is targeted for the next patch release labels Oct 27, 2018
@googlebotgooglebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 27, 2018
@devversion

devversion commented Oct 27, 2018

Copy link
Copy Markdown
Member

Didn't we chat about it just being something that should technically work, but we just have no idea how the given team ran into issues with it.

or did @mmalerba already get a response about why this happened?

@crisbeto

Copy link
Copy Markdown
MemberAuthor

I don't know whether @mmalerba got a response, but I added this tooling since it could spare us another random issue like #13792 in the future, while being fairly low maintenance.

@devversion

devversion commented Oct 27, 2018

Copy link
Copy Markdown
Member

I see, it just feels a bit odd to enforce something that is technically supported by Angular, but broke for someone potentially doing something unexpected we don't are aware of.

It would be just good to understand when it could break, and report an issue on Angular. I don't feel too strong about it.. the tooling shouldn't hurt either.

@josephperrottjosephperrott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@josephperrottjosephperrott added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Oct 29, 2018
@mmalerba

Copy link
Copy Markdown
Contributor

I did talk to them, they mentioned that they might have had Ivy enabled at the time, but Misko didn't think it seemed like an Ivy issue. It's also possible it was a change Angular merged but didn't release yet, or maybe the team was just doing something really crazy. Whatever the reason, I don't think it hurts for us to specify the {}

@jelbourn
jelbourn merged commit d0f0f0a into angular:masterOct 30, 2018
atscott pushed a commit to atscott/components that referenced this pull request Nov 5, 2018
angular#13843)
* Expands the decorator validation rule to allow us to run a regex against all the arguments of a decorator. This allows us to guard against cases like angular#13792.
* Fixes a similar issue as angular#13792 in the `LayoutModule` which was caught after the new changes to the rule.
jelbourn pushed a commit that referenced this pull request Nov 6, 2018
#13843)
* Expands the decorator validation rule to allow us to run a regex against all the arguments of a decorator. This allows us to guard against cases like #13792.
* Fixes a similar issue as #13792 in the `LayoutModule` which was caught after the new changes to the rule.
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 10, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: mergeThe PR is ready for merge by the caretakercla: yesPR author has agreed to Google's Contributor License Agreementtarget: patchThis PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@crisbeto@devversion@mmalerba@josephperrott@jelbourn@googlebot