Skip to content

Rename value to docValue in RelationFilter #1844

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
merged 3 commits into from
Jun 5, 2019
Merged

Rename value to docValue in RelationFilter #1844

merged 3 commits into from
Jun 5, 2019

Conversation

thebrianchen
Copy link

Inside matchesValue() of RelationFilter, the document's value is passed in as value. This leads to some confusion because value refers to the document's value, whereas this.value refers to the RelationFilter's value. Changing value to docValue should make the code easier to understand.

@thebrianchen thebrianchen requested a review from wilhuff June 4, 2019 23:00
@thebrianchen thebrianchen changed the title Rename value to docValue in RelationFilter Rename value to docValue in RelationFilter Jun 4, 2019
@thebrianchen thebrianchen requested review from mikelehen and removed request for wilhuff June 4, 2019 23:06
@thebrianchen thebrianchen assigned mikelehen and unassigned wilhuff Jun 4, 2019
@@ -533,18 +533,18 @@ export class RelationFilter extends Filter {
}
}

private matchesValue(value: FieldValue): boolean {
private matchesValue(docValue: FieldValue): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about "other"? This actually matches what we have in Android and iOS and will save you the effort of porting the rename. :-)

@mikelehen mikelehen assigned thebrianchen and unassigned mikelehen Jun 4, 2019
@thebrianchen thebrianchen requested a review from mikelehen June 4, 2019 23:42
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!

@mikelehen mikelehen assigned thebrianchen and unassigned mikelehen Jun 4, 2019
@thebrianchen thebrianchen merged commit 4b126b7 into master Jun 5, 2019
@thebrianchen thebrianchen deleted the bc/rhs branch June 5, 2019 00:17
@firebase firebase locked and limited conversation to collaborators Oct 10, 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.

3 participants