Commit Graph

10237 Commits

Author SHA1 Message Date
jeremystretch
a353d29053 #9686: Add default accessor to TenantGroupColumn 2022-07-11 10:03:45 -04:00
jeremystretch
a161209345 Changelog for #9632, #9686 2022-07-11 09:57:12 -04:00
Jeremy Stretch
0ea039c09c Merge pull request #9700 from PieterL75/issue9656_journalviewlayout
Fixes: #9656 Re-order journal list and form
2022-07-11 09:54:48 -04:00
Jeremy Stretch
3a4b0b8108 Merge pull request #9696 from kkthxbye-code/fix-9632
Fixes #9632 - Focus on select field after populating data
2022-07-11 09:51:45 -04:00
Jeremy Stretch
643663c27d Merge pull request #9695 from hagbarddenstore/issue_9686
Add Tenant Group column to tables #9686
2022-07-11 09:50:42 -04:00
kkthxbye-code
8ce09c4741 Focus on select field after populating data 2022-07-10 19:16:16 +02:00
Kim Johansson
6a191ab466 Prefetch Tenant Group on user configurable tables
Prefetch the Tenant Group in views which allows its table to be configured
by the user. This decreases the amount of database queries that are required
to fetch the data.
2022-07-10 17:17:56 +02:00
Kim Johansson
cc85079d23 Remove Tenant Group from child tables
Removes the Tenant Group column from tables which aren't configurable
by the user.
2022-07-10 17:16:12 +02:00
Kim Johansson
4d5cb44ba2 Prefetch Tenant Group in global search
Configure the prefetch to also include the Tenant Group, avoids additional
database queries when the Tenant Group column is to be rendered.

NOTE: If no personalisation of the global search tables should be done,
this commit can be reverted.
2022-07-10 15:38:21 +02:00
Kim Johansson
365fd0b81d Replace TenantColumn with new TenancyColumnsMixin
Replaces all usages of the TenantColumn with the new TenancyColumnsMixin.

This enables the user to add a column for Tenant Group on all tables which
also has a column for Tenant.
2022-07-10 15:13:48 +02:00
Kim Johansson
684823ba06 Table mixin for Tenancy columns
A mixin to add the Tenant and Tenant Group columns to a table.
2022-07-10 15:08:55 +02:00
Kim Johansson
0d9103c7a7 Add TenantGroupColumn to display Tenant Group on tables
Works the same as the existing TenantColumn, but displats the Tenant Group of
the Tenant.

Views should prefetch the Tenants Group for this to be efficient in large
tables.
2022-07-10 11:58:45 +02:00
jeremystretch
ce5630a45a Merge branch 'develop' into feature 2022-07-08 16:06:27 -04:00
Jeremy Stretch
383c8bf4d3 Merge pull request #9615 from netbox-community/9102-cabling
Closes #9102: Add support for multi-termination cable ends
2022-07-08 14:59:38 -04:00
jeremystretch
644b5d2604 Fixes #9657: Fix filtering for custom fields and webhooks in the UI 2022-07-08 14:59:16 -04:00
jeremystretch
01fb1cfe8c Fixes #9682: Fix bulk assignment of ASNs to sites 2022-07-08 14:16:42 -04:00
jeremystretch
588231b7b4 Fix CablePath serialization for pass-through port paths 2022-07-08 13:55:13 -04:00
jeremystretch
3500c3e173 Improve display of related objects in cables list 2022-07-08 13:33:43 -04:00
jeremystretch
c72a4496a7 Improve filtering cables by termination device/rack/site 2022-07-08 11:44:28 -04:00
jeremystretch
f2d9aefd1e Fix trace() loop 2022-07-07 19:08:20 -04:00
jeremystretch
bb9375cc94 Fix support for tracing across bridge relationships 2022-07-07 14:35:02 -04:00
jeremystretch
4dfab2e35a Cache properties which return related objects 2022-07-07 14:23:05 -04:00
jeremystretch
048081cdb7 Extend Interface.link_peers() to support WirelessLinks 2022-07-07 13:57:39 -04:00
jeremystretch
0c5cb3069e Cleanup for #9102 2022-07-07 12:48:44 -04:00
jeremystretch
76c40188ce #9102: Document API changes 2022-07-06 16:02:53 -04:00
jeremystretch
5b63fbcdf5 Rename LinkTermination to CabledObjectModel 2022-07-06 15:56:10 -04:00
jeremystretch
98c8082871 Merge branch 'feature' into 9102-cabling 2022-07-06 14:09:25 -04:00
jeremystretch
70072690b7 Changelog for #8157 2022-07-06 13:38:25 -04:00
jeremystretch
5887ec751d #8157: Clean up L2VPN assignment for VM interfaces 2022-07-06 13:31:31 -04:00
Jeremy Stretch
68117a3246 Merge pull request #9631 from netbox-community/8157-l2vpn
Closes: #8157 - Add L2VPN support
2022-07-06 13:14:21 -04:00
jeremystretch
e5a778aabe Update L2VPN migration 2022-07-06 12:53:10 -04:00
jeremystretch
37b9fbb15c Clean up validation 2022-07-06 12:49:00 -04:00
jeremystretch
6dbff7c7a7 Add support for VM interface termination via bulk import 2022-07-06 12:48:28 -04:00
Daniel Sheppard
fe6e50006f Update Termination table rendering on L2VPN View 2022-07-06 09:10:10 -05:00
Daniel Sheppard
0f86331467 Fix error 2022-07-06 09:01:08 -05:00
Daniel Sheppard
18744e2d16 Update docs 2022-07-06 09:00:33 -05:00
Daniel Sheppard
70a64a0635 More fixes as a result of code review 2022-07-06 08:57:15 -05:00
Daniel Sheppard
6dd39b37d9 Commit fixes Jeremy suggested
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-07-06 08:17:50 -05:00
Daniel Sheppard
ea8b2ada87 Remove extraneous imports
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-07-06 08:04:33 -05:00
Daniel Sheppard
6bbef27b82 Change API urls to plural form
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-07-06 08:03:07 -05:00
Daniel Sheppard
9e7d5c4b6c Change Virtual Circuits to L2VPN
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-07-06 08:02:44 -05:00
Daniel Sheppard
5996a43193 Change Virtual Circuits to L2VPN
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-07-06 08:02:29 -05:00
Pieter Lambrecht
21318419d0 Re-order journal list and form 2022-07-06 14:10:10 +02:00
jeremystretch
7a899845a1 Closes #8171: Populate next available address when cloning an IP 2022-07-01 16:36:24 -04:00
jeremystretch
15a57b9d6a Closes #9228: Add serialize_object() method to ChangeLoggingMixin 2022-07-01 15:52:16 -04:00
jeremystretch
812480ab3a Closes #8511: Enable custom fields and tags for circuit terminations 2022-07-01 15:10:31 -04:00
jeremystretch
3cd079c056 Closes #9647: Introduce customfield_value template tag 2022-07-01 14:45:22 -04:00
jeremystretch
90b02f179f prepare_cloned_fields() should always return a QueryDict 2022-07-01 13:52:37 -04:00
jeremystretch
c42aff928f Closes #9074: Enable referencing the current user when evaluating permission constraints 2022-07-01 13:34:10 -04:00
jeremystretch
47775595f5 Introduce qs_filter_from_constraints() for constructing object permission QS filters 2022-07-01 11:49:36 -04:00