Fastapi conversion#2071
Conversation
There was a problem hiding this comment.
Removing jupyter and local datadog reference
There was a problem hiding this comment.
Removing jupyter and local datadog reference
There was a problem hiding this comment.
Fastapi uses uvicorn
There was a problem hiding this comment.
Convenient command runner
There was a problem hiding this comment.
Switch from pip building to uv.
!! Needs further verification
There was a problem hiding this comment.
Not using MongoEngine.
!! Still need to implement unit checks, but will be outside of this scope
There was a problem hiding this comment.
Upgrade python to 3.14; move to uv, ruff, and basedpyright; removed outdated/unnecessary packages
There was a problem hiding this comment.
the base stack is still at python 3.11
There was a problem hiding this comment.
Yeah, I have a note in the Dockerfile about requiring a 3.14 image build - I assumed it would be a good time to bump our python version and use up to date package versions.
Do you think this should be in the scope of the rewrite?
…ck that the user can modify/insert contributions only under their projects
… tests to reflect new healthcheck shape
…d return a deprecation response on ones with no modern equivalent
…ng a non-existent location
…verwrite the requested fields and add in null values for the non-requested fields
…from the number of documents sharing (project, identifier) in projects where unique_identifiers=False, otherwise version === 1
Summary
Start of major rewrite of the API server to FastAPI and other modern frameworks (pydantic, Beanie, etc.)
This PR is the essential groundwork of the rewrite. However, further PRs are necessary for full functionality.
Major TODOs after this PR
Minor TODOs after this PR: