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

Refatorar matcher #121

Open
volkyeth opened this issue Sep 1, 2018 · 0 comments
Open

Refatorar matcher #121

volkyeth opened this issue Sep 1, 2018 · 0 comments

Comments

@volkyeth
Copy link
Contributor

volkyeth commented Sep 1, 2018

Refatorar a cloud function que monta o ranking para já retornar todos os dados dos candidatos:

Formato da resposta:

{
  lastUpdate: "2018-08-31T12:11:25 -03:00"
  estadual: [
    <candidate1>,
    <candidate2>,
    ...
  ],
  federal: [
    <candidate1>,
    <candidate2>,
    ...
  ]
}

Formato de dados do candidato:

chave valor
name Fulano da Silva Sauro
matchScore 7654
picture http://www.votasp.org.br/candidato1.jpg
partyNumber 99
candidateNumber 12345

Os dados serão obtidos de um json salvo no Firebase Storage que será atualizado periodicamente a partir da base de dados do Firestore com os dados necessários especificados acima. Esse snapshot json será atualizado via cloud function

@volkyeth volkyeth added this to To do in TODO Sep 1, 2018
@volkyeth volkyeth moved this from To do to In progress in TODO Sep 1, 2018
@volkyeth volkyeth self-assigned this Sep 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
TODO
  
In progress
Development

No branches or pull requests

1 participant