Skip to content

Commit

Permalink
Closes #18071: Remvoe legacy staged changes functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Feb 20, 2025
1 parent 697610d commit 05daefc
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 619 deletions.
16 changes: 0 additions & 16 deletions docs/models/extras/branch.md

This file was deleted.

29 changes: 0 additions & 29 deletions docs/models/extras/stagedchange.md

This file was deleted.

39 changes: 0 additions & 39 deletions docs/plugins/development/staged-changes.md

This file was deleted.

3 changes: 0 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ nav:
- GraphQL API: 'plugins/development/graphql-api.md'
- Background Jobs: 'plugins/development/background-jobs.md'
- Dashboard Widgets: 'plugins/development/dashboard-widgets.md'
- Staged Changes: 'plugins/development/staged-changes.md'
- Exceptions: 'plugins/development/exceptions.md'
- Migrating to v4.0: 'plugins/development/migration-v4.md'
- Administration:
Expand Down Expand Up @@ -226,7 +225,6 @@ nav:
- VirtualDeviceContext: 'models/dcim/virtualdevicecontext.md'
- Extras:
- Bookmark: 'models/extras/bookmark.md'
- Branch: 'models/extras/branch.md'
- ConfigContext: 'models/extras/configcontext.md'
- ConfigTemplate: 'models/extras/configtemplate.md'
- CustomField: 'models/extras/customfield.md'
Expand All @@ -239,7 +237,6 @@ nav:
- Notification: 'models/extras/notification.md'
- NotificationGroup: 'models/extras/notificationgroup.md'
- SavedFilter: 'models/extras/savedfilter.md'
- StagedChange: 'models/extras/stagedchange.md'
- Subscription: 'models/extras/subscription.md'
- Tag: 'models/extras/tag.md'
- Webhook: 'models/extras/webhook.md'
Expand Down
17 changes: 0 additions & 17 deletions netbox/extras/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,23 +212,6 @@ class WebhookHttpMethodChoices(ChoiceSet):
)


#
# Staging
#

class ChangeActionChoices(ChoiceSet):

ACTION_CREATE = 'create'
ACTION_UPDATE = 'update'
ACTION_DELETE = 'delete'

CHOICES = (
(ACTION_CREATE, _('Create'), 'green'),
(ACTION_UPDATE, _('Update'), 'blue'),
(ACTION_DELETE, _('Delete'), 'red'),
)


#
# Dashboard widgets
#
Expand Down
27 changes: 27 additions & 0 deletions netbox/extras/migrations/0123_remove_staging.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 5.1.5 on 2025-02-20 19:46

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('extras', '0122_charfield_null_choices'),
]

operations = [
migrations.RemoveField(
model_name='stagedchange',
name='branch',
),
migrations.RemoveField(
model_name='stagedchange',
name='object_type',
),
migrations.DeleteModel(
name='Branch',
),
migrations.DeleteModel(
name='StagedChange',
),
]
1 change: 0 additions & 1 deletion netbox/extras/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
from .notifications import *
from .scripts import *
from .search import *
from .staging import *
from .tags import *
150 changes: 0 additions & 150 deletions netbox/extras/models/staging.py

This file was deleted.

Loading

0 comments on commit 05daefc

Please sign in to comment.