Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(filterFilter): solve issue #10991 with null property value when using objects with filter #11116

Closed
wants to merge 6 commits into from

Conversation

ElephantRose
Copy link
Contributor

fix(filterFilter): solve issue #10991 with null property value when using objects with filter

Regarding the issue #10991 and the following discussion #10992

fix(filterFilter): solve issue angular#10991 with null property value when using objects with filter : test
… when using objects with filter

fix(filterFilter): solve issue angular#10991 with null property value when using objects with filter

Regarding the issue angular#10991 and the following discussion angular#10992
expect(filter(items, f).length).toBe(3);

f = { people:null };
expect(filter(items, f).length).toBe(3);
Copy link
Member

Choose a reason for hiding this comment

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

Hm...this test shouldn't pass (the length should be 1). But it does pass since version 1.3.6.
This made me realize that there is a similar bug with expectedType (see #11116 (comment)).

@gkalpak
Copy link
Member

gkalpak commented Feb 20, 2015

I left a couple of inline comments (seems that there is one more small fix to be done).
Also, the commits should be squashed into 1.

@ElephantRose: I understand that your time might be limited at the moment and trying to figure out all the necessary bits for a first contribution (git stuff (forking, branching, rebasing, squashing, force-pushing), github stuff (submitting PR, updating PR), angular conventions (code style, file/folder layout, commit message formats, build/testing process), tooling (npm, grunt, gulp) etc) can be time-consuming (and frustrating at times) - although I promise it is going to be a no-brainer after a few contributions.

So, there are a few things that need to be done in order for this PR to be 100% complete, but if you don't want to spend any more time on it right now, it is good enough for merging (it does solve part of the problem and squashing can be done while merging). The rest can be taken care of in subsequent PRs (I'll take care of that).
What I am trying to say is, if you are willing/able to put in the extra cycles needed to make this fix 100% complete you are more than welcome to go for it. If not, we can merge it as is and someone else will take it from there.

In any case, thx for all the work so far 👍

@gkalpak
Copy link
Member

gkalpak commented Feb 20, 2015

@caitp or @petebacondarwin or @anyone, should this be backported to 1.3.x (since it was working correclty up until 1.3.5 and broke in 1.3.6) ?

@caitp
Copy link
Contributor

caitp commented Feb 20, 2015

yes, backport to 1.3

@pkozlowski-opensource
Copy link
Member

@gkalpak what is the milestone in which you want to merge this?

@gkalpak
Copy link
Member

gkalpak commented Feb 21, 2015

@pkozlowski-opensource, I don't really know what's the deal with milestones (nor do I know when the next release is happening (suspecting on Monday)) and how I should determine which one I want t merge this in :)

If it helps answer the question, I would like to merge this as soon as possible (since it is a regression), preferrably with the additional fix mentioned above, but if not possible then as is (and submitting a follow-up PR).

@ElephantRose
Copy link
Contributor Author

@gkalpak, Sorry for the late reply. I was a bit busy.
I changed the null test for expected value as you mentionned and updated the tests as well (comments have been deleted too btw)

@petebacondarwin petebacondarwin added this to the 1.4.0-beta.6 / 1.3.15 milestone Feb 25, 2015
@gkalpak
Copy link
Member

gkalpak commented Feb 26, 2015

@ElephantRose, thx ! Apart for the commits' needing to be squashed into one, it LGTM.

petebacondarwin pushed a commit that referenced this pull request Feb 27, 2015
@gkalpak
Copy link
Member

gkalpak commented Feb 28, 2015

@petebacondarwin, according to #11116 (comment) this should be also backported to 1.3.x

@pkozlowski-opensource
Copy link
Member

@gkalpak wasn't it done via 01161a0 ?

@gkalpak
Copy link
Member

gkalpak commented Feb 28, 2015

@pkozlowski-opensource, @petebacondarwin, ooops ! Seems like I missed that. All good then :)

netman92 pushed a commit to netman92/angular.js that referenced this pull request Aug 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants