parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 865 forks source link

feat: Add support for compound AND queries with `PFQuery.andQueryWithSubqueries` #1733

Closed dplewis closed 1 year ago

dplewis commented 1 year ago

New Pull Request Checklist

Issue Description

Similar functionality to PFQuery orWithSubqueries. Adds live query support for $and

Ref: https://github.com/parse-community/Parse-SDK-JS/pull/367

Closes: n/a

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this pull request!

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 96.72% and project coverage change: +6.08 :tada:

Comparison is base (04f81e8) 78.17% compared to head (45851ca) 84.25%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1733 +/- ## ========================================== + Coverage 78.17% 84.25% +6.08% ========================================== Files 307 248 -59 Lines 36879 30394 -6485 ========================================== - Hits 28829 25609 -3220 + Misses 8050 4785 -3265 ``` | [Impacted Files](https://app.codecov.io/gh/parse-community/Parse-SDK-iOS-OSX/pull/1733?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=parse-community) | Coverage Δ | | |---|---|---| | [...lDataStore/OfflineQueryLogic/PFOfflineQueryLogic.m](https://app.codecov.io/gh/parse-community/Parse-SDK-iOS-OSX/pull/1733?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=parse-community#diff-UGFyc2UvUGFyc2UvSW50ZXJuYWwvTG9jYWxEYXRhU3RvcmUvT2ZmbGluZVF1ZXJ5TG9naWMvUEZPZmZsaW5lUXVlcnlMb2dpYy5t) | `62.68% <90.90%> (+1.04%)` | :arrow_up: | | [Parse/Parse/Source/PFQuery.m](https://app.codecov.io/gh/parse-community/Parse-SDK-iOS-OSX/pull/1733?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=parse-community#diff-UGFyc2UvUGFyc2UvU291cmNlL1BGUXVlcnkubQ==) | `94.28% <100.00%> (+0.04%)` | :arrow_up: | | [Parse/Tests/Unit/OfflineQueryLogicUnitTests.m](https://app.codecov.io/gh/parse-community/Parse-SDK-iOS-OSX/pull/1733?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=parse-community#diff-UGFyc2UvVGVzdHMvVW5pdC9PZmZsaW5lUXVlcnlMb2dpY1VuaXRUZXN0cy5t) | `100.00% <100.00%> (ø)` | | | [Parse/Tests/Unit/QueryUnitTests.m](https://app.codecov.io/gh/parse-community/Parse-SDK-iOS-OSX/pull/1733?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=parse-community#diff-UGFyc2UvVGVzdHMvVW5pdC9RdWVyeVVuaXRUZXN0cy5t) | `98.77% <100.00%> (+<0.01%)` | :arrow_up: | ... and [83 files with indirect coverage changes](https://app.codecov.io/gh/parse-community/Parse-SDK-iOS-OSX/pull/1733/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=parse-community)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

parseplatformorg commented 1 year ago

🎉 This change has been released in version 2.6.0