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

Simple web service to return everything we know about a given reimbursement #34

Closed
Irio opened this issue Sep 2, 2016 · 7 comments
Closed

Comments

@Irio
Copy link
Collaborator

Irio commented Sep 2, 2016

Specially for internal reports (e.g. something strange found during analyses, needing further investigation before public reports), a web service to return everything we know about a specific record from the Quota for Exercising Parliamentary Activity would come in handy.

By everything we know, I mean the following:

This short notebook could be replaced by a URL to this web service, with 5621548 (document_id) or 20574089000107 (cnpj_cpf) as parameter.

@cuducos cuducos self-assigned this Sep 2, 2016
@cuducos
Copy link
Collaborator

cuducos commented Sep 2, 2016

I can code an API that serves these info as JSON (I'd do it in Django or Flask if there is no objection).

What I need:

  • Any option to host it for free? (Postgres free plan at Heroku list the database o 10k rows) 😁
  • Anyone willing to work on the visual design and front-end? People from Telegram that said you would like to contribute to a website, I need you 🤘

@filipelinhares
Copy link
Contributor

@cuducos, I would like to learn more about Python, if you've some time to pair, let me know 😁

@brunopazzim
Copy link
Contributor

brunopazzim commented Sep 2, 2016

If we're building an interface can we consider to have it together with the
project website (the one initially discussed on Telegram)? I think it would
be great to have everything in one place.

@baltazarparra
Copy link

we will discuss about the contents of the site?
done that , we can get the prototypes.

@cuducos
Copy link
Collaborator

cuducos commented Sep 3, 2016

Ok, after the discussion from the chat yesterday, I'm taking the following path:

  1. Having an API/web service ASAP will free @Irio some valuable time to be spent on the exploration of the datasets, proof of concept, and proper AI, so I'm coding this simple API ASAP today or tomorrow, maximum on Monday.
  2. I think we can integrate this in a web site for the project, but as this will take time, let's work in the institutional and more portal-like in parallel with no ASAP mood — this is Issue Website for consume API and publish data. #36 opened by @baltazarparra.
  3. If the stack I choose to this ASAP API doesn't fit whatever we decide to do later, there's a great trash bin in my desktop and I don't mind throwing away my work there if (I'll be happy knowing it served its purpose for a while and that something better took its place); if we decided to integrate the institutional, portal-like and API in a single repo later, I also would be happy to be part of the team. TL;DR whatever we decide later, I'm in.
  4. I'm probably using Python and Django for the backend and, Bourbon family for the front-end; raw Javascript or Elm (only if needed).
  5. I'd love to pair, so feel free to get in touch if you wanna code together one of these days. Probably it will be something quick, just a few hours is enough — Drop a line if you wanna join me.

@cuducos
Copy link
Collaborator

cuducos commented Sep 8, 2016

Quick follow up:

  • We have a working version of the JSON API ready to use, including query URL parameters for filtering (it's documented here)
  • We have a limited visual interface that only allows searching by document_id
  • The all the ~2 million records from the datasets are already loaded in the web service database

I believe we can close this issue as soon as I add more searching features to the visual version — and any further improvements could be added as issues in Jarbas repo, ok?

@Irio
Copy link
Collaborator Author

Irio commented Sep 9, 2016

It's already enough for now, @cuducos. Mission accomplished. Let's move new features to its own issue tracker. 💯

@Irio Irio closed this as completed Sep 9, 2016
@Irio Irio unassigned cuducos Feb 9, 2018
Irio pushed a commit that referenced this issue Feb 27, 2018
cuducos pushed a commit that referenced this issue Feb 28, 2018
…g-rosie

Reestructuring rosie based on python packages
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

No branches or pull requests

5 participants