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

Make Gophercloud context-aware #2936

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

pierreprinetti
Copy link
Contributor

@pierreprinetti pierreprinetti commented Feb 21, 2024

With this change, all functions and methods that trigger an HTTP call
now accept an instance of context.Context as their first argument.

This breaking change enables cancellation and tracing to be used across
all packages of the library.

Co-Authored-By: @majewsky
Co-Authored-By: @pierreprinetti

@github-actions github-actions bot added the semver:major Breaking change label Feb 21, 2024
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 21, 2024
@pierreprinetti pierreprinetti force-pushed the ctx_everywhere branch 2 times, most recently from 877427d to dcf4ee2 Compare February 21, 2024 13:49
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 21, 2024
@pierreprinetti pierreprinetti force-pushed the ctx_everywhere branch 3 times, most recently from 76d791d to 63d184f Compare February 21, 2024 14:56
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 21, 2024
@pierreprinetti pierreprinetti requested a review from a team February 21, 2024 15:37
@pierreprinetti pierreprinetti marked this pull request as ready for review February 21, 2024 15:42
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 21, 2024
@coveralls
Copy link

coveralls commented Feb 21, 2024

Coverage Status

coverage: 77.277% (+0.03%) from 77.245%
when pulling 1b7c1ce on shiftstack:ctx_everywhere
into 729c1b8 on gophercloud:master.

@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 23, 2024
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 24, 2024
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 24, 2024
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 24, 2024
@pierreprinetti pierreprinetti marked this pull request as ready for review February 24, 2024 15:44
With this change, all functions and methods that trigger an HTTP call
now accept an instance of `context.Context` as their first argument.

This breaking change enables cancellation and tracing to be used across
all packages of the library.

Co-Authored-By: Stefan Majewsky <stefan.majewsky@sap.com>
Co-Authored-By: Pierre Prinetti <pierreprinetti@redhat.com>
@github-actions github-actions bot added semver:major Breaking change and removed semver:major Breaking change labels Feb 24, 2024
@pierreprinetti
Copy link
Contributor Author

This should be good to go @gophercloud/core

Copy link
Contributor

@EmilienM EmilienM left a comment

Choose a reason for hiding this comment

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

Nice work, let's ship it now and if something was missed we can fix it on the go.

@EmilienM EmilienM merged commit a894551 into gophercloud:master Feb 26, 2024
130 of 145 checks passed
@EmilienM EmilienM deleted the ctx_everywhere branch February 26, 2024 16:40
mandre added a commit to shiftstack/gophercloud that referenced this pull request Mar 10, 2024
A follow-up to gophercloud#2936 that
missed part of the
`internal/acceptance/openstack/networking/v2/extensions/fwaas_v2/groups_test.go`
file.

Fixes gophercloud#2981
mandre added a commit to shiftstack/gophercloud that referenced this pull request Mar 11, 2024
A follow-up to gophercloud#2936 that
missed part of the
`internal/acceptance/openstack/networking/v2/extensions/fwaas_v2/groups_test.go`
file.

Fixes gophercloud#2981
mandre added a commit to shiftstack/gophercloud that referenced this pull request Mar 13, 2024
A follow-up to gophercloud#2936 that
missed part of the
`internal/acceptance/openstack/networking/v2/extensions/fwaas_v2/groups_test.go`
file.

Fixes gophercloud#2981
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:major Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants