Repository navigation
feat(write): add researcher, invited researcher term, journal and research paper tools - #16
Merged
Merged
Conversation
…earch paper tools New write tools for the Invited Researchers models added in basedosdados/backend#1106: - create_update_researcher (translated position/description, multiple affiliations, PhD institution, links, themes, optional account) - create_update_invited_researcher_term (cohort label like 2027.1; end date defaults to start + 2 years on the backend) - create_update_journal - create_update_research_paper (researchers, datasets, journal, status, DOI) lookup_id now also accepts "researcher" and "journal".
O CI do repo nunca rodou. `astral-sh/setup-uv@v9` não resolve — a action
publica tags flutuantes de major só até `v7`; de `v8` em diante existem apenas
as tags exatas (`v9.0.0`, `v10.2.0`, …). O job morre no `Set up job`, antes de
qualquer passo:
Unable to resolve action `astral-sh/setup-uv@v9`, unable to find version `v9`
Não é consequência deste PR: o run do `main` em 15a18fc falha do mesmo jeito.
Vai junto aqui porque, sem isso, nenhum PR do repo consegue ficar verde.
Fixa em `v9.0.0`, a versão exata do major que o #7 escolheu — em vez de subir
para `v10.2.0`, que seria um bump de major sem revisão.
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.
Summary
Write tools for the Invited Researchers models added in basedosdados/backend#1106 (deployed to staging and production):
create_update_researcher: name, position and description (pt/en/es), multiple affiliations (affiliation_ids), PhD institution and year, public email, website, LinkedIn, Google Scholar, Lattes, ORCID, themes, and an optional Data Basis account.create_update_invited_researcher_term: researcher, cohort label (2027.1), start and end dates. The end date defaults to start + 2 years on the backend.create_update_journal: name, abbreviation, ISSN/E-ISSN, publisher, website.create_update_research_paper: title, author string, researchers, datasets (shown in the dataset page's Research Papers tab), journal, publication status, year/volume/issue/pages, DOI, URL, Google Scholar, abstract.lookup_idnow also acceptsresearcherandjournal. The README tool table is updated.Updates send only the fields passed. The backend keeps fields left out of a mutation, so a partial update does not clear existing values.
Test plan
ruff check,ruff format --checkandpyrefly checkpass.