refactor(forms): Log a warning when FormGroup keys include a dot.#50642
refactor(forms): Log a warning when FormGroup keys include a dot.#50642JeanMeche wants to merge 1 commit intoangular:mainfrom
FormGroup keys include a dot.#50642Conversation
c0b2eab to
864d03a
Compare
864d03a to
e3b34b4
Compare
|
@dylhunn This looks ready to merge right ? |
|
@JeanMeche Can you do one more rebase on this? I will run the TGP tonight and if it's clean, we can merge it tomorrow for v17. (If not, I'll bump it from the candidate until we can clean up g3.) |
e3b34b4 to
f4ef298
Compare
|
@dylhunn Rebase ✅ |
|
Unfortunately, this breaks a lot of tests, around 10 test suites, each with up to several dozen dotted control names. (Why are people doing this?!) @JeanMeche, how would you feel about warning, instead of erroring? Alternatively, you could introduce a boolean flag that controls whether we warn or error, and I can create a patch to warn inside of google3 only, and error externally. To do this, just extract a boolean top-level const (something like |
Due to the dotted synthax to resolve controls, keys in FormGroups cannot include dots. fixes angular#50608
f4ef298 to
7a0eccd
Compare
|
Let's keep it simple and hint on this issue with a warning ! |
FormGroup keys include a dot.FormGroup keys include a dot.
|
caretaker: presubmit is fine. No need for a global, since this is just a warning. |
|
This PR was merged into the repository by commit 43115da. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…ngular#50642) Due to the dotted synthax to resolve controls, keys in FormGroups cannot include dots. fixes angular#50608 PR Close angular#50642
Due to the dotted synthax to resolve controls, keys in FormGroups cannot include dots.
fixes #50608
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?