Skip to content

Port matchesAllDocuments() #2166

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

Merged

Conversation

@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt/indexfree-matches branch from 84bc569 to b4f64f4 Compare September 10, 2019 03:59
Copy link
Contributor

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

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

LGTM with optional nit.

this.endAt == null &&
(this.explicitOrderBy.length === 0 ||
(this.explicitOrderBy.length === 1 &&
this.getFirstOrderByField()!.isKeyField()))
Copy link
Contributor

Choose a reason for hiding this comment

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

You could do this.explicitOrderBy[0].field.isKeyField() which would be more congruous with the previous check and avoid the need for !.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks for the suggestion.

@schmidt-sebastian
Copy link
Contributor Author

schmidt-sebastian commented Sep 10, 2019

Merging this since the pervious CI run passed and changes are just renames/minor.

@schmidt-sebastian schmidt-sebastian merged commit 5e2a1e5 into mrschmidt/indexfree-master Sep 10, 2019
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/indexfree-matches branch October 10, 2019 22:55
@firebase firebase locked and limited conversation to collaborators Oct 11, 2019
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.

2 participants