Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Investigate `fastapi-pagination` package for getting response without alias

Aberta
#276 0 comentários 0 reações 1 responsável Ver no GitHub

@JenySadadia já está trabalhando nisso.

Desde 20/6/2023.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

In case we use pagination for getting objects (e.g. nodes or regressions) from API, we need to manually serialize the response model to not have alias at the moment.
Please see the detailed issue here: https://github.com/kernelci/kernelci-api/issues/246

FastAPI provides response_model_by_alias flag and we can set it to False in the endpoint handler to fix this issue.
However, this won't work in the case of paginated response.
So, We have fixed this issue in API. PR for the reference: https://github.com/kernelci/kernelci-api/pull/254

Investigate if we can fix the fastapi-pagination package for it to eliminate the requirement to serialize the response manually.

Linguagem predominante
Python
Estrelas
10
Forks
22
Merge médio
22min
PRs com merge (30d)
1

Preparar o ambiente

  • Inclui um Dockerfile ou arquivo Docker Compose
  • Sem modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de kernelci/kernelci-api

Todas as issues de kernelci/kernelci-api

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.