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

Fix connection string handling when individual components are provided via settings #16680

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

desertaxle
Copy link
Member

In some cases, the connection URL is set to a plain string instead of a SecretStr, which causes serialization to fail when serializing to a JSON-compatible form. This fixes that.

Closes #16657

@github-actions github-actions bot added the bug Something isn't working label Jan 10, 2025
@@ -417,7 +413,7 @@ def _default_database_connection_url(settings: "Settings") -> SecretStr:

from sqlalchemy import URL

return URL(
value = URL(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This right here is the fix

Copy link

codspeed-hq bot commented Jan 10, 2025

CodSpeed Performance Report

Merging #16680 will not alter performance

Comparing fix-startup-error-on-indv-database-url-components (26c16c8) with main (a5d28ac)

Summary

✅ 2 untouched benchmarks

@desertaxle desertaxle merged commit 11d32be into main Jan 10, 2025
45 checks passed
@desertaxle desertaxle deleted the fix-startup-error-on-indv-database-url-components branch January 10, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Starting a Prefect server with a very basic configuration does not work anymore
2 participants