uvicorn backend.app:APP --reload
More information can be found in the the developer docs, but below are some quick references to the deployment actions.
Deploys to: termhub.azurewebsites.net Is deployed via GitHub Action: .github/workflows/backend_prod.yml
- Can be deployed manually from GitHub: run workflow
- Is deployed automatically whenever the
main
branch is updated.
Deploys to: termhub-dev.azurewebsites.net Is deployed via GitHub Action: .github/workflows/backend_dev.yml
- Can be deployed manually from GitHub: run workflow
Database counts are both over time and also when comparing schemas in as a QC measure, and can be viewed here.
From 3bfa2d commit msg
- Moved to prevent circular imports:
- from
actions_api
toobjects_api
get_concept_set_set_version_expression_items
andget_concept_set_version_members
, and
- from
backend.app
tobackend.db.queries
get_concepts
- from
actions_api
can import fromobject_api
but not the other way around (and, btw, any module calledutils
should never import other app modules so it will be importable from anywhere, and nothing should ever import frombackend.app
)- Added a check for paginated results to enclave_get. Raises an error if
there are any. Probably should handle more gracefully. See Teams chat,
Siggie/Joe 2023-02-16:
- Joe: hmmm... maybe indeed. perhaps we should keep the name enclave_get and add pagination as needed built into it
- Siggie:
- That was my first thought, but handle_paginate returns a tuple of results and last response while enclave get just returns response. -- and there's error handling (that should maybe be centralized) in paginate as well as
make_objects_request()
, and probably other places. and lots of scattered code for unwrapping response (response.json()['data'], and often extracting ['properties'] from each record.) - So, I'm not sure how ambitious the refactor should be.
- If we do want to refactor and centralize all this, it might be nice to prohibit any other part of the code from importing requests or touching a Response object. Is that feasible?
- That was my first thought, but handle_paginate returns a tuple of results and last response while enclave get just returns response. -- and there's error handling (that should maybe be centralized) in paginate as well as