-
Notifications
You must be signed in to change notification settings - Fork 516
feat: limit number of environments per project (#3875) #7236
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
| dependencies = [ | ||
| ("projects", "0028_add_enforce_feature_owners_to_project"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name="project", | ||
| name="max_environments_allowed", | ||
| field=models.IntegerField( | ||
| default=100, | ||
| help_text="Max environments allowed for this project", | ||
| ), | ||
| ), | ||
| ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,7 @@ class Meta: | |
| "edge_v2_migration_status", | ||
| "minimum_change_request_approvals", | ||
| "enforce_feature_owners", | ||
| "max_environments_allowed", | ||
| ) | ||
| read_only_fields = ( | ||
| "enable_dynamo_db", | ||
|
|
@@ -128,6 +129,7 @@ class Meta(ProjectListSerializer.Meta): | |
| "max_segments_allowed", | ||
| "max_features_allowed", | ||
| "max_segment_overrides_allowed", | ||
| "max_environments_allowed", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing admin panel field prevents limit grandfatheringHigh Severity The new Reviewed by Cursor Bugbot for commit ae138ad. Configure here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bugbot Autofix determined this is a false positive. This repository state has no This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard. |
||
| "total_features", | ||
| "total_segments", | ||
| ) | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.