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

Proxito: inject hosting integration header for build.commands #10219

Merged
merged 3 commits into from
Apr 17, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented Apr 3, 2023

Versions using build.commands will start using the new Read the Docs JavaScript client.

This is still under beta testing, but we want to move forward slowly and start exposing these features to projects that don't have access currently.

Related readthedocs/addons#26

Versions using `build.commands` will start using the new Read the Docs
JavaScript client.

This is still under beta testing, but we want to move forward slowly and start
exposing these features to projects that don't have access currently.

Related readthedocs/addons#26
@humitos humitos requested a review from a team as a code owner April 3, 2023 18:50
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

This is a quite a simple integration! 👍

@humitos humitos added the Status: blocked Issue is blocked on another issue label Apr 11, 2023
@humitos
Copy link
Member Author

humitos commented Apr 11, 2023

I'm marking this PR as blocked for now until we have everything in place. We are pretty close, but we want to merge other PRs first, I guess.

@humitos humitos removed the Status: blocked Issue is blocked on another issue label Apr 17, 2023
@humitos humitos enabled auto-merge (squash) April 17, 2023 11:07
@humitos humitos merged commit 27215d2 into main Apr 17, 2023
@humitos humitos deleted the humitos/inject-integrations-build-commands branch April 17, 2023 11:44
ericholscher added a commit that referenced this pull request Apr 19, 2023
ericholscher added a commit that referenced this pull request Apr 19, 2023
ericholscher added a commit that referenced this pull request Apr 19, 2023
stsewd pushed a commit that referenced this pull request Apr 19, 2023
humitos added a commit that referenced this pull request May 23, 2023
This `addons` field will be used to tell El Proxito this version was built using
`build.commands`. Then, El Proxito will use this field to inject the HTTP header
that tells Cloudflare that it should inject the new JS client.

This commit is a replacement of
#10219 to avoid the
time-consuming query that checks the config file of the latest build for the
version.

Closes #10331
humitos added a commit that referenced this pull request May 24, 2023
* Version: new field `addons`

This `addons` field will be used to tell El Proxito this version was built using
`build.commands`. Then, El Proxito will use this field to inject the HTTP header
that tells Cloudflare that it should inject the new JS client.

This commit is a replacement of
#10219 to avoid the
time-consuming query that checks the config file of the latest build for the
version.

Closes #10331

* Proxito: improve query

- return only the field we need ("addons")
- only check for `version.addons` if the project doesn't have the feature

* Tests: add test for El Proxito header
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.

2 participants