Commit Graph

443 Commits

Author SHA1 Message Date
John Anderson
12c193ea1a merge develop 2020-02-18 00:39:30 -05:00
John Anderson
f79c48e314 merge develop 2020-02-13 16:00:07 -05:00
Jeremy Stretch
5624a878eb Migrate circuits views to use common object list template 2020-02-13 13:31:04 -05:00
Jeremy Stretch
417acdb666 Establish standard test cases for all models 2020-02-12 13:25:56 -05:00
Jeremy Stretch
023735cf10 Use DynamicModelChoiceField for all fields using APISelect 2020-02-11 12:25:40 -05:00
Jeremy Stretch
7acb77c06f Replace FilterChoiceField with DynamicModelMultipleChoiceField 2020-02-11 09:33:41 -05:00
Jeremy Stretch
252d3595ac Standardize usage of FilterChoiceField 2020-02-10 09:58:33 -05:00
John Anderson
f08ac5c4fd functional dynamic filter lookups 2020-02-09 17:46:21 -05:00
John Anderson
0b44d8f3e7 initial work on dynamic lookup expressions 2020-02-09 03:20:59 -05:00
Jeremy Stretch
ec5a5551c2 Fixes #4094: Convert unnecessary regular expressions to strings in URL patterns 2020-02-05 16:12:48 -05:00
Jeremy Stretch
1e42fc2ed5 Merge branch 'develop' into 2921-tags-select2 2020-02-04 09:37:31 -05:00
Jeremy Stretch
5e1a14c314 Add bulk edit view tests 2020-02-03 13:53:19 -05:00
Jeremy Stretch
da1ca77c34 Move form/CSV data declaration under setUpTestData 2020-01-31 09:27:41 -05:00
Jeremy Stretch
8aa6a9bf99 Reorganize test classes to prevent unittest from running the base TestCases 2020-01-31 09:00:01 -05:00
Jeremy Stretch
b1a38fe0da Added ViewTestCase (WIP) 2020-01-30 21:57:20 -05:00
Jeremy Stretch
965a807581 Use assertHttpStatus for evaluating HTTP response codes 2020-01-30 18:08:25 -05:00
Jeremy Stretch
a57c38246a Migrate view tests to use new TestCase class 2020-01-30 16:37:40 -05:00
Saria Hajjar
c2c4a8b075 Merge branch 'develop' into 2921-tags-select2 2020-01-30 17:51:55 +00:00
Jeremy Stretch
d1b5e1a04d Introduced CustomFieldModelCSVForm 2020-01-29 13:53:26 -05:00
Jeremy Stretch
0acc59db0c Rename and refactor CustomFieldForm 2020-01-29 10:59:18 -05:00
Jeremy Stretch
36df544f09 Merge pull request #3885 from hSaria/568-csv-import-cf
Fixes #568: CSV import/export of custom fields
2020-01-29 10:11:40 -05:00
Jeremy Stretch
061e4da46c Fixes #4033: Restore missing comments field label of various bulk edit forms 2020-01-28 16:09:10 -05:00
Jeremy Stretch
0406c0c3eb #3338: Prefetch termination devices to avoid extra database queries 2020-01-27 17:22:31 -05:00
Saria Hajjar
c92bb4c1bf Fixes #3338: Added termination A and Z to the circuit 2020-01-27 21:53:10 +00:00
Saria Hajjar
d4ce046afd Removed CustomFieldForm class from models without custom fields 2020-01-23 17:03:14 +00:00
Saria Hajjar
ccb0c753ed Merge branch 'develop' into 568-csv-import-cf 2020-01-16 16:05:01 +00:00
Saria Hajjar
79c943c5ea Merge branch 'develop' into 2921-tags-select2 2020-01-16 15:33:42 +00:00
Jeremy Stretch
fc9b5a5adf Add tests for browsable API endpoints 2020-01-15 17:47:55 -05:00
Jeremy Stretch
c19ad86328 Refactor FieldChoicesViewSet; add Interface.type to virtualization _choices endpoint 2020-01-15 09:59:44 -05:00
Jeremy Stretch
a1f62f63f7 Add _choices endpoint tests for all apps 2020-01-14 16:13:11 -05:00
Jeremy Stretch
dfac1a044f Define __all__ for models.py within each app 2020-01-14 12:01:23 -05:00
Jeremy Stretch
cb42fce8b3 Don't import constants from inside a migration 2020-01-14 11:47:28 -05:00
Jeremy Stretch
f3b669ce80 Squashed all migrations 2020-01-14 11:06:05 -05:00
Saria Hajjar
8541d6a031 Fetch choices during form initialization 2020-01-14 08:22:27 +00:00
Jeremy Stretch
837e1ca0bc Delete old squashed migrations 2020-01-13 17:01:54 -05:00
Saria Hajjar
7f2a810621 Tag filter field for filter forms 2020-01-13 20:16:13 +00:00
Jeremy Stretch
abc10ed488 Merge branch 'develop' into develop-2.7 2020-01-10 13:33:51 -05:00
Saria Hajjar
1a8a16c32c CSV import/export custom fields 2020-01-10 14:26:39 +00:00
Jeremy Stretch
3f3e32e885 Move TenancyFilterSet to filters.py 2020-01-09 21:05:38 -05:00
Jeremy Stretch
765ff6a126 Rename filter variables for utility views 2020-01-09 20:57:13 -05:00
Jeremy Stretch
66632bd000 Renamed circuits FilterSets 2020-01-09 20:25:33 -05:00
Jeremy Stretch
40169c84e0 Update filter tests for v2.7 2020-01-09 16:03:41 -05:00
Jeremy Stretch
1478cb5a52 Merge branch 'develop' into develop-2.7 2020-01-09 15:27:06 -05:00
Saria Hajjar
6440dd6211 Hid the provider column 2020-01-09 20:15:22 +00:00
Saria Hajjar
98706bb927 Fixes #3393: Paginate circuits at the provider details view 2020-01-09 20:10:51 +00:00
Jeremy Stretch
fb554b99f3 Clean up filter imports 2020-01-08 17:20:31 -05:00
Jeremy Stretch
d27fea289e Standardize usage of self.filterset for test cases 2020-01-08 17:06:39 -05:00
Jeremy Stretch
098301abb7 Initial work on filter tests 2020-01-06 15:39:02 -05:00
Jeremy Stretch
ff25363a12 Merge branch 'develop' into develop-2.7 2020-01-03 14:21:53 -05:00
Jeremy Stretch
0a6d0d9517 Fixes #3833: Add region and region_id filters where missing (#3836) 2020-01-03 13:52:50 -05:00
Jeremy Stretch
e28379ecdd Fixes #3831: Fix API-driven filter field rendering (#3812 regression) 2020-01-03 11:25:22 -05:00
Jeremy Stretch
ab7bb5c374 Merge branch 'develop' into develop-2.7 2020-01-02 17:21:15 -05:00
Saria Hajjar
aa75fd0614 Add datetime widgets 2019-12-28 22:55:00 +00:00
Jeremy Stretch
cf47170cde Remove obsolete initial_data fixtures (no longer maintained) 2019-12-12 14:30:43 -05:00
Jeremy Stretch
17cf438a4c Add CSV import tests for circuits 2019-12-12 10:08:49 -05:00
Jeremy Stretch
20feca6609 Add description field to CircuitType (#3655) 2019-12-10 13:25:14 -05:00
Jeremy Stretch
ef79579119 Closes #33: Add ability to clone objects (pre-populate form fields) 2019-12-06 16:13:52 -05:00
Jeremy Stretch
ad9d33550f Closes #3731: Change Graph.type to a ContentType foreign key field 2019-12-06 10:32:59 -05:00
Jeremy Stretch
e4ffd4a5cc Merge branch 'develop-2.7' into 3569-api-choice-slugs 2019-12-05 17:43:11 -05:00
Jeremy Stretch
645aa2a295 Annotate all migration operation lists 2019-12-05 17:42:33 -05:00
Sander Steffann
9b9a9bf8f5 822 bulk import of device components (#3711)
Closes #822: CSV import for device components

* Implement CSV import for netbox-community#822

* Comment out default_return_url until there is a proper target

* Fix the default value of `enabled` when not included in the import

* rear_port is definitely required here

* Power Ports don't have a type (yet)

* Add import for console-ports and console-server-ports

* Add import for device-bays
2019-12-05 15:36:11 -05:00
Jeremy Stretch
6bb741e853 Consolidate #3569 field migrations by model 2019-11-21 22:26:35 -05:00
Jeremy Stretch
c48363eeeb Move CircuitTermination.term_side choices to a ChoiceSet 2019-11-21 21:28:59 -05:00
Jeremy Stretch
af0f67a03e Create a separate migration for each field 2019-11-18 21:41:04 -05:00
Jeremy Stretch
acfb8ff767 Standardize migration names for #3569 2019-11-18 21:04:12 -05:00
Jeremy Stretch
7e155898d2 Rename CreatedUpdatedFilter to CreatedUpdatedFilterSet 2019-11-14 22:00:12 -05:00
struppi
eb03fd7a0f Closes #3663: rename filter class 2019-11-07 22:41:09 +01:00
Jeremy Stretch
79f501d897 Circuit.status (#3569) 2019-11-07 11:11:10 -05:00
struppi
0a287420dc Closes #3663: API filter by created, last_updated 2019-11-04 20:51:56 +01:00
Jeremy Stretch
45a41bbee7 Fixes #3575: Restore label for comments field when bulk editing circuits 2019-10-07 14:06:41 -04:00
Jeremy Stretch
b4acade70d Miscellaneous cleanup 2019-10-04 12:59:10 -04:00
Jeremy Stretch
a7fedcfee3 Closes #3529: Enable filtering circuits list by region 2019-09-25 09:21:21 -04:00
Jeremy Stretch
f426334c2e Closes #3485: Enable embedded graphs for devices 2019-09-18 15:59:52 -04:00
Jeremy Stretch
a40f3b2072 Closes #3454: Enable filtering circuits by region 2019-08-28 12:12:27 -04:00
Jeremy Stretch
c251f32fbc Fixes #3452: Queue deletion ObjectChanges until after response is sent 2019-08-26 16:52:05 -04:00
John Anderson
362227f265 convert update() calls to save() calls 2019-08-20 17:16:00 -04:00
John Anderson
8bd1a48973 fixes #3428 - caching invalidation issues
Mitgate invalidation issues by using prefetch_related instead of select_related.
Also use invalidated_update instead of just update.
2019-08-19 01:53:39 -04:00
Jeremy Stretch
b07fc7f3c0 Closes #984: Allow ordering circuits by A/Z side 2019-06-27 12:30:17 -04:00
Jeremy Stretch
31ed16335a Merged v2.5.13 2019-05-31 21:37:41 -04:00
Jeremy Stretch
fec3ee9ed3 Fixes #3227: Fix exception when deleting a circuit with a termination(s) 2019-05-29 17:17:06 -04:00
hellerve
d264c5f011 urls: fix 3168 by changing url to path 2019-05-26 14:56:00 +02:00
Jeremy Stretch
592ab864e8 Move TenancyFilterForm to tenancy.forms 2019-05-09 14:36:18 -04:00
Jeremy Stretch
9c597d7a96 Cleanup from #2931 2019-05-09 14:32:49 -04:00
Jeremy Stretch
6d125b3dab Restore id__in filters to retain backward compatability until v2.7 2019-05-08 21:08:35 -04:00
Jeremy Stretch
a2d7e3c63d Remove NullableCharFieldFilter; add missing filter fields 2019-05-07 13:59:21 -04:00
Jeremy Stretch
da3cc1b448 Remove NumericInFilter and id__in filters 2019-05-07 13:07:18 -04:00
Jeremy Stretch
bdf0d7f652 Update query filters to OR multiple values 2019-05-07 12:25:33 -04:00
Jeremy Stretch
5f597c12de Cleanup from earlier work on caching 2019-04-22 14:49:31 -04:00
John Anderson
0596a9a160 move caching to views 2019-04-15 14:41:04 -04:00
John Anderson
aae36cdce2 intial work on #2647 - caching 2019-04-15 03:55:33 -04:00
Jeremy Stretch
e8d09e97fa Added child counts to API serializers (WIP) 2019-04-12 17:07:56 -04:00
Jeremy Stretch
10f6b96b02 Enforce view permissions for UI views 2019-04-11 17:27:38 -04:00
dansheps
e0f27656b5 Move Filter and Form to new file, update all files 2019-04-10 08:37:12 -05:00
dansheps
4c6b4c19b3 Merge branch 'develop' of https://github.com/digitalocean/netbox into 2813-addtenantgroupfilter 2019-04-09 15:57:22 -05:00
Jeremy Stretch
c67464fc55 Provide individual views for each type of cable connection 2019-04-09 16:49:04 -04:00
Jeremy Stretch
51e2c4165e Update migrations 2019-04-09 14:22:45 -04:00
Jeremy Stretch
856651c4e8 Merge branch 'develop' into develop-2.6 2019-04-09 14:11:26 -04:00
Jeremy Stretch
5eeb4ac142 Fixes #2937: Redirect to list view after editing an object from list view 2019-04-08 14:10:55 -04:00
Jeremy Stretch
3f6c583074 Merge branch 'develop' into develop-2.6 2019-03-11 21:01:18 -04:00
dansheps
a7f5db45e4 * Added CSS to:
* Hide URLs
  * Hide elements with "noprint" class
* Added noprint to:
  * Header Panel
  * Search Panel, Tags Panel
  * Buttons
  * Various list elements
  * Related elements
2019-03-05 15:42:47 -06:00
Jeremy Stretch
2fa7a21250 Updated migrations to account for extras/0017_exporttemplate_mime_type_length 2019-03-05 13:46:37 -05:00
dansheps
60a065de88 Fixes #2781: Fixes filter by regions on site and device list
* Add Device filter
2019-03-05 08:10:10 -06:00
John Anderson
61927f5eb4 Merge branch 'develop-2.6' of github.com:digitalocean/netbox into develop-2.6 2019-03-03 19:06:05 -05:00
dansheps
22dabb0e1c Fixes #2813: Add Filter and List View for TenantGroup
Added Filter for TenantGroup to the following Forms and Filter classes

* circuit.Circuit
* dcim.Site
* dcim.Rack
* dcim.RackElevation
* dcim.RackReservation
* dcim.Device
* ipam.IPAddress
* ipam.Prefix
* ipam.VRF
* ipam.VLAN
* virtualization.VirtualMachine

Added List View to the following classes:

* circuit.Circuit
* dcim.Site
* dcim.Rack
* dcim.RackReservation
* dcim.Device
* ipam.IPAddress
* ipam.Prefix
* ipam.VRF
* ipam.VLAN
* virtualization.VirtualMachine
2019-02-23 11:09:02 -06:00
dansheps
71087415e3 Fixes #2813: Add Filter for TenantGroup to the following Forms and Filter classes:
* circuit.Circuit
* dcim.Site
* dcim.Rack
* dcim.RackElevation
* dcim.RackReservation
* dcim.Device
* ipam.IPAddress
* ipam.Prefix
* ipam.VRF
* ipam.VLAN
* virtualization.VirtualMachine
2019-02-23 10:37:30 -06:00
Daniel Sheppard
b54c6c0f68 Fixes #2923: Changes Site Filter on Provider List to APISelectMultiple 2019-02-22 07:13:39 -06:00
John Anderson
b318811de8 refactor tag migrations and add changelog fields to tag 2019-02-22 01:32:31 -05:00
John Anderson
c679dd4ff8 initial pass on migrating to custom tag model with color and comments fields 2019-02-20 03:52:47 -05:00
Jeremy Stretch
f66ecd3eb4 Implement basic view testing for all models (#2909) 2019-02-15 17:02:18 -05:00
John Anderson
dc491e24ed fixes #2835 - certain model filters did not support the q query param 2019-01-31 13:36:30 -05:00
Jeremy Stretch
41fd4ce416 Closes #2825: Include directly connected device for front/rear ports 2019-01-31 12:21:43 -05:00
John Anderson
abea43805f IPAM Select2 forms and changelog 2019-01-10 21:19:13 -05:00
John Anderson
3325dd810f Circuits Select2 forms 2019-01-10 17:50:06 -05:00
Jeremy Stretch
1671b8aa40 #2627: Removed reference to provider from Circuit.__str__() 2018-12-11 11:15:45 -05:00
Jeremy Stretch
aeb14a8919 Closes #2649: Add connected_endpoint_type to connectable device component API representations 2018-12-06 16:14:03 -05:00
Jeremy Stretch
f1a2a724b4 Formatting cleanup 2018-11-27 11:57:29 -05:00
Jeremy Stretch
6b1abd6a65 Closes #2614: Simplify calls of super() for Python 3 2018-11-27 10:52:24 -05:00
Jeremy Stretch
8ce3a4b1f8 Standardized behavior and display of connection_status 2018-11-19 15:26:06 -05:00
Jeremy Stretch
657080fac1 Updated migrations 2018-11-19 13:44:18 -05:00
Jeremy Stretch
cad0925c7a Improved logic for recording cable path connection status 2018-11-19 12:37:53 -05:00
Jeremy Stretch
6a85f38f11 Merge branch 'develop' into develop-2.5 2018-11-12 16:03:52 -05:00
Jeremy Stretch
574ddedc22 Fixes #2558: Filter on all tags when multiple are passed 2018-11-12 15:48:58 -05:00
Jeremy Stretch
9a4f3453fb Closes #2578: Reorganized nested serializers 2018-11-12 11:36:44 -05:00
Jeremy Stretch
10c3d51096 Merge release v2.4.7 into develop-2.5 2018-11-06 11:19:38 -05:00
Jeremy Stretch
3d780fca01 Fixes #2528: Enable creating circuit terminations with interface assignment via API 2018-11-05 16:10:01 -05:00
Jeremy Stretch
fe865b7d48 Closes #867: Add a 'description' field to CircuitTermination 2018-11-05 13:53:22 -05:00
Jeremy Stretch
f6d4ea00df Cleaned up import statements 2018-11-02 15:20:08 -04:00
Jeremy Stretch
5bc3f4b868 Fixed deprecation warnings from DRF 3.9 2018-11-02 13:48:44 -04:00
Jeremy Stretch
9cad97b073 Upgraded django-filter to 2.0.0 2018-11-02 13:46:28 -04:00
Jeremy Stretch
a4318f2d4f Suppress print() output from migrations during testing 2018-11-01 14:54:36 -04:00
Jeremy Stretch
d3bfaba2ad Fixed cable list display for circuit terminations 2018-11-01 14:14:31 -04:00
Jeremy Stretch
d5a06f49f8 connected_endpoint must be read-only on termination serializers 2018-10-31 16:12:36 -04:00
Jeremy Stretch
52cce93fde Cleaned up migrations 2018-10-31 11:52:43 -04:00
Jeremy Stretch
a22957952e Added dedicated cable trace view; removed modal 2018-10-30 16:30:03 -04:00
Jeremy Stretch
46e2155899 Add 'cable' field to CircuitTermination serializer 2018-10-30 14:53:41 -04:00
Jeremy Stretch
0852eb9091 CircuitTermination should inherit from CableTermination 2018-10-30 14:27:45 -04:00
Jeremy Stretch
7e828b7f2a Extended Cables to connect CircuitTerminations 2018-10-30 12:16:22 -04:00
Jeremy Stretch
3425e859c4 Replace 'is_connected' boolean with Cable attachment 2018-10-29 13:36:41 -04:00
Jeremy Stretch
f3174c14f7 Deprecated the InterfaceConnection model 2018-10-24 13:59:44 -04:00
Jeremy Stretch
26ebed03d0 Merge release v2.4.6 2018-10-10 09:36:51 -04:00
Jeremy Stretch
4fd2cffe31 #2487: Added API tests 2018-10-04 16:20:01 -04:00
Jeremy Stretch
66db32fefd Merged release v2.4.5 2018-10-03 11:23:21 -04:00
Jeremy Stretch
c48c3c9292 Closes #2438: API optimizations for tagged objects 2018-09-28 16:44:05 -04:00
Jeremy Stretch
68a5dcd47e Removed Python 2 string compatibility 2018-08-14 11:58:42 -04:00
Jeremy Stretch
d46cbcff5f Refactored the tests to remove a lot of boilerplate 2018-08-03 11:39:26 -04:00
Jeremy Stretch
e6e5b92e00 Adopt django-taggit-serializer for representation of assigned tags in the API 2018-08-03 09:43:03 -04:00
Jeremy Stretch
f05261631c Closes #2213: Added squashed migrations 2018-08-01 14:01:20 -04:00
John Anderson
8c51fc86f4 Webhook signal refactor - fixes #2282 (#2260)
Refactor of webhook signaling system to use the same middleware mechanics of Changelogging
2018-07-30 14:23:49 -04:00
Jeremy Stretch
7809eb42d9 Renamed ChoiceFieldSerializer and ContentTypeFieldSerializer 2018-07-30 12:41:20 -04:00
Jeremy Stretch
0d1bb22c6c Cleaned up BulkEditView and BulkDeleteView 2018-07-20 21:18:10 -04:00