Add ArticleEditor model for storing peer review editors#1396
Draft
Add ArticleEditor model for storing peer review editors#1396
Conversation
Create ArticleEditor model to store editors responsible for peer review. Fields: name, orcid, role, institution (all nullable for semi-structured data). Includes ParentalKey to Article, InlinePanel, migration, and tests. Co-authored-by: robertatakenaka <505143+robertatakenaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Store responsible peer review editors in article model
Add ArticleEditor model for storing peer review editors
Mar 10, 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?
Adiciona o modelo
ArticleEditorpara armazenar os editores responsáveis pela revisão por pares de um artigo. Os dados são semi-estruturados, com campos para nome, ORCID, papel e instituição — todos nullable.Onde a revisão poderia começar?
article/models.py— classeArticleEditor(linha ~3193).Como este poderia ser testado manualmente?
makemigrations --checkpara confirmar que a migration está em syncpytest article/tests.py::ArticleEditorTest -vAlgum cenário de contexto que queira dar?
Modelo:
ArticleEditorcomParentalKey→Article(CASCADE,related_name="editors")nameorcid0000-0002-1825-0097roleeditor,academic-editor,section-editorinstitutionSegue os mesmos padrões de
ContribPerson:CommonControlField,CoreAdminModelForm, métodosget/create/create_or_update, índices emarticleeorcid.Arquivos alterados:
article/models.py— novo modelo + InlinePanel empanels_authorshiparticle/migrations/0048_articleeditor.py— migrationarticle/tests.py— 13 testes unitáriosScreenshots
N/A
Quais são tickets relevantes?
Referências
Padrão baseado em
ContribPersone demais modelos inline existentes no apparticle.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.