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

Handle map components (point coordinates) consistently. #4048

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

sergei-maertens
Copy link
Member

Closes #4038

…I v2 handler

By looking at the formio component defined for the variable, we
can figure out which processing is needed to make it fit the
Objects API requirements, such as converting raw coordinates
into a GeoJSON Point object.
Comment on lines +214 to +216
with (
get_documents_client() as documents_client,
save_and_raise(registration_data),
Copy link
Member Author

Choose a reason for hiding this comment

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

black had opinions 🤷

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, are you running under Python 3.10?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, 3.10.13. Are you not?

Copy link
Contributor

Choose a reason for hiding this comment

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

3.10.13 as well, sometimes the Python version used to run black can alter the formatting, but in this case I have no idea why 🤷

Copy link

codecov bot commented Mar 22, 2024

Codecov Report

Attention: Patch coverage is 95.23810% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 96.07%. Comparing base (551a95f) to head (1ec3610).
Report is 8 commits behind head on master.

Files Patch % Lines
...ons/contrib/objects_api/submission_registration.py 95.23% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4048      +/-   ##
==========================================
- Coverage   96.07%   96.07%   -0.01%     
==========================================
  Files         728      728              
  Lines       22877    22893      +16     
  Branches     2656     2659       +3     
==========================================
+ Hits        21980    21995      +15     
  Misses        636      636              
- Partials      261      262       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergei-maertens sergei-maertens merged commit 7138308 into master Mar 22, 2024
26 of 28 checks passed
@sergei-maertens sergei-maertens deleted the issue/4038-handle-geo-data branch March 22, 2024 16:21
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.

Geo fields (map component) are not properly converted to GeoJSON
2 participants