Investigate `fastapi-pagination` package for getting response without alias
@JenySadadia đang làm issue này rồi.
Từ ngày 20/6/2023.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 10
- Fork
- 21
- Merge trung bình
- 22 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kernelci/kernelci-api
-
Optimize node collection indexesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
kernelci/kernelci-api#706 ·
-
Components/Maestro/API/Local instance says GET /latest/ should return some JSON, but it doesn'tCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởdocumentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
kernelci/kernelci-api#632 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
kernelci/kernelci-api#629 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
kernelci/kernelci-api#608 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
kernelci/kernelci-api#597 · 2 bình luận ·
Tất cả issue của kernelci/kernelci-api
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
UKGovernmentBEIS/inspect_ai#5781 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Bump .cicd to wamp-cicd 4c2f9ac: `just land` refuses open A18 decisions, `just where` lists themĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
crossbario/cfxdb#139 ·
-
Bump .cicd to wamp-cicd 4c2f9ac: `just land` refuses open A18 decisions, `just where` lists themĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
crossbario/txaio#241 ·
-
UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
mediajunkie/piper-morgan-product#1963 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100