Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(database): removed unused query option #719

Merged
merged 2 commits into from
Dec 25, 2016

Conversation

cartant
Copy link
Contributor

@cartant cartant commented Dec 13, 2016

Checklist

The in-a-clean-directory thing doesn't work for me; I blame Windows. (And my Mac is packed up, as we are moving house.)

Description

This PR removes a misleading (and malformed) comment in the FirebaseObjectObservable documentation that suggests the query option can be used in a manner similar to that for the FirebaseListObservable. It cannot be, as the option is ignored in the FirebaseObjectObservable factory's implementation.

This PR also removes the ignored query option so that TypeScript-based tools don't suggest it and so that any existing usage of the option will fail with a type error rather than behave unexpectedly.

The query option is ignored when using objects, so referencing the list
docs is misleading.
The docs mention that lists should be used for querying/filtering and
the query option is ignored by the object factory. The query option
should be removed so that it is no longer suggested by TypeScript-based
tools, etc.

Closes angular#706
@davideast davideast merged commit 9cbc59b into angular:master Dec 25, 2016
@davideast
Copy link
Member

@cartant Thanks for cleaning this up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants