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: raise warnings for the ImagesClient.get_by_name deprecation #376

Merged
merged 1 commit into from Apr 2, 2024

Conversation

jooola
Copy link
Member

@jooola jooola commented Apr 2, 2024

Add missing warning and sphinx deprecation notice on an already deprecated method.

@jooola jooola requested a review from apricote April 2, 2024 12:41
@jooola jooola changed the title fix: warn for the ImagesClient.get_by_name method deprecation fix: raise warnings about the ImagesClient.get_by_name deprecation Apr 2, 2024
Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.85%. Comparing base (2e9c5fc) to head (4e87d09).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #376   +/-   ##
=======================================
  Coverage   92.84%   92.85%           
=======================================
  Files          65       65           
  Lines        2881     2883    +2     
=======================================
+ Hits         2675     2677    +2     
  Misses        206      206           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@apricote
Copy link
Member

apricote commented Apr 2, 2024

Should we add some docs fors devs for deprecating methods?

@jooola
Copy link
Member Author

jooola commented Apr 2, 2024

Should we add some docs fors devs for deprecating methods?

Yup, I can do that in a later PR.

@jooola jooola changed the title fix: raise warnings about the ImagesClient.get_by_name deprecation fix: raise warnings for the ImagesClient.get_by_name deprecation Apr 2, 2024
@jooola jooola merged commit b24de80 into hetznercloud:main Apr 2, 2024
10 checks passed
@jooola jooola deleted the deprecation-with-warnings branch April 2, 2024 14:31
jooola pushed a commit that referenced this pull request Apr 2, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.35.0](v1.34.0...v1.35.0)
(2024-04-02)


### Features

* add `include_deprecated` option when fetching images by name
([#375](#375))
([6d86f86](6d86f86))


### Bug Fixes

* raise warnings for the `ImagesClient.get_by_name` deprecation
([#376](#376))
([b24de80](b24de80))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

None yet

2 participants