Skip to content

Version: new field addons #10337

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

Merged
merged 3 commits into from
May 24, 2023
Merged

Version: new field addons #10337

merged 3 commits into from
May 24, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented 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

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 humitos requested a review from a team as a code owner May 23, 2023 07:23
@humitos humitos requested a review from stsewd May 23, 2023 07:23
- return only the field we need ("addons")
- only check for `version.addons` if the project doesn't have the feature
@humitos
Copy link
Member Author

humitos commented May 23, 2023

I'm missing a test here 😄 -- I will add it before merging it.

@humitos humitos requested a review from stsewd May 24, 2023 09:20
@humitos humitos merged commit c794ffa into main May 24, 2023
@humitos humitos deleted the humitos/version-addons branch May 24, 2023 15:06
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.

Addons: new field in Version model to know whether inject the addons js
2 participants