-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
base: main
Are you sure you want to change the base?
Add faster build router #11952
Conversation
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.
# Check if the project has the faster builds feature enabled | ||
if project.has_feature(TYPE_FASTER_BUILDS): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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")), |
There was a problem hiding this comment.
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".
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.