-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closes #20304: Object owners #20634
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
Merged
Merged
Closes #20304: Object owners #20634
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
8fd88b3
Introduce the Owner model
jeremystretch 27ddccb
Add owner fields to applicable models
jeremystretch a2f8ddc
Introduce PrimaryModelSerializer & OrganizationalModelSerializer; add…
jeremystretch 789139b
Add 'owner' field to bulk operation forms
jeremystretch 800cf5c
Add owner filters
jeremystretch a4d52b4
NestedGroupModel should inherit from NetBoxModel
jeremystretch 7d0f68c
Update GraphQL types to support owner assignment
jeremystretch 6f1a845
Add missing filters
jeremystretch 6746913
ComponentType should inherit from PrimaryObjectType
jeremystretch 3a212cc
Misc fixes
jeremystretch 1fdfff6
Split base form classes into separate modules under netbox.forms
jeremystretch e2163b9
Add owner field to all applicable model forms
jeremystretch ab092f2
Add owner field to all applicable bulk edit forms
jeremystretch a848d3b
Add owner field to all applicable bulk import forms
jeremystretch cd485a5
Add owner field to all applicable filterset forms
jeremystretch 4dda968
Update forms for device & VM components
jeremystretch c3144dd
Fix base form classes
jeremystretch dd6c985
Rename bulk import form base classes
jeremystretch 165c3f5
Fix device/VM component type definitions
jeremystretch 912d2af
Correct filterset definitions
jeremystretch dbce384
Add base class tests for forms, filtersets, serializers, and GraphQL …
jeremystretch 2f23bdc
Correct device/VM component filterset definitions
jeremystretch 2477579
Correct device/VM component GraphQL type definitions
jeremystretch a4b8862
Add owner to base object template
jeremystretch 77117a2
Show related objects under owner view
jeremystretch 57daa9f
Fix owner filter form field
jeremystretch 59082d0
Introduce base table classes with an 'owner' column for primary, orga…
jeremystretch 9cbda4d
Fix owner filter
jeremystretch d154bac
Move owners under admin in nav menu
jeremystretch b9cc93a
Misc cleanup
jeremystretch 3ca2a18
Introduce AdminModel base class to provide enhanced UI functionality …
jeremystretch 1a6ea31
Introduce OwnerGroup model
jeremystretch 3a7b4ac
Add documentation for owners & owner groups
jeremystretch c858d2a
Add tests for Owner & OwnerGroup
jeremystretch ef22251
Add "add owner" button to owner group detail view
jeremystretch f5da362
Add owners count to OwnerGroup list
jeremystretch c42e382
Make user_groups and users DynamicModelMultipleChoiceFields on OwnerForm
jeremystretch b9576ed
Misc cleanup
jeremystretch fc9a863
Add owner field to VirtualChassisCreateForm
jeremystretch ba03705
Merge branch 'feature' into 20304-object-owners
jeremystretch ee192e2
Reindex migrations
jeremystretch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Resource Ownership | ||
|
|
||
| !!! info "This feature was introduced in NetBox v4.5." | ||
|
|
||
| Most objects in NetBox can be assigned an owner. An owner is a set of users and/or groups who are responsible for the administration of associated objects. For example, you might designate the operations team at a site as the owner for all prefixes and VLANs deployed at that site. The users and groups assigned to an owner are referred to as its members. | ||
|
|
||
| !!! note | ||
| Ownership of an object should not be confused with the concept of [tenancy](./tenancy.md), which indicates the dedication of an object to a specific tenant. For instance, a tenant might represent a customer served by the object, whereas an owner typically represents a set of internal users responsible for the management of the object. | ||
|
|
||
| Owners can be organized into groups for easier management. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Owner | ||
|
|
||
| An owner is a set of users and/or groups who are responsible for the administration of certain resources within NetBox. The users and groups assigned to an owner are referred to as its members. Owner assignments are useful for indicating which parties are responsible for the administration of a particular object. | ||
|
|
||
| Most objects within NetBox can be assigned an owner, although this is not required. | ||
|
|
||
| ## Fields | ||
|
|
||
| ### Name | ||
|
|
||
| The owner's name. | ||
|
|
||
| ### Group | ||
|
|
||
| The [group](./ownergroup.md) to which the owner is assigned. The assignment of an owner to a group is optional. | ||
|
|
||
| ### User Groups | ||
|
|
||
| Groups of users that are members of the owner. | ||
|
|
||
| ### Users | ||
|
|
||
| Individual users that are members of the owner. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Owner Groups | ||
|
|
||
| Groups are used to correlate and organize [owners](./owner.md). The assignment of an owner to a group has no bearing on the relationship of owned objects to their owners. | ||
|
|
||
| ## Fields | ||
|
|
||
| ### Name | ||
|
|
||
| The name of the group. | ||
jeremystretch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.