Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Conversation

@arfost
Copy link

@arfost arfost commented Nov 3, 2016

Actualy when a key is set to 0, the firebase-document think that there is no key, but firebase can self generate key at 0 from array, and the concerned item will be untouchable.

Actualy when a key is set to 0, the firebase-document think that there is no key, but firebase can self generate key at 0 from array, and the concerned item will be untouchable.
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@arfost
Copy link
Author

arfost commented Nov 3, 2016

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

}

if (key) {
if (key !== undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use typeof key !== 'undefined' instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

This has been done

Copy link
Contributor

Choose a reason for hiding this comment

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

It’s locally defined as a function parameter so it’s perfectly fine to use direct comparison here.

@mbleigh
Copy link
Contributor

mbleigh commented Nov 3, 2016

Can you also add a breaking test case that is fixed by your PR?

@arfost
Copy link
Author

arfost commented Nov 3, 2016

Thanks for the answer, I did the check change, for the test i'm still new to polymer and firebase, and not exactly sure on how to do it for now. I'll look it up tonight to learn and will do it tomorrow if i think i'm good to go or ask for help if not :)

@arfost
Copy link
Author

arfost commented Nov 4, 2016

Ok, I looked into the test things, and I'm not sure of what I have to do. It seems that the firebase-document tests are from an external lib.
Should I modify this external file or add a single test in the firebase-document test file ? Or am I way out, and it's something totally different ?

@justweb1
Copy link

@arfost You add firebase-document test file in the tests directory

Copy link
Contributor

@tjmonsi tjmonsi left a comment

Choose a reason for hiding this comment

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

The changes were done

}

if (key) {
if (key !== undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This has been done

@tjmonsi
Copy link
Contributor

tjmonsi commented Sep 21, 2017

I think we can add a test later? I'm going to check up on this, this weekend

@merlinnot
Copy link
Contributor

I’ll add a test for this in the coming days so we can proceed. I’d also like to revert the change requested by @mbleigh per #142 (comment)

Is it ok?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants