-
Couldn't load subscription status.
- Fork 4
Preparations for release #165
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR prepares the release by removing deprecated certificate/tls hacks, updating the API URL, and renaming the client to DispatchApiClient.
- Removed custom certificate options from SslOptions in the dispatch client
- Updated default server URLs in _client.py and main.py
- Revised examples and documentation in the README and RELEASE_NOTES for clarity and consistency
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/frequenz/client/dispatch/_client.py | Removed certificate parameters and updated the API URL |
| src/frequenz/client/dispatch/main.py | Updated the default dispatch API URL |
| RELEASE_NOTES.md | Clarified the description for end_time handling issue |
| README.md | Updated client name, server URL, and documentation link |
Comments suppressed due to low confidence (2)
README.md:42
- [nitpick] The documentation link anchor 'ApiDispatchClient' does not match the updated client name 'DispatchApiClient'; please verify that the anchor accurately reflects the intended naming.
For detailed usage and advanced features, check out the [client documentation](https://frequenz-floss.github.io/frequenz-client-dispatch-python/latest/reference/frequenz/client/dispatch/#frequenz.client.dispatch.ApiDispatchClient).
src/frequenz/client/dispatch/_client.py:78
- Ensure that the removal of the certificate loading does not compromise TLS verification; if relying solely on 'enabled=True', verify that the underlying TLS library provides the necessary certificate validation.
ssl=SslOptions(enabled=True),
| ## Bug Fixes | ||
|
|
||
| * `end_time` was not correctly handling the `None` value when converted from protobuf to pythons `Dispatch` class. | ||
| * Fix that a user might see invalid values for dispatches without `end_time`. It was not correctly handling the `None` value when converted from protobuf to pythons `Dispatch` class. |
Copilot
AI
May 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] There's a typo in 'pythons'; consider updating to 'Python's' for clarity.
| * Fix that a user might see invalid values for dispatches without `end_time`. It was not correctly handling the `None` value when converted from protobuf to pythons `Dispatch` class. | |
| * Fix that a user might see invalid values for dispatches without `end_time`. It was not correctly handling the `None` value when converted from protobuf to Python's `Dispatch` class. |
15fdc03 to
511e644
Compare
As we decided to do a hard-switch rather than a smooth one, we are removing all hacks and set it up to work only with the official domain & certificate now. Signed-off-by: Mathias L. Baumann <[email protected]>
Signed-off-by: Mathias L. Baumann <[email protected]>
Signed-off-by: Mathias L. Baumann <[email protected]>
511e644 to
3af7b9f
Compare
DispatchApiClient