Releases: mdconaway/fastapi-cruddy-framework
Releases · mdconaway/fastapi-cruddy-framework
Release: 1.10.1
- Fix README
- Shim openapi json 'where' to be compatible with https://github.com/OpenAPITools
Release 1.10.0
- Update sqlmodel to 0.0.21
- Update internal functions to handle native UUIDs
Release 1.9.2
- Relax
Repository
return types to allow user space typing
Release 1.9.1
- Upgrade base sqlmodel version to 0.0.19
Release 1.9.0
- Adds support for polymorphic relationships, which do not have directly associated foreign keys.
Release 1.8.0
- Adds new exception
CruddyNoMatchingRowException
- Raises
CruddyNoMatchingRowException
whenever a CRUD operation that looks completely valid based on model validation unexpectedly fails on the database side of the transaction. This is typically due to row-level access control policies implemented in languages likeplpgsql
. - Added example function to the example sever which adds a global funnel to catch all
CruddyNoMatchingRowException
s and return a 404.
Release 1.7.2
- Removes
TaskGroup
usage throughout the library. - Updates all
AbstractRepository
functions to only ever claim 1 DB session at a time. This prevents session deadlock under massive load.
Release 1.7.1
- Adds a fix to pass the async
session
object to the new DB session hooks in addition to therequest
context.
Release 1.7.0
- Adds
session_setup
andsession_teardown
hooks to all primary DB adapters that allow all CRUD actions to propagate user information all the way to the DB level to enable role-based (and row based!) access control. The session hooks will gain access to the request context of the calling user, allowing app developers to grab requeststate
orsession
values and pass them all the way to a DB like MySQL or Postgres. - Adds greater scrutiny to allowed filter columns in the
where
query forge. Only columns listed as a part ofview
model (response schema) are allowed to be used as filters.
Release 1.6.0
- Adds
CruddyHTTPBearer
class to enableHTTPBearer
auth on Websockets AND Requests - Updates
get_state
andset_state
to acceptHTTPConnection
(Now supportsRequest
,Websocket
andHTTPConnection
)