Skip to content

Conversation

jackwotherspoon
Copy link
Contributor

In latest version of sqlalchemy-pytds library #9145, the host param has become optional in the SQLAlchemy engine URL, our samples previously had a dummy value of localhost set to fulfill the required host param. Now that it is optional, we can remove localhost from the URL for simplicity and to avoid confusion.

@jackwotherspoon jackwotherspoon requested a review from a team February 21, 2023 16:12
@jackwotherspoon jackwotherspoon self-assigned this Feb 21, 2023
@jackwotherspoon jackwotherspoon requested a review from a team as a code owner February 21, 2023 16:12
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: cloudsql labels Feb 21, 2023
Copy link
Collaborator

@dandhlee dandhlee left a comment

Choose a reason for hiding this comment

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

Will the users know how to use host param if required?

@jackwotherspoon
Copy link
Contributor Author

@dandhlee

Will the users know how to use host param if required?

The users should never have the host needed or be required for the samples being updated here. The SQLAlchemy creator argument bypasses all URL params. It was only being set to localhost as a workaround to a bug in the underlying library.

@jackwotherspoon jackwotherspoon changed the title chore: update SQL Server samples to not require host param in URL chore: remove unused host from URL in SQL Server samples Feb 21, 2023
@jackwotherspoon jackwotherspoon added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 21, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 21, 2023
@jackwotherspoon jackwotherspoon merged commit 67c4076 into main Feb 21, 2023
@jackwotherspoon jackwotherspoon deleted the sql-server-samples branch February 21, 2023 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudsql samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants