Commit Graph

14400 Commits

Author SHA1 Message Date
Jeremy Stretch
b9576ed38c Misc cleanup
Some checks failed
CI / build (20.x, 3.12) (push) Has been cancelled
CI / build (20.x, 3.13) (push) Has been cancelled
2025-10-23 19:57:29 -04:00
Jeremy Stretch
c42e3824a0 Make user_groups and users DynamicModelMultipleChoiceFields on OwnerForm 2025-10-23 16:05:41 -04:00
Jeremy Stretch
f5da3629c7 Add owners count to OwnerGroup list 2025-10-23 15:59:19 -04:00
Jeremy Stretch
ef2225113a Add "add owner" button to owner group detail view 2025-10-23 15:52:43 -04:00
Jeremy Stretch
c858d2a176 Add tests for Owner & OwnerGroup
Some checks are pending
CI / build (20.x, 3.12) (push) Waiting to run
CI / build (20.x, 3.13) (push) Waiting to run
2025-10-23 09:47:29 -04:00
Jeremy Stretch
3a7b4ac7fc Add documentation for owners & owner groups 2025-10-23 08:51:12 -04:00
Jeremy Stretch
1a6ea31538 Introduce OwnerGroup model
Some checks are pending
CI / build (20.x, 3.12) (push) Waiting to run
CI / build (20.x, 3.13) (push) Waiting to run
2025-10-22 16:34:27 -04:00
Jeremy Stretch
3ca2a18a3f Introduce AdminModel base class to provide enhanced UI functionality for Owner 2025-10-22 15:29:26 -04:00
Jeremy Stretch
b9cc93ad3f Misc cleanup 2025-10-22 15:10:19 -04:00
Jeremy Stretch
d154bac705 Move owners under admin in nav menu 2025-10-22 14:40:49 -04:00
Jeremy Stretch
9cbda4d5b0 Fix owner filter 2025-10-22 13:56:13 -04:00
Jeremy Stretch
59082d0364 Introduce base table classes with an 'owner' column for primary, organizational, and nested group models 2025-10-22 13:43:13 -04:00
Jeremy Stretch
57daa9f4a4 Fix owner filter form field 2025-10-22 12:48:25 -04:00
Jeremy Stretch
77117a2487 Show related objects under owner view 2025-10-22 12:43:41 -04:00
Jeremy Stretch
a4b8862a7b Add owner to base object template 2025-10-22 12:23:08 -04:00
Jeremy Stretch
2477579620 Correct device/VM component GraphQL type definitions 2025-10-22 12:03:47 -04:00
Jeremy Stretch
2f23bdcebb Correct device/VM component filterset definitions
Some checks are pending
CI / build (20.x, 3.12) (push) Waiting to run
CI / build (20.x, 3.13) (push) Waiting to run
2025-10-22 10:23:11 -04:00
Jeremy Stretch
dbce38482a Add base class tests for forms, filtersets, serializers, and GraphQL types 2025-10-22 10:15:33 -04:00
Jeremy Stretch
912d2af005 Correct filterset definitions 2025-10-22 10:14:02 -04:00
Jeremy Stretch
165c3f59d8 Fix device/VM component type definitions 2025-10-22 10:08:28 -04:00
Jeremy Stretch
dd6c985300 Rename bulk import form base classes 2025-10-22 09:16:56 -04:00
Jeremy Stretch
c3144ddb6a Fix base form classes 2025-10-22 09:15:57 -04:00
Jeremy Stretch
4dda968687 Update forms for device & VM components
Some checks are pending
CI / build (20.x, 3.12) (push) Waiting to run
CI / build (20.x, 3.13) (push) Waiting to run
2025-10-21 16:59:53 -04:00
Jeremy Stretch
cd485a5c91 Add owner field to all applicable filterset forms 2025-10-21 16:45:35 -04:00
Jeremy Stretch
a848d3b816 Add owner field to all applicable bulk import forms 2025-10-21 16:35:04 -04:00
Jeremy Stretch
ab092f2d6a Add owner field to all applicable bulk edit forms 2025-10-21 15:07:09 -04:00
Jeremy Stretch
e2163b9a3b Add owner field to all applicable model forms 2025-10-21 14:43:01 -04:00
Jeremy Stretch
1fdfff6be2 Split base form classes into separate modules under netbox.forms 2025-10-21 14:02:58 -04:00
Jeremy Stretch
3a212cc192 Misc fixes 2025-10-21 13:53:20 -04:00
Jeremy Stretch
67469134a2 ComponentType should inherit from PrimaryObjectType 2025-10-21 13:50:22 -04:00
Jeremy Stretch
6f1a84542c Add missing filters 2025-10-21 13:05:07 -04:00
Jeremy Stretch
7d0f68c97f Update GraphQL types to support owner assignment 2025-10-21 12:22:40 -04:00
Jeremy Stretch
a4d52b46ed NestedGroupModel should inherit from NetBoxModel 2025-10-21 10:48:07 -04:00
Jeremy Stretch
800cf5cf3d Add owner filters 2025-10-21 10:26:48 -04:00
Jeremy Stretch
789139b88a Add 'owner' field to bulk operation forms
Some checks are pending
CI / build (20.x, 3.12) (push) Waiting to run
CI / build (20.x, 3.13) (push) Waiting to run
2025-10-20 15:19:53 -04:00
Jeremy Stretch
a2f8ddc80e Introduce PrimaryModelSerializer & OrganizationalModelSerializer; add owner field to serializers 2025-10-20 14:22:31 -04:00
Jeremy Stretch
27ddccbdf8 Add owner fields to applicable models 2025-10-20 08:36:34 -04:00
Jeremy Stretch
8fd88b357e Introduce the Owner model 2025-10-20 08:35:40 -04:00
Jeremy Stretch
77c08b7bf9 Closes #20617: Introduce BaseModel 2025-10-20 08:35:08 -04:00
Jeremy Stretch
adad7c2209 Merge branch 'main' into feature
Some checks failed
CI / build (20.x, 3.12) (push) Has been cancelled
CI / build (20.x, 3.13) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
2025-10-16 14:31:52 -04:00
github-actions
8cc6589a35 Update source translation strings
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Close incomplete issues / stale (push) Has been cancelled
Lock threads / lock (push) Has been cancelled
Close stale issues/PRs / stale (push) Has been cancelled
Update translation strings / makemessages (push) Has been cancelled
2025-10-16 05:03:49 +00:00
Jason Novinger
bee0080917 Release v4.4.4 (#20594)
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
CI / build (20.x, 3.11) (push) Has been cancelled
CI / build (20.x, 3.12) (push) Has been cancelled
CI / build (20.x, 3.10) (push) Has been cancelled
v4.4.4
2025-10-15 14:25:43 -05:00
bctiemann
389c44e5d6 Merge pull request #20591 from pheus/20554-add-missing-contenttypefilter-to-filtersets
Fixes #20554: Add ContentTypeFilter to several filtersets
2025-10-15 14:16:51 -04:00
bctiemann
9cb2c78e34 Init storage at class level of BaseScript instead of in findsource function (#20575) 2025-10-15 11:09:22 -07:00
Jason Novinger
2ae98f0353 Fixes #20587: Handle stale ContentTypes in has_feature()
When deleting stale ContentTypes during remove_stale_contenttypes, the
pre_delete signal triggers notify_object_changed(), which calls
has_feature() with the ContentType instance. For stale types (those with
no corresponding model class), model_class() returns None, which then gets
passed to issubclass() in the feature test lambda, causing a TypeError.

The previous implementation in has_feature() checked for None before
attempting ObjectType lookup. The optimization in 5ceb6a6 removed this
safety check when refactoring the ContentType code path to use direct
feature registry lookups. This restores the null check to maintain the
original behavior of returning False for stale ContentTypes.
2025-10-15 14:09:04 -04:00
Jeremy Stretch
addda0538f Fixes #20584: Ensure consistent validation between Interface & InterfaceTemplate (#20589) 2025-10-15 11:04:39 -07:00
Jeremy Stretch
c902a1c510 Fixes #20585: Fix AttributeError exception for conditionless single-field UniqueConstraints (#20590) 2025-10-15 12:51:33 -05:00
Martin Hauser
f23ee0a46f feat(filtersets): Add ContentTypeFilter to enhance filtering
Introduce `ContentTypeFilter` across several filtersets, including
`object_type`, `related_object_type`, `assigned_object_type`, and
`parent_object_type`. This improvement enhances filtering specificity
and aligns with existing usability standards.

Closes #20554
2025-10-15 18:24:42 +02:00
github-actions
b4acc3fb36 Update source translation strings
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
2025-10-15 05:04:04 +00:00
bctiemann
5ad6bd88f6 Merge pull request #20577 from netbox-community/20492-disable-token-plaintext-retrieval
Some checks failed
CI / build (20.x, 3.12) (push) Has been cancelled
CI / build (20.x, 3.13) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Closes #20492: Disable API token plaintext retrieval
2025-10-14 15:30:47 -04:00