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

Feat/logs and signature #57

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

Guilherme-Fumagali
Copy link
Contributor

No description provided.

@Guilherme-Fumagali
Copy link
Contributor Author

Eu suspeito que os testes estejam falhando por conta das novas variáveis de ambiente no backend bu service

BU_TREE_NAME_TEMPLATE=bus_eleicao_${ELECTION_ID}
TREE_DEFAULT_COMMITMENT_SIZE=8
TL_MANAGER_URL=http://127.0.0.1:8000
MONGO_URL=mongodb://localhost:27017

Se BU_TREE_NAME_TEMPLATE não tiver a chave "${ELECTION_ID}" , não sobe

@leonardotkimura
Copy link
Contributor

@Guilherme-Fumagali , vc consegue adaptar os testes para corrigir isso? https://github.com/larc-logs-transparentes/config/tree/main/hom/tests.

Se não, talvez entrar em contato com o @rbullajr

import dotenv
import requests
Copy link
Contributor

Choose a reason for hiding this comment

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

Essa lib está sendo utilizada? Se não, é bom tirar

data = collection.find_one({"eleicoes": election_id, "zona": zone, "secao": section})
if data is None:
return None
return BuModel(**data)
Copy link
Contributor

Choose a reason for hiding this comment

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

Eu não entendi essa função. É para buscar um BU por eleição+zona+seção? Já não existia essa função?

{"eleicoes": bu.eleicoes, "zona": bu.zona, "secao": bu.secao},
{"$set": bu.model_dump()},
upsert=True
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Por que a gente precisa atualizar o BU? A gente não está trabalhando append-only?

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.

2 participants