Skip to content

6.3.0

Compare
Choose a tag to compare
@rra rra released this 20 Aug 21:58
· 85 commits to main since this release
6.3.0
1f77fd9

New features

  • safir.logging is now available as a separate PyPI package, safir-logging, so that it can be installed in environments where the full Safir dependency may be too heavy-weight or conflict with other packages. Packages that do depend on safir can and should ignore this change and continue to assume depending on safir will be sufficient to provide safir.logging.
  • Allow the database URL passed to DatabaseSessionDependency.initialize to be a Pydantic Url. This simplifies logic for applications that use EnvAsyncPostgresDsn or other Pydantic URL types for their configuration.
  • Allow the hook URL argument to safir.testing.slack.mock_slack_webhook to be a Pydantic SecretStr.

Bug fixes

  • safir.logging previously exported a logger_name variable holding the logger name configured via safir.logging.configure_logging. This variable was never documented and was not intended for use outside of the library. It is no longer exported, has been renamed, and is now private to the library.
  • Fix construction of an Availability object reporting problems with the UWS database layer to use the correct field names and data type for the model.

What's Changed

  • DM-45575: Restructure code to move it out of __init__.py files by @rra in #283
  • DM-45779: Allow a Url for database session initialization by @rra in #284
  • DM-45779: Allow mock_slack_webhook to take SecretStr by @rra in #285
  • DM-45794: Update to the current shared Ruff configuration by @rra in #286
  • DM-45818: Fix UWS Availability during errors by @rra in #287
  • DM-45824: Update to the latest Ruff by @rra in #289
  • DM-45824: Split safir.logging into a separate PyPI package by @rra in #288
  • DM-45824: Cap dependency on safir-logging by @rra in #290
  • DM-45824: Document logging in Safir UWS workers by @rra in #292
  • DM-45824: Prepare 6.3.0 release by @rra in #291
  • DM-45824: Fix release date for 6.3.0 by @rra in #293

Full Changelog: 6.2.0...6.3.0