Commit Graph

601 Commits

Author SHA1 Message Date
Saria Hajjar
0fa1701905 Added cluster groups and clusters to serializers 2020-01-28 17:30:26 +00:00
Jeremy Stretch
ac3cac1b1c Fixes #4028: Correct URL patterns to match Unicode characters in tag slugs 2020-01-28 09:47:33 -05:00
Saria Hajjar
561df015ea Fixes #3886: Config context cluster (group) 2020-01-26 10:53:58 +00:00
Saria Hajjar
8440419ebe Formatting 2020-01-24 22:20:41 +00:00
Saria Hajjar
0d2d0e857b Added CSV import test 2020-01-24 22:15:09 +00:00
Jeremy Stretch
27f23342ba Remove obsolete fixtures files 2020-01-24 16:29:23 -05:00
Jeremy Stretch
80b2660748 Closes #4005: Include timezone context in webhook timestamps 2020-01-24 12:00:24 -05:00
hSaria
4c31311dfc Merge branch 'develop' into 568-csv-import-cf 2020-01-23 20:27:07 +00:00
Jeremy Stretch
aed93cce24 Closes #3952: Add test for webhooks_worker; introduce generate_signature() 2020-01-23 15:05:27 -05:00
Saria Hajjar
16f72769b7 Cleaned the CustomField choice field 2020-01-23 18:54:37 +00:00
Saria Hajjar
017c92aae9 Explicitly use the value of the choice, instead of relying on __str__ 2020-01-23 17:37:51 +00:00
Jeremy Stretch
9aac090718 Fixes #3989: Correct HTTP content type assignment for webhooks 2020-01-22 20:33:57 -05:00
Jeremy Stretch
b8b9848ffa Add tests for IP address vars 2020-01-22 17:48:03 -05:00
Jeremy Stretch
3469e5ac14 Introduce IPAddressVar and IPAddressWithMaskVar 2020-01-22 17:16:40 -05:00
Jeremy Stretch
dc567799ed Move min/max prefix length validators to ipam.validators 2020-01-22 16:26:06 -05:00
hSaria
28c1da9b30 Merge branch 'develop' into 568-csv-import-cf 2020-01-21 21:30:38 +00:00
Jeremy Stretch
45f5478786 Fixes #3721: Allow Unicode characters in tag slugs 2020-01-17 17:25:46 -05:00
Jeremy Stretch
d7a770b528 #3951: Add tests for webhook queuing 2020-01-17 12:39:14 -05:00
Jeremy Stretch
a5250ab646 Fixes #3951: Fix exception in webhook worker due to missing constant 2020-01-17 11:28:50 -05:00
Saria Hajjar
ccb0c753ed Merge branch 'develop' into 568-csv-import-cf 2020-01-16 16:05:01 +00:00
Jeremy Stretch
fc9b5a5adf Add tests for browsable API endpoints 2020-01-15 17:47:55 -05:00
Jeremy Stretch
e07cceb1e3 Make filter test logic more obvious 2020-01-15 16:25:26 -05:00
Jeremy Stretch
e1eb8a86df Remove obsolete utility function model_names_to_filter_dict() 2020-01-15 16:21:41 -05:00
Jeremy Stretch
f506db78f6 #3892: Convert WEBHOOK_MODELS to a Q object 2020-01-15 16:18:47 -05:00
Jeremy Stretch
985e57bd7d #3892: Convert EXPORTTEMPLATE_MODELS to a Q object 2020-01-15 16:11:44 -05:00
Jeremy Stretch
3c24ad1df3 #3892: Convert GRAPH_MODELS to a Q object 2020-01-15 16:08:19 -05:00
Jeremy Stretch
7d2f412c1d #3892: Convert CUSTOMLINK_MODELS to a Q object 2020-01-15 16:04:41 -05:00
Jeremy Stretch
629da44e9a #3892: Convert CUSTOMFIELD_MODELS to a Q object 2020-01-15 16:00:54 -05:00
Jeremy Stretch
91cf7410e4 Update model ordering parameters to ensure deterministic ordering 2020-01-15 13:20:44 -05:00
Jeremy Stretch
c19ad86328 Refactor FieldChoicesViewSet; add Interface.type to virtualization _choices endpoint 2020-01-15 09:59:44 -05:00
Jeremy Stretch
6e5acf64c0 Rename ExportTemplateLanguageChoices to TemplateLanguageChoices 2020-01-15 09:40:05 -05:00
Jeremy Stretch
b41258a287 Add tests for dynamic choices 2020-01-14 16:38:14 -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
f3b669ce80 Squashed all migrations 2020-01-14 11:06:05 -05:00
Jeremy Stretch
837e1ca0bc Delete old squashed migrations 2020-01-13 17:01:54 -05:00
hSaria
b547c9ddad Merge branch 'develop' into 568-csv-import-cf 2020-01-13 21:17:29 +00:00
Jeremy Stretch
ac859954ca Merge branch 'develop' into develop-2.7 2020-01-13 13:49:22 -05:00
Jeremy Stretch
0254e5c404 Fix graph:type choices under /api/extras/_choices/ 2020-01-10 12:18:56 -05:00
Jeremy Stretch
afa38dbb99 Add tests for Graph rendering 2020-01-10 11:51:14 -05:00
Saria Hajjar
692ad7b57a Fixes #3491: include content of webhook error response 2020-01-10 16:42:02 +00:00
Jeremy Stretch
5fec868f71 Add template_language field to Graph 2020-01-10 11:28:50 -05:00
Saria Hajjar
7b6b4f6e74 Fixed import choice name 2020-01-10 14:58:15 +00:00
Jeremy Stretch
765ff6a126 Rename filter variables for utility views 2020-01-09 20:57:13 -05:00
Jeremy Stretch
f527edd728 Renamed extras FilterSets 2020-01-09 20:35:07 -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
Jeremy Stretch
924843fb9a Fixes #3851: Allow passing initial data to custom script forms 2020-01-09 09:41:10 -05:00
Jeremy Stretch
40e1633c6f Merge pull request #3858 from hSaria/3857-group-custom-link
Fixes #3857: Fix group custom links rendering
2020-01-09 09:28:03 -05:00
Jeremy Stretch
02d759a481 Add filter tests for extras 2020-01-08 21:41:32 -05:00
Saria Hajjar
7ddc8962fc Fixes #3857: Fix group custom links rendering 2020-01-08 10:14:48 +00:00
Jeremy Stretch
ab7bb5c374 Merge branch 'develop' into develop-2.7 2020-01-02 17:21:15 -05:00
Jeremy Stretch
a7ec448ea3 Merge pull request #3820 from hSaria/3819-cf-boolean-select2
Select2 for custom fields
2020-01-02 10:11:32 -05:00
Saria Hajjar
3398ad9e0e Select2 for custom fields 2020-01-01 23:46:51 +00:00
Jeremy Stretch
0c68630725 Close #2892: Extend admin UI to allow deleting old report results 2019-12-31 16:11:47 -05:00
Jeremy Stretch
56fca9414d Closes #3461: Fail gracefully on custom link rendering exception 2019-12-31 15:04:56 -05:00
Jeremy Stretch
22bb9f42a6 Introduce render_jinja2() convenience function 2019-12-31 14:00:55 -05:00
Saria Hajjar
aa75fd0614 Add datetime widgets 2019-12-28 22:55:00 +00:00
Jeremy Stretch
5041e76d47 Merge pull request #3793 from struppinet/develop
Closes #3663: add Filter Tests
2019-12-27 14:14:55 -05:00
struppi
2940e84346 Closes #3663: improve tests 2019-12-26 22:21:05 +01:00
Jeremy Stretch
62d2a6fb6c Merge pull request #3775 from steffann/3705-make-current-user-available-in-custom-scripts
Add request to Custom Script run, if receiver supports it
2019-12-26 10:04:07 -05:00
struppi
127b54b8b8 Closes #3663: fix PEP errors 2019-12-26 12:26:41 +01:00
struppi
49e1723ca2 Closes #3663: add Filter Tests 2019-12-25 18:41:59 +01:00
Sander Steffann
59b168062a Implement request passing as a property of Script 2019-12-19 23:35:18 +01:00
Jeremy Stretch
0cfc27b58b Fixes #3780: Fix AttributeError exception in API docs 2019-12-19 14:04:18 -05:00
Jeremy Stretch
b1863c6ffd Fixes #2358: Respect custom field default values when creating objects via the REST API 2019-12-13 14:15:48 -05:00
Jeremy Stretch
cfe79dc6e2 Fix bug left over from work on #3569 2019-12-11 16:16:14 -05:00
Jeremy Stretch
a5476108ee Represent and assign ConfigContext tags by their slugs 2019-12-11 16:04:43 -05:00
Jeremy Stretch
5243334508 Cleanup for #3664 2019-12-11 15:55:33 -05:00
Jeremy Stretch
c7232674a1 Introduce is_taggable utility function for identifying taggable models 2019-12-11 15:52:35 -05:00
Jeremy Stretch
2c95b95d67 Merge pull request #3752 from kobayashi/3664
implement 3664
2019-12-11 14:14:48 -05:00
Sander Steffann
e85889a405 Implement storage configuration as suggested by @jeremystretch 2019-12-11 16:09:32 +01:00
Sander Steffann
837db7708a Merge branch '1814-Ability_to_use_object_store_for_images' of github.com:steffann/netbox into 1814-Ability_to_use_object_store_for_images 2019-12-11 15:23:47 +01:00
Sander Steffann
4aeca05ea1 Add support for S3 storage for media 2019-12-11 15:19:32 +01:00
kobayashi
6f4eeaa83a implement 3664 2019-12-11 04:58:42 -05:00
Jeremy Stretch
3eb2c631c7 Closes #3408: Remove WEBHOOKS_ENABLE configuration setting 2019-12-06 11:52:28 -05:00
Jeremy Stretch
ad9d33550f Closes #3731: Change Graph.type to a ContentType foreign key field 2019-12-06 10:32:59 -05:00
Sander Steffann
86261fec08 Don't redefine exception but split the code 2019-12-06 16:32:18 +01:00
Jeremy Stretch
e4ffd4a5cc Merge branch 'develop-2.7' into 3569-api-choice-slugs 2019-12-05 17:43:11 -05:00
Jeremy Stretch
d6557b63f6 Webhook.http_content_type to slug (#3569) 2019-12-05 17:11:59 -05:00
Jeremy Stretch
ef3d772894 ExportTemplate.template_language to slug (#3569) 2019-12-05 17:01:00 -05:00
Jeremy Stretch
b2904050aa Delete obsolete user action types 2019-12-05 16:50:44 -05:00
Jeremy Stretch
b4859d4fcc Remain consistent with original action strings (e.g. 'created' instead of 'create') 2019-12-05 16:42:10 -05:00
Jeremy Stretch
ba17918d01 Fix changelog table action labels 2019-12-05 16:37:22 -05:00
Jeremy Stretch
0a72225ca9 ObjectChange.action to slug (#3569) 2019-12-05 16:30:15 -05:00
Jeremy Stretch
e447a255c2 Extend CustomField migration to update CustomFieldChoice.field.limit_choices_to 2019-12-05 16:02:52 -05:00
Jeremy Stretch
4ffd91d882 Convert BUTTON_CLASS_CHOICES to a ChoiceSet 2019-12-05 15:59:16 -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
4a662c437f CustomField.filter_logic to slug 2019-12-04 21:09:02 -05:00
Jeremy Stretch
0e0cdc65c0 CustomField.type to slug 2019-12-04 21:01:50 -05:00
Jeremy Stretch
7e155898d2 Rename CreatedUpdatedFilter to CreatedUpdatedFilterSet 2019-11-14 22:00:12 -05:00
Jeremy Stretch
865d50e5b6 'base_name' deprecated in DRF v3.9.0 2019-11-14 21:58:37 -05:00
struppi
eb03fd7a0f Closes #3663: rename filter class 2019-11-07 22:41:09 +01:00
struppi
3a3e03bdd7 Closes #3663: PEP8 fixes 2019-11-07 22:38:51 +01:00
struppi
0a287420dc Closes #3663: API filter by created, last_updated 2019-11-04 20:51:56 +01:00
Sander Steffann
fb43e92865 Add support for S3 storage for media 2019-11-03 14:16:12 +03:00
Jeremy Stretch
01ac6d560d Merge branch 'develop' into develop-2.7 2019-11-01 16:19:36 -04:00
Jeremy Stretch
d3bfe80326 Closes #3659: Add filtering for objects in admin UI 2019-11-01 12:22:39 -04:00
Jeremy Stretch
6d888421d1 Only use module.name for human-facing display 2019-10-30 09:13:26 -04:00
Jeremy Stretch
36ce1b1c78 Add tests for custom script API 2019-10-29 16:54:27 -04:00