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

Add faster build router #11952

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add faster build router #11952

wants to merge 1 commit into from

Conversation

ericholscher
Copy link
Member

This adds a build router that routes to build:large based on product feature.
This is for Pro users on the Business site first,
but could also be applied to Gold users on Community if we can make that pencil reasonably.

This adds a build router that routes to build:large based on product feature.
This is for Pro users on the Business site first,
but could also be applied to Gold users on Community if we can make that pencil reasonably.
@ericholscher ericholscher requested a review from a team as a code owner January 24, 2025 22:23
@ericholscher ericholscher requested a review from stsewd January 24, 2025 22:23
Comment on lines +130 to +131
# Check if the project has the faster builds feature enabled
if project.has_feature(TYPE_FASTER_BUILDS):
Copy link
Member

Choose a reason for hiding this comment

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

has_feature refers to feature flags, not to constants from subscriptions.

Copy link
Member Author

Choose a reason for hiding this comment

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

I fixed this locally, but somehow lost the change 🙃

@@ -20,6 +20,7 @@
TYPE_AUDIT_PAGEVIEWS = "audit-pageviews"
TYPE_REDIRECTS_LIMIT = "redirects-limit"
TYPE_SSO_SAML = "sso-saml"
TYPE_FASTER_BUILDS = "faster_builds"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
TYPE_FASTER_BUILDS = "faster_builds"
TYPE_FASTER_BUILDS = "faster-builds"

Looks like we are using hyphens for new variables

@@ -37,4 +38,5 @@
(TYPE_AUDIT_LOGS, _("Audit logs")),
(TYPE_AUDIT_PAGEVIEWS, _("Audit logs for every page view")),
(TYPE_REDIRECTS_LIMIT, _("Redirects limit")),
(TYPE_FASTER_BUILDS, _("Faster builds")),
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we want a better name for this or a more granular description when listing this item in the UI about what it exactly it offers, "how much faster".

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