Coder Social home page Coder Social logo

quarantine-help / quarantine-help-api Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 503 KB

A really wishful project to help quarantined people find help out there. Handling COVID-19 now

Home Page: http://docs.quarantinehelp.space

License: MIT License

Python 65.94% Shell 0.31% HTML 33.75%
coronavirus covid19 crises django django-rest-framework pyenv pyenv-virtualenv quarantine resource-manager volunteer-management

quarantine-help-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

quarantine-help-api's Issues

Missing unit tests

As a developer, I want to have unit tests in place so I can be sure I'm not breaking anything.

Add FAQ section to README

Create FAQ section in README and add errors faced with during local setup of the project on Windows to it as suggested. I'm working on it.

Proper exception handling at the backend

Sadly, we dont have an error format set. Probably we can use some of the DRF in-house stuff. Right now, raise Exception() from the bakcend raises a 500 and thats it.

Anonymise user data on unprotected APIs

For eg, see: http://docs.quarantinehelp.space/#/Map%20view%20to%20list%20affected%20participants%20nearby/get_api_v1_crises__crisisId__affected_participants_

We return a lot of sensitive information there for the mapview. I would assume we might want to minimally do the following:

  1. Anonymise the first name and last name (also email) to Fe Le e****@***.com ? Also, the phone number.
  2. We need to also figure out if we can use the here maps python library to alter the precision a little bit. We are currently returning co-ordinates and the address. Dont know what would be the best way here.

Setup some sort of CI/CD for the repo?

Currently we have some deploy scripts in deploy_scripts/. Django migrations are always a headache while continuous CI/CD on django, but lets see what we can build ?

Unify datetime strings to ISO format.

Django prints out weird stuff to the frontend, like "2020-04-04T11:17:37.784674Z", Lets push it to ISO format "2019-09-27T11:01:41.928158+00:00",

Auto-convert openapi-schema.yml to openapi.json on commit to master

So right now the docs at http://docs.quarantinehelp.space/#/ is served from https://github.com/Quarantine-Help/quarantine-help-api/tree/master/docs/openapi.json

We have to edit the yaml over an editing service like https://editor.swagger.io/ and then convert it to JSON and update both files. This is kind of sad that we have to maintain two files. How about we only care about the YML file and some script takes care of keeping the JSON in sync ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.