Skip to content

Make setting preview header conditional - #1382

Closed
mpoindexter wants to merge 1 commit into
integrations:mainfrom
mpoindexter:fix-preview-header
Closed

mpoindexter wants to merge 1 commit into
integrations:mainfrom
mpoindexter:fix-preview-header

Conversation

@mpoindexter

@mpoindexter mpoindexter commented Nov 22, 2022 •

Copy link
Copy Markdown

Resolves #1373


Behavior

Before the change?

  • Accept header was unconditionally set to a preview version for all resources

After the change?

  • Accept header is set to a preview version only where required

Other information


Additional info

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Added the appropriate label for the given change

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes (Please add the Type: Breaking change label)
  • No

If Yes, what's the impact:

  • N/A

Pull request type

Type: Bug

@elliottpope

Copy link
Copy Markdown
Contributor

@mpoindexter the Accept header allows you to provide a comma-separated list of values so we can just append the Stone Crop preview header to the list (see my implementation here #1384). There was just a bug in the implementation for previewHeaderInjectionTransport.

This issue would have been caught by testing but the GitHub Action on PRs uses make test which doesn't do anything instead of make testacc. This should probably be updated

@kfcampbell

Copy link
Copy Markdown
Contributor

Closing as #1384 has been merged.

@elliottpope I completely agree regarding the integration tests; I've been running them manually where relevant before merging PRs which is not sustainable. Hopefully we can find the time budget to fix that situation soon.

@kfcampbell kfcampbell closed this Nov 28, 2022
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.

[BUG]: github_team_repository error with version 5.9.0 - fails with at least one permission expected from permissions map

4 participants