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

polygon validation endpoints #145

Merged
merged 17 commits into from
Apr 18, 2024
Merged

polygon validation endpoints #145

merged 17 commits into from
Apr 18, 2024

Conversation

pachonjcl
Copy link
Collaborator

@pachonjcl pachonjcl commented Apr 15, 2024

Polygon Validation work

Notes:

  • Rebuild php container or make sure that the memory for upload and post are increased.

  • make sure to create the following 3 folders inside storage/app/public/ : [geojson_files, kml_files, shapefiles]

  • Please make run the database/seeders/CodeCriteria.php and database/seeders/CodeIndicator.php

  • Documentation

image

@pachonjcl pachonjcl marked this pull request as ready for review April 15, 2024 22:30
@pachonjcl pachonjcl requested a review from roguenet April 15, 2024 22:31
Copy link
Collaborator

@roguenet roguenet left a comment

Choose a reason for hiding this comment

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

I don't see any updates to the API docs. Please add documentation in the openapi-src directory, and update the swagger doc with make doc.

I've only made it about halfway through the PR, but need to sign off for the day and wanted to get the comments so far to you. I'll continue reviewing tomorrow.

Copy link
Collaborator

@roguenet roguenet left a comment

Choose a reason for hiding this comment

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

I've finished my initial read through. I think I can take care of it during my greenhouse API work, but a lot of the validation methods in the create geometry controller are going to need to be moved to a utility more accessible somewhere. Also, I think there might be room to tap into the Laravel Validator system for a bunch of these, cleaning up the readability and maintainability of them. I'll look into that as well.

I do wish we had unit tests for all this new functionality, but in the interest of time I'll withhold requesting that for now.

Once we've resolved the remaining outstanding comments, this should be ready to merge.

docker/php.Dockerfile Show resolved Hide resolved
@roguenet
Copy link
Collaborator

The linter needs some attention, and then I think this is just about ready.

@pachonjcl pachonjcl merged commit b06c42c into staging Apr 18, 2024
1 check passed
pachonjcl added a commit that referenced this pull request Apr 22, 2024
…lidation endpoints (#145)

* polygon validation endpoints

* move code from migration to seeder

* remove unused code

* move code from migration to seeder

* add missing pieces in docker file for php

* fix lint

* implement some suggestion on the model creation and uuid usage

* change memory limit

* merge single polygon of geo and dashboard

* keep merging

* add country in site_polygon migration and log error of site polygon

* add Eloquent and clear query

* add function to call area and latitude of polygon in model

* add relation with polygon for site polygon

* move to variable for clarity

* fix: lint

---------

Co-authored-by: JORGE <[email protected]>
Co-authored-by: cesarLima1 <[email protected]>
egrojMonroy added a commit that referenced this pull request Nov 1, 2024
…lidation endpoints (#145)

* polygon validation endpoints

* move code from migration to seeder

* remove unused code

* move code from migration to seeder

* add missing pieces in docker file for php

* fix lint

* implement some suggestion on the model creation and uuid usage

* change memory limit

* merge single polygon of geo and dashboard

* keep merging

* add country in site_polygon migration and log error of site polygon

* add Eloquent and clear query

* add function to call area and latitude of polygon in model

* add relation with polygon for site polygon

* move to variable for clarity

* fix: lint

---------

Co-authored-by: JORGE <[email protected]>
Co-authored-by: cesarLima1 <[email protected]>
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.

4 participants