Fast API Endpoints Cache

未关闭
#200 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
fastapi, python
领域
backend

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Python
星标
49
派生
124
平均合并
4 天 13 小时
30 天内合并 PR
11

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OCA/web-api 的其他 Issue

查看 OCA/web-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。