You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ansible_base/feature_flags/migrations/0001_initial.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Generated by Django 4.2.17 on 2025-03-26 17:52
1
+
# Generated by Django 4.2.17 on 2025-04-08 14:36
2
2
3
3
importansible_base.feature_flags.models.aap_flag
4
4
fromdjango.confimportsettings
@@ -22,13 +22,15 @@ class Migration(migrations.Migration):
22
22
('modified', models.DateTimeField(auto_now=True, help_text='The date/time this resource was created.')),
23
23
('created', models.DateTimeField(auto_now_add=True, help_text='The date/time this resource was created.')),
24
24
('name', models.CharField(help_text='The name of the feature flag. Must follow the format of FEATURE_<flag-name>_ENABLED.', max_length=64, validators=[ansible_base.feature_flags.models.aap_flag.validate_feature_flag_name])),
25
+
('ui_name', models.CharField(help_text='The pretty name to display in the application User Interface', max_length=64)),
25
26
('condition', models.CharField(default='boolean', help_text='Used to specify a condition, which if met, will enable the feature flag.', max_length=64)),
26
27
('value', models.CharField(default='True', help_text='The value used to evaluate the conditional specified.', max_length=127)),
27
28
('required', models.BooleanField(default=False, help_text="If multiple conditions are required to be met to enable a feature flag, 'required' can be used to specify the necessary conditionals.")),
28
29
('support_level', models.CharField(choices=[('NOT_FOR_USE', 'Not for use'), ('NOT_FOR_PRODUCTION', 'Not for production'), ('READY_FOR_PRODUCTION', 'Ready for production')], help_text='The support criteria for the feature flag. Must be one of (NOT_FOR_USE, NOT_FOR_PRODUCTION, READY_FOR_PRODUCTION).', max_length=25)),
29
30
('visibility', models.CharField(choices=[('public', 'public'), ('private', 'private')], help_text='The visibility level of the feature flag. If private, flag is hidden.', max_length=20)),
30
31
('toggle_type', models.CharField(choices=[('install-time', 'install-time'), ('run-time', 'run-time')], default='run-time', help_text="Details whether a flag is toggle-able at run-time or install-time. (Default: 'run-time').", max_length=20)),
31
-
('description', models.CharField(default='', help_text='A detailed description giving an overview of the feature flag.', max_length=300)),
32
+
('description', models.CharField(default='', help_text='A detailed description giving an overview of the feature flag.', max_length=500)),
33
+
('support_url', models.CharField(blank=True, default='', help_text='A link to the documentation support URL for the feature', max_length=250)),
32
34
('labels', models.JSONField(blank=True, default=list, help_text='A list of labels for the feature flag.', null=True)),
33
35
('created_by', models.ForeignKey(default=None, editable=False, help_text='The user who created this resource.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(app_label)s_%(class)s_created+', to=settings.AUTH_USER_MODEL)),
34
36
('modified_by', models.ForeignKey(default=None, editable=False, help_text='The user who last modified this resource.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(app_label)s_%(class)s_modified+', to=settings.AUTH_USER_MODEL)),
0 commit comments