René's URL Explorer Experiment


Title: fix(database): allow null values for equalTo, etc. by cartant · Pull Request #715 · angular/angularfire · GitHub

Open Graph Title: fix(database): allow null values for equalTo, etc. by cartant · Pull Request #715 · angular/angularfire

X Title: fix(database): allow null values for equalTo, etc. by cartant · Pull Request #715 · angular/angularfire

Description: Checklist Issue number for this PR: #704 Docs included?: no Test units included?: no e2e tests included?: no In a clean directory, npm install, npm run build, and npm test run successfully? no After following the steps in the contribution guide, the generated test-root.umd.js bundle was empty - apart from the boilerplate. This could have something to do with Windows being my OS. Hopefully, Travis will run the tests for me. Description This PR includes a refactor to rename a method that was considered to be misleading and a fix to allow the equalTo, startAt and endAt options for list queries to be null - as the current AngularFire2 behaviour differs from that of the underlying SDK (see the repro in the associated issue). I've renamed the method to isNil - rather than the suggested isEmpty - as isNil is the name that's used in lodash (for an identical method) and using isEmpty would make the implementation of isEmptyObject too confusing: export function isEmptyObject(obj: Object): boolean { // If the variable is considered empty, the object isn't? Huh? // What does empty mean? if (isEmpty(obj)) { return false; } return Object.keys(obj).length === 0 && JSON.stringify(obj) === JSON.stringify({}); }

Open Graph Description: Checklist Issue number for this PR: #704 Docs included?: no Test units included?: no e2e tests included?: no In a clean directory, npm install, npm run build, and npm test run successfully? no Af...

X Description: Checklist Issue number for this PR: #704 Docs included?: no Test units included?: no e2e tests included?: no In a clean directory, npm install, npm run build, and npm test run successfully? no Af...

Opengraph URL: https://github.com/angular/angularfire/pull/715

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0e338d4d-e3bd-9bf5-ecc1-224c18ef29ed
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD88C:129FD3:72751D:981C11:6A5B4D02
html-safe-nonce33d70676b533b98146bf362d93c82f1eb1289d276ab72ad1dbff3c77e7c03b18
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODhDOjEyOUZEMzo3Mjc1MUQ6OTgxQzExOjZBNUI0RDAyIiwidmlzaXRvcl9pZCI6IjQyNDY1MDYxMDM3NDY4MDkwOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc7bee8c99f13a64dc0d3161464ea633c30d074b0051e561c287e1c1cef2eaf9a
hovercard-subject-tagpull_request:97415649
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angularfire/pull/715/files
twitter:imagehttps://avatars.githubusercontent.com/u/3878593?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3878593?s=400&v=4
og:image:altChecklist Issue number for this PR: #704 Docs included?: no Test units included?: no e2e tests included?: no In a clean directory, npm install, npm run build, and npm test run successfully? no Af...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angularfire/pull/715/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fpull%2F715%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fpull%2F715%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/pull/715/files
Reloadhttps://github.com/angular/angularfire/pull/715/files
Reloadhttps://github.com/angular/angularfire/pull/715/files
Please reload this pagehttps://github.com/angular/angularfire/pull/715/files
angular https://github.com/angular
angularfirehttps://github.com/angular/angularfire
Notifications https://github.com/login?return_to=%2Fangular%2Fangularfire
Fork 2.2k https://github.com/login?return_to=%2Fangular%2Fangularfire
Star 7.8k https://github.com/login?return_to=%2Fangular%2Fangularfire
Code https://github.com/angular/angularfire
Issues 294 https://github.com/angular/angularfire/issues
Pull requests 21 https://github.com/angular/angularfire/pulls
Discussions https://github.com/angular/angularfire/discussions
Actions https://github.com/angular/angularfire/actions
Projects https://github.com/angular/angularfire/projects
Security and quality 0 https://github.com/angular/angularfire/security
Insights https://github.com/angular/angularfire/pulse
Code https://github.com/angular/angularfire
Issues https://github.com/angular/angularfire/issues
Pull requests https://github.com/angular/angularfire/pulls
Discussions https://github.com/angular/angularfire/discussions
Actions https://github.com/angular/angularfire/actions
Projects https://github.com/angular/angularfire/projects
Security and quality https://github.com/angular/angularfire/security
Insights https://github.com/angular/angularfire/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fangular%2Fangularfire%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fangular%2Fangularfire%2Fissues%2Fnew%2Fchoose
katowulfhttps://github.com/katowulf
angular:masterhttps://github.com/angular/angularfire/tree/master
cartant:issue-704https://github.com/cartant/angularfire/tree/issue-704
Conversation 1 https://github.com/angular/angularfire/pull/715
Commits 2 https://github.com/angular/angularfire/pull/715/commits
Checks 0 https://github.com/angular/angularfire/pull/715/checks
Files changed https://github.com/angular/angularfire/pull/715/files
Please reload this pagehttps://github.com/angular/angularfire/pull/715/files
fix(database): allow null values for equalTo, etc. https://github.com/angular/angularfire/pull/715/files#top
Show all changes 2 commits https://github.com/angular/angularfire/pull/715/files
9a13a74 refactor(utils): replace isPresent with isNil cartant Dec 10, 2016 https://github.com/angular/angularfire/pull/715/commits/9a13a741cd4d3ffe8ea91dae5e15ddeaeb382897
18d0a93 fix(database): allow null values for equalTo, etc. cartant Dec 10, 2016 https://github.com/angular/angularfire/pull/715/commits/18d0a93c4325fc764fc3b87a7acc399aaf700eff
Clear filters https://github.com/angular/angularfire/pull/715/files
Please reload this pagehttps://github.com/angular/angularfire/pull/715/files
Please reload this pagehttps://github.com/angular/angularfire/pull/715/files
auth.ts https://github.com/angular/angularfire/pull/715/files#diff-26c98c2ffc5924a448f8384c10793435c826bb2783eff1d4f866784c95575be5
firebase_sdk_auth_backend.ts https://github.com/angular/angularfire/pull/715/files#diff-be7bcc59deaf06e85cf6971e3a87c5ee71608769b03e9c5c7c6a75f4943c698c
firebase_list_factory.ts https://github.com/angular/angularfire/pull/715/files#diff-12e0d2dbc77e95a0ca430c24be44b4dd90d7056d11a5472c634012eb2ca81e06
query_observable.ts https://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
utils.ts https://github.com/angular/angularfire/pull/715/files#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351
auth.ts https://github.com/angular/angularfire/pull/715/files#diff-a76d12177080fe4ddfb570ec7f21ad668485d652ec4433acb0505486f348d857
src/auth/auth.tshttps://github.com/angular/angularfire/pull/715/files#diff-26c98c2ffc5924a448f8384c10793435c826bb2783eff1d4f866784c95575be5
View file https://github.com/cartant/angularfire/blob/18d0a93c4325fc764fc3b87a7acc399aaf700eff/src/auth/auth.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/715/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/715/files#diff-26c98c2ffc5924a448f8384c10793435c826bb2783eff1d4f866784c95575be5
https://github.com/angular/angularfire/pull/715/files#diff-26c98c2ffc5924a448f8384c10793435c826bb2783eff1d4f866784c95575be5
src/auth/firebase_sdk_auth_backend.tshttps://github.com/angular/angularfire/pull/715/files#diff-be7bcc59deaf06e85cf6971e3a87c5ee71608769b03e9c5c7c6a75f4943c698c
View file https://github.com/cartant/angularfire/blob/18d0a93c4325fc764fc3b87a7acc399aaf700eff/src/auth/firebase_sdk_auth_backend.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/715/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/715/files#diff-be7bcc59deaf06e85cf6971e3a87c5ee71608769b03e9c5c7c6a75f4943c698c
https://github.com/angular/angularfire/pull/715/files#diff-be7bcc59deaf06e85cf6971e3a87c5ee71608769b03e9c5c7c6a75f4943c698c
src/database/firebase_list_factory.tshttps://github.com/angular/angularfire/pull/715/files#diff-12e0d2dbc77e95a0ca430c24be44b4dd90d7056d11a5472c634012eb2ca81e06
View file https://github.com/cartant/angularfire/blob/18d0a93c4325fc764fc3b87a7acc399aaf700eff/src/database/firebase_list_factory.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/715/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/715/files#diff-12e0d2dbc77e95a0ca430c24be44b4dd90d7056d11a5472c634012eb2ca81e06
https://github.com/angular/angularfire/pull/715/files#diff-12e0d2dbc77e95a0ca430c24be44b4dd90d7056d11a5472c634012eb2ca81e06
src/database/query_observable.tshttps://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
View file https://github.com/cartant/angularfire/blob/18d0a93c4325fc764fc3b87a7acc399aaf700eff/src/database/query_observable.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/715/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
https://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
https://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
https://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
https://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
https://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
https://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
https://github.com/angular/angularfire/pull/715/files#diff-ef5460040dd2061e24e453c4da604f0e25c6d596237097e912b167ae868a91e9
src/utils.tshttps://github.com/angular/angularfire/pull/715/files#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351
View file https://github.com/cartant/angularfire/blob/18d0a93c4325fc764fc3b87a7acc399aaf700eff/src/utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/715/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/715/files#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351
https://github.com/angular/angularfire/pull/715/files#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351
https://github.com/angular/angularfire/pull/715/files#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351
https://github.com/angular/angularfire/pull/715/files#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351
src/worker/auth/worker/auth.tshttps://github.com/angular/angularfire/pull/715/files#diff-a76d12177080fe4ddfb570ec7f21ad668485d652ec4433acb0505486f348d857
View file https://github.com/cartant/angularfire/blob/18d0a93c4325fc764fc3b87a7acc399aaf700eff/src/worker/auth/worker/auth.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angularfire/pull/715/{{ revealButtonHref }}
https://github.com/angular/angularfire/pull/715/files#diff-a76d12177080fe4ddfb570ec7f21ad668485d652ec4433acb0505486f348d857
https://github.com/angular/angularfire/pull/715/files#diff-a76d12177080fe4ddfb570ec7f21ad668485d652ec4433acb0505486f348d857
https://github.com/angular/angularfire/pull/715/files#diff-a76d12177080fe4ddfb570ec7f21ad668485d652ec4433acb0505486f348d857
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.