Skip to content

Addons: improve db query when adding HTTP header from El Proxito #10461

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 1 commit into from
Jun 22, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented Jun 22, 2023

We don't need the Project instance. We were using to check for a Feature flag, but now we are only adding the header when the project is using build.commands.

If we ever require the Project instance again, we can do a .select_related from the Version object. That way, we still keep doing 1 query only.

Closes #10458
Related #10456

We don't need the `Project` instance. We were using to check for a Feature flag,
but now we are only adding the header when the project is using
`build.commands`.

If we ever require the `Project` instance again, we can do a `.select_related`
from the `Version` object. That way, we still keep doing 1 query only.

Closes #10458
Related #10456
@humitos humitos requested a review from stsewd June 22, 2023 09:04
@humitos humitos requested a review from a team as a code owner June 22, 2023 09:04
@humitos humitos merged commit 7f643d9 into main Jun 22, 2023
@humitos humitos deleted the humitos/el-proxito-addons-query branch June 22, 2023 16:37
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