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

carddav: add filtering and matching helper functions #55

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

bitfehler
Copy link
Collaborator

This is a continuation of #49

I addressed all your comments and removed two test cases that I think were a misunderstanding about the semantics of DataRequest.AllProp.

I did add handling of carddav.PropFilter.IsNotDefined because it seemed simple, let me know if I got that wrong there.

About the collation handling, I added the TODO, but it seems this needs support in the TextMatch type first, correct?

if field == nil {
return prop.IsNotDefined, nil
}

Copy link
Owner

Choose a reason for hiding this comment

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

At this point field != nil so we maybe need to return false in case prop.IsNotDefined is set?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, thanks! Fixed.

@emersion
Copy link
Owner

emersion commented Mar 1, 2022

Apart from this comment, looks pretty good to me!

Updates emersion/hydroxide#159.

Signed-off-by: Sebastien Binet <binet@cern.ch>
Co-authored-by: Conrad Hoffmann <ch@bitfehler.net>
Copy link
Owner

@emersion emersion left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@emersion emersion merged commit 6d59672 into emersion:master Mar 1, 2022
@bitfehler bitfehler deleted the bitfehler/carddav-filter branch March 11, 2022 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants