Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-45281: Convert to the Safir UWS library #218

Merged
merged 11 commits into from
Aug 2, 2024
Merged

DM-45281: Convert to the Safir UWS library #218

merged 11 commits into from
Aug 2, 2024

Conversation

rra
Copy link
Member

@rra rra commented Jul 24, 2024

Now that the UWS support library has been incorporated into Safir, switch to using the Safir version, including the new testing framework.

Now that the UWS support library has been incorporated into Safir,
switch to using the Safir version, including the new testing
framework.
@rra rra marked this pull request as draft July 24, 2024 01:26
rra added 10 commits July 26, 2024 11:04
We use the middleware that lowercases all query keys, so there's
no need to explicitly do so in the dependency.
Configuring logging for the backend worker requires safir.logging
be installed, which we cannot guarantee is present in the backend
stack container. Remove the configuration for now pending a
discussion about the best way to handle logging from arq.
Remove the standard UWS settings from Config in favor of inheriting
from UWSAppSettings. Use its build_uws_config method to construct the
UWS configuration.
Rather than manually installing the case-insensitive middleware,
use the new UWSApplication method to install all needed middleware.
Switch to a different ticket branch in Safir where the UWS library
support is awaiting final approval.
The backend uses structlog for logging and that is alas not part of
a stack container, so we have to install it with pip.
The remote Butler requires httpx, but it's not part of the pipelines
base container.
In preparation for the new Safir release, start testing from the
main branch instead of a ticket branch.
Safir 6.2.0 has been released with UWS library support. Update and
regenerate dependencies accordingly.
@rra rra marked this pull request as ready for review August 2, 2024 19:12
@rra rra merged commit 73f7e92 into main Aug 2, 2024
3 checks passed
@rra rra deleted the tickets/DM-45281 branch August 2, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant