-
Notifications
You must be signed in to change notification settings - Fork 27.5k
fix(shallowCopy) logic error where '$foo' would be ignored #6033
Conversation
Hey, so going back to at least 1.2.3, we weren't ignoring properties with a single dollar-sign prefix (and, there are some potential uses for properties with these names, like writing queries to be fed directly into mongodb, not that I recommend anyone do that). This would be a breaking change, although I'm not totally sure about the impact. |
|
Ah, I see what you're saying, just tested on a fiddle. Okay, so this is a proper fix and not a breaking change. What I'd like to see before LGTM-ing this is some tests added so that we can guard against breaking this inadvertently in the future. @IgorMinar I'd like to get this into 1.2.11 once tests are added, does that look alright to you? |
LGTM. We should have unit tests to cover this |
I'm not sure if they've already begun cutting the release or not... this might not be able to make it in this week :( |
I just realized that this is actually a dupe of #5666. Hm. First one to add tests gets merged? :D |
… requests/responses ngResource no longer filters properties prefixed with a single "$" character from requests or responses, correcting a regression introduced in 1.2.6 (cb29632). Closes angular#5666 Closes angular#6080 Closes angular#6033
… requests/responses ngResource no longer filters properties prefixed with a single "$" character from requests or responses, correcting a regression introduced in 1.2.6 (cb29632). Closes angular#5666 Closes angular#6080 Closes angular#6033
@thomasbelin4 yes thank you, merged in d2e4e49 |
Hell Yeah :) Thanks @caitp |
Introduced in this commit : cb29632