Fast API Endpoints Cache

Đang mở
#200 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
fastapi, python
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading the endpoint_route_handler module and trace how it discovers endpoints created in the data directory during installation. Reproduce the steps with a FastAPI module and check whether its routes and docs URL work before updating the custom module. Done means the endpoint is accessible immediately after installation without a module update.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Module

endpoint_route_handler

Describe the bug

when I try to create a new app with such an endpoint as root_path into data dir and some routes, it's required to update the module to be able to access
this endpoint

To Reproduce

Affected versions:

  • 16.0: yes
  • 18.0: no

Steps to reproduce the behavior:

  1. create a new module depending on fastapi with some routes
  2. create an endpoint in the data dir to be created during the installation
  3. try to access even the docs URL it'll not founded
  4. go to apps -> update your custom module
  5. try to access it again, it works fine now

Expected behavior
the newly created endpoint should work properly without the need to update the module

Additional context
Moved from @hassan510-cmd's issue https://github.com/OCA/rest-framework/issues/391 as requested:

Yes, is certainly coming from endpoint_route_handler. Can you open an issue on OCA/web-api specifying the affected versions?

Originally posted by @simahawk in #391

Ngôn ngữ chính
Python
Star
49
Fork
124
Merge trung bình
4 ngày 13 giờ
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OCA/web-api

Tất cả issue của OCA/web-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.