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

Refactior File Service #192

Merged
merged 15 commits into from
May 19, 2021
Merged

Refactior File Service #192

merged 15 commits into from
May 19, 2021

Conversation

alexeh
Copy link
Collaborator

@alexeh alexeh commented May 17, 2021

Refactior File Service

This PR introduces a refactor to create stand-alone File Service.

Please write a description. If the PR is hard to understand, provide a quick explanation of the code.

Designs

Link to the related design prototypes (if applicable)

Testing instructions

Please explain how to test the PR: ID of a dataset, steps to reach the feature, etc.

Feature relevant tickets

Link to the related task manager tickets


Checklist before submitting

  • Meaningful commits and code rebased on develop.
  • If this PR adds feature that should be tested for regressions when
    deploying to staging/production, please add brief testing instructions
    to the deploy checklist (docs/deployment-checklist.md)
  • Update CHANGELOG file

@alexeh alexeh added API Everything related the api WIP Work in progress labels May 17, 2021
@alexeh alexeh requested review from kgajowy and hotzevzl May 17, 2021 13:47
@vercel
Copy link

vercel bot commented May 17, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

marxan – ./app

🔍 Inspect: https://vercel.com/vizzuality1/marxan/HmdGb3o1rk25WqnSx58z2srY4u5h
✅ Preview: https://marxan-git-chore-refactor-file-service-vizzuality1.vercel.app

marxan-storybook – ./app

🔍 Inspect: https://vercel.com/vizzuality1/marxan-storybook/7eZCqfb3vtgPbdTZznUHU1tL4eMf
✅ Preview: https://marxan-storybook-git-chore-refactor-file-service-vizzuality1.vercel.app

Await for FS ops

Delete FileService logger context set (PU Controllers will handle)

Catch error for deleteDataFromFs in ShapefileService
Add logger for error catching in file deletion
Copy link
Member

@aagm aagm left a comment

Choose a reason for hiding this comment

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

The conversion of shp to geojson works as a charm, even for medium sized shapefiles, congratulations!.
Said this; I'm seeing a lot of problems with invalid shapefiles. For some reason is not taking into account missing files like .proj which leads to an erroneous projection output.
is not validating file upload sizes, and geojson allowed types or correctness of geometry (yet right?).
very large shapefiles causes Unexpected exception on proxy for shapefile upload service - Error: socket hang up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Everything related the api Ready to review PR ready to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants