Feat: add prepare_request_data for ORCID API integration#1024
Merged
robertatakenaka merged 2 commits intoscieloorg:masterfrom Sep 1, 2025
Merged
Feat: add prepare_request_data for ORCID API integration#1024robertatakenaka merged 2 commits intoscieloorg:masterfrom
robertatakenaka merged 2 commits intoscieloorg:masterfrom
Conversation
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 funcionalidade para extrair e transformar dados de artigos XML (formato SciELO SPS) em payloads compatíveis com APIs externas, especificamente para integração com ORCID. A função
prepare_request_dataprocessa metadados de autores (ORCID, nome, email) e trabalhos acadêmicos (título, journal, DOI, datas de publicação) com validações rigorosas para garantir qualidade dos dados.Onde a revisão poderia começar?
Inicie pela leitura do arquivo
packtools/sps/utils/prepare_request_data.pyque contém a implementação principal com as classesAuthor,AuthorseWork. Em seguida, examinetest_prepare_request_data.pypara entender os casos de uso e validações implementadas.Como este poderia ser testado manualmente?
orcid_id,author_name,work_data,year,external-idAlgum cenário de contexto que queira dar?
NA
Screenshots
NA
Quais são tickets relevantes?
NA
Referências
orcid-profile-publication-service