Popular campo raw_text em _add_institution_history com original_data#1277
Closed
Popular campo raw_text em _add_institution_history com original_data#1277
Conversation
Co-authored-by: robertatakenaka <505143+robertatakenaka@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update _add_institution_history to use original_data
Popular campo raw_text em _add_institution_history com original_data
Feb 5, 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?
Implementa a população do campo
raw_textnos modelos de histórico de instituições (OwnerHistory, PublisherHistory, SponsorHistory, CopyrightHolderHistory) usando o valor deoriginal_data.Onde a revisão poderia começar?
journal/models.py- método_add_institution_history(linha 1110-1111) onde o camporaw_texté populado.Como este poderia ser testado manualmente?
raw_textpreenchidoraw_textcorresponde aooriginal_datafornecidoAlgum cenário de contexto que queira dar?
O campo
raw_textfaz parte doRawOrganizationMixin(PR #1276) que preserva dados originais antes de processamento. Esta implementação:journal/models.py:
raw_textao método_add_institution_historyinstitution_history.raw_textcom fallback paraoriginal_dataquandoraw_textnão é fornecidoadd_publisher,add_owner,add_sponsor,add_copyright_holderjournal/sources/am_to_core.py:
update_panel_institution,get_or_create_sponsor,get_or_create_copyright_holder,create_location_and_add_institutions)raw_textem todas as chamadasBackward compatible -
raw_texté opcional (default=None).Screenshots
Não aplicável.
Quais são tickets relevantes?
Relacionado ao PR #1276 que adiciona RawOrganizationMixin aos modelos de histórico.
Referências
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.