Skip to content

Make Gophercloud context-aware#2936

Merged
EmilienM merged 1 commit intogophercloud:masterfrom
shiftstack:ctx_everywhere
Feb 26, 2024
Merged

Make Gophercloud context-aware#2936
EmilienM merged 1 commit intogophercloud:masterfrom
shiftstack:ctx_everywhere

Conversation

@pierreprinetti
Copy link
Copy Markdown
Member

@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
Copy Markdown

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
Copy Markdown
Member Author

This should be good to go @gophercloud/core

Copy link
Copy Markdown
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
@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
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.

3 participants