planetary-computer-apis/pcfuncs/animation
Matt McFarland b4912be57c
Fix middleware runtime error and release prep fixes (#130)
* Temporarily use fork for starlette 0.21 release

The 0.21 release resolves a frequent error on our fastapi version.

See:
https://github.com/encode/starlette/pull/1710
https://github.com/encode/starlette/pull/1715

* Disable FTP as function app deploy option

Security controls

* Trace request attributes before invoking middleware

If an exception is raised in subsequent middlewares, added trace
attributes will still be logged to Azure. This allows us to find
requests that fail in the logs.

* Make config cache thread safe

cachetools cache is not thread safe and there were frequent exceptions
logged indicating that cache updates during async calls were failing
with key errors similar to those described in:

https://github.com/tkem/cachetools/issues/80

Add a lock per table instance synchronizes cache updates across threads
in.

* Lint

* Changelog
2022-10-25 10:44:07 -04:00
..
__init__.py Add logo to image export endpoint in pcfuncs (#122) 2022-09-30 15:17:13 -04:00
animation.py Fix middleware runtime error and release prep fixes (#130) 2022-10-25 10:44:07 -04:00
constants.py Add Azure Functions for creating images and animations (#115) 2022-08-16 12:02:09 -04:00
function.json Add Azure Functions for creating images and animations (#115) 2022-08-16 12:02:09 -04:00
models.py Add logo to image export endpoint in pcfuncs (#122) 2022-09-30 15:17:13 -04:00
settings.py Add logo to image export endpoint in pcfuncs (#122) 2022-09-30 15:17:13 -04:00
utils.py Timelapse animation enhancements (#119) 2022-09-21 20:53:49 -04:00