-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
enhancementNew feature or requestNew feature or request
Description
NetBox version
v4.4.1
Feature type
Change to existing model
Proposed functionality
Summary
Improve naming clarity by renaming:
index→sequenceaction→rule_type(choices:permit,deny,remark)
Provide backward‑compatible aliases for one release cycle so existing API clients and integrations are not broken.
Data model & API
- Schema migration: rename database fields (
index→sequence,action→rule_type). - Serializers:
- Prefer
sequenceandrule_typein request/response payloads. - Accept
indexandactionas input aliases (mapped to the new names) for a deprecation window. - (Optional) Echo legacy names in responses behind a feature flag, or include deprecation warnings.
- Prefer
- Choices for
rule_type:permit,deny,remark(no behavior change; matches current semantics).
UI/UX
- Update field labels in forms, tables, and filters to Sequence and Rule type.
Migration plan
- Add the field renames with data migrations.
- Update serializers, and forms to use the new names.
- Document deprecation of
index/actionand plan removal after one release cycle.
Testing
- Backward‑compatibility tests: payloads using
index/actionare accepted and stored correctly. - Display tests: new labels appear in UI; filters and ordering by
sequencestill work.
Use case
- Reduces ambiguity for users and contributors (e.g., “sequence” is the common industry term; “action” conflates with the concept of a “remark,” which isn’t an action).
- Makes future extensions (additional rule types) clearer.
External dependencies
- None
alehaa
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request