Skip to content

feat: Add query constraint wherePolygonContains to determine whether a point in within a polygon #778

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

Paul0Cesar
Copy link
Contributor

@Paul0Cesar Paul0Cesar commented Jul 18, 2022

New Pull Request Checklist

Issue Description

Create a new constraint to check if Polygon contains the geopoint

Closes: #777

Approach

create a new method to add polygon constraint in query

TODOs before merging

  • Add changes to documentation (guides, repository pages, in-code descriptions)

@parse-github-assistant
Copy link

parse-github-assistant bot commented Jul 18, 2022

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!

@Paul0Cesar Paul0Cesar force-pushed the feauture/add-polygon-constraint branch from d5b05c7 to 5e1641c Compare July 18, 2022 17:31
@Paul0Cesar Paul0Cesar changed the title feature add constraint to polygon feat: add constraint to polygon Jul 18, 2022
@mtrezza mtrezza requested a review from a team July 20, 2022 11:47
@mtrezza
Copy link
Member

mtrezza commented Jul 20, 2022

Could you add a test?

@Paul0Cesar Paul0Cesar force-pushed the feauture/add-polygon-constraint branch from 5e1641c to d00b8d0 Compare July 25, 2022 14:45
@mtrezza
Copy link
Member

mtrezza commented Aug 18, 2022

@parse-community/flutter-sdk-review could someone please review this?

@codecov
Copy link

codecov bot commented Aug 18, 2022

Codecov Report

Base: 15.13% // Head: 15.83% // Increases project coverage by +0.70% 🎉

Coverage data is based on head (45a7056) compared to base (7f24fb2).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 45a7056 differs from pull request most recent head 4ea2f2c. Consider uploading reports for the commit 4ea2f2c to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #778      +/-   ##
==========================================
+ Coverage   15.13%   15.83%   +0.70%     
==========================================
  Files          47       47              
  Lines        2855     2860       +5     
==========================================
+ Hits          432      453      +21     
+ Misses       2423     2407      -16     
Impacted Files Coverage Δ
packages/dart/lib/src/network/parse_query.dart 22.31% <100.00%> (+1.57%) ⬆️
packages/dart/lib/src/utils/parse_decoder.dart 58.49% <0.00%> (+20.75%) ⬆️
packages/dart/lib/src/objects/parse_geo_point.dart 45.45% <0.00%> (+45.45%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

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

Could you take a look at the failing lint test?

@Paul0Cesar
Copy link
Contributor Author

Could you take a look at the failing lint test?

@mtrezza , sorry for the late answer, I fix the lint error

@mtrezza
Copy link
Member

mtrezza commented Sep 9, 2022

Thanks @Paul0Cesar, all tests pass. Let's wait for a review by @parse-community/flutter-sdk-review to merge this.

@mtrezza mtrezza changed the title feat: add constraint to polygon feat: add query constraint wherePolygonContains to determine whether a point in within a polygon Sep 9, 2022
mbfakourii
mbfakourii previously approved these changes Nov 28, 2022
@mtrezza mtrezza changed the title feat: add query constraint wherePolygonContains to determine whether a point in within a polygon feat: Add query constraint wherePolygonContains to determine whether a point in within a polygon Nov 28, 2022
@mtrezza
Copy link
Member

mtrezza commented Nov 28, 2022

@mbfakourii Thanks for reviewing this.

@Paul0Cesar To merge this, could you add the change log entry and bump the version by a minor version number? It seems this is only related to the dart package, so the change log and version number only needs to be changed there.

@Paul0Cesar
Copy link
Contributor Author

@mtrezza , sorry for the late answer, I merge the master branch, fix the constant SINGLE QUERY not using _SINGLE_QUERY, and change the version

@Paul0Cesar Paul0Cesar requested a review from mtrezza January 18, 2023 23:58
Copy link
Member

@mbfakourii mbfakourii left a comment

Choose a reason for hiding this comment

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

The test must be changed

@Paul0Cesar Paul0Cesar requested review from mbfakourii and removed request for mtrezza January 19, 2023 13:44
@Paul0Cesar
Copy link
Contributor Author

@mbfakourii, I change the code formatting, can you check again?

mbfakourii
mbfakourii previously approved these changes Jan 19, 2023
Copy link
Member

@mbfakourii mbfakourii left a comment

Choose a reason for hiding this comment

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

Thanks for the changes looks good

@mbfakourii mbfakourii requested a review from mtrezza January 19, 2023 13:52
mtrezza
mtrezza previously approved these changes Jan 20, 2023
Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

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

Minor changelog

@mtrezza mtrezza dismissed stale reviews from mbfakourii and themself via a133078 January 20, 2023 15:25
Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

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

Lint fails, could you take a look?

@Paul0Cesar
Copy link
Contributor Author

Paul0Cesar commented Jan 21, 2023

@mtrezza , done, can you check? 🚀

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

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

Looks good

@mtrezza mtrezza merged commit 2afa2ad into parse-community:master Jan 21, 2023
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.

Additional query constraint: "wherePolygonContains"
3 participants