Centralizar constantes y choices de dominio en core/choices.py#53
Draft
Centralizar constantes y choices de dominio en core/choices.py#53
Conversation
Co-authored-by: robertatakenaka <505143+robertatakenaka@users.noreply.github.com> Agent-Logs-Url: https://github.com/scieloorg/markapi/sessions/3955e5ce-dc7d-409e-9dfc-312d46c615f1
Copilot
AI
changed the title
[WIP] Centralize domain constants and choices in core/choices.py
Centralizar constantes y choices de dominio en core/choices.py
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
O que esse PR faz?
Cria
core/choices.pycom as constantes de domínio centralizadas (LANGUAGE,ROLE,MONTHS,LICENSE_TYPES,GENDER_CHOICES), alinhado com o padrão já utilizado emscieloorg/coreescieloorg/markup.LANGUAGE: 182 códigos ISO 639-1ROLE,MONTHS,LICENSE_TYPES,GENDER_CHOICES: labels comgettext_lazypara i18nLICENSE_TYPES: 6 tipos Creative Commons (by, by-sa, by-nc, by-nc-sa, by-nd, by-nc-nd)Onde a revisão poderia começar?
core/choices.pyComo este poderia ser testado manualmente?
Testes unitários em
core/tests.pyvalidam estrutura, conteúdo e uso de lazy strings.Algum cenário de contexto que queira dar?
O arquivo segue exatamente o mesmo conteúdo e formato de
core/choices.pynos repositóriosscieloorg/coreescieloorg/markup, mantendo consistência entre os microsserviços da organização.Screenshots
N/A
Quais são tickets relevantes?
N/A
Referências
scieloorg/core— core/choices.pyscieloorg/markup— core/choices.pyOriginal prompt
core/choices.py#49📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.