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

Cria State.fix_values para atribuir corretamente name e acronym de State #562

Conversation

robertatakenaka
Copy link
Member

@robertatakenaka robertatakenaka commented Nov 9, 2024

O que esse PR faz?

Cria State.fix_values para atribuir corretamente name e acronym de State.
Garante que o acrônimo preencha State.acronym e name preencha State.name.
A inversão acontece ao criar State a partir de dados de manager.scielo.org em que o valor é name e não acronym.
A solução mais eficiente é tratar a entrada no modelo State no lugar de tratar nas chamadas State.create e State.get_or_create.

@robertatakenaka robertatakenaka merged commit 2b2791c into scieloorg:main Nov 9, 2024
3 checks passed
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.

1 participant