Jeremy Stretch
a22c7c1539
Fixes #2358 : Respect custom field default values when creating objects via the REST API
2019-12-13 14:15:48 -05:00
Jeremy Stretch
19363add30
Represent and assign ConfigContext tags by their slugs
2019-12-11 16:04:43 -05:00
kobayashi
5710f297f1
implement 3664
2019-12-11 04:58:42 -05:00
Jeremy Stretch
7518174374
Closes #3731 : Change Graph.type to a ContentType foreign key field
2019-12-06 10:32:59 -05:00
Jeremy Stretch
17898a4c57
Merge branch 'develop-2.7' into 3569-api-choice-slugs
2019-12-05 17:43:11 -05:00
Jeremy Stretch
89e720cb77
ExportTemplate.template_language to slug ( #3569 )
2019-12-05 17:01:00 -05:00
Jeremy Stretch
2bcbcd3458
ObjectChange.action to slug ( #3569 )
2019-12-05 16:30:15 -05:00
Sander Steffann
adb25fd7d7
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
3ff22bea56
CustomField.type to slug
2019-12-04 21:01:50 -05:00
Jeremy Stretch
03b8759597
'base_name' deprecated in DRF v3.9.0
2019-11-14 21:58:37 -05:00
Jeremy Stretch
b8f1585976
Merge branch 'develop' into develop-2.7
2019-11-01 16:19:36 -04:00
Jeremy Stretch
93d28e6a72
Improve script output serialization
2019-10-29 16:17:59 -04:00
Jeremy Stretch
1cfb8aea23
Initial work on #3538 : script execution API
2019-10-28 15:02:21 -04:00
Jeremy Stretch
0ebc2e4ac0
Fix reporting of custom fields in webhook data on object deletion
2019-10-22 16:12:25 -04:00
Jeremy Stretch
aeeb49a6a7
Merge branch 'develop' into develop-2.7
2019-10-10 13:41:10 -04:00
Jeremy Stretch
a3b9bdaff1
Miscellaneous cleanup
2019-10-04 12:59:10 -04:00
Jeremy Stretch
778e5bed3c
Merge branch 'develop' into develop-2.7
2019-09-25 13:44:29 -04:00
Jeremy Stretch
d183a9e7b5
Closes #3352 : Enable filtering changelog API by changed_object_id
2019-09-25 10:11:41 -04:00
Jeremy Stretch
cc0f0c4843
Merge v2.6.3
2019-09-04 16:45:33 -04:00
John Anderson
ade844f7a7
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
dccda62f2d
Closes #2745 : Remove topology maps
2019-08-08 21:33:20 -04:00
Jeremy Stretch
f31d6c55be
Fix erroneous merge conflict resolution from v2.5.11
2019-04-29 14:57:28 -04:00
Jeremy Stretch
37c2c4b4a2
Merge v2.5.11
2019-04-29 14:40:18 -04:00
Jeremy Stretch
d8c9b1af27
Fixes #3116 : Fix tagged_items count in tags API endpoint
2019-04-26 16:54:13 -04:00
Jeremy Stretch
4f9b666eee
Merge branch 'develop' into develop-2.6
2019-04-09 14:11:26 -04:00
Jeremy Stretch
6f8591f769
Closes #3052 : Add Jinja2 support for export templates
2019-04-08 12:20:24 -04:00
Jeremy Stretch
858be6d216
Fixes #3039 : Fix exception when retrieving change object for a component template via API
2019-04-04 15:00:59 -04:00
Jeremy Stretch
c8cccc30d1
Merge branch 'develop' into develop-2.6
2019-04-02 13:12:34 -04:00
Jeremy Stretch
3f5f75c71f
Fixes #3001 : Fix API representation of ObjectChange action and add changed_object_type
2019-03-28 09:57:26 -04:00
Jeremy Stretch
fc76c8eb0f
FieldChoicesViewSet should infer field choices from serializer, not model
2019-03-22 16:24:53 -04:00
Jeremy Stretch
d9c8c0cbc1
Fixes #2968 : Correct API documentation for SerializerMethodFields
2019-03-08 10:25:09 -05:00
Grokzen
b9f4a9e57b
Closes #1792 - Add CustomFieldChoices API endpoint ( #2941 )
...
* Add new api endpoint for CustomFieldChoices
* Add changelog item for #1792
* Add tests for CustomFieldchoiceAPI endpoint
2019-03-04 15:58:40 -05:00
John Anderson
fc2bb724fa
initial pass on migrating to custom tag model with color and comments fields
2019-02-20 03:52:47 -05:00
Brian Candler
c58166137c
Show exception description on failure to render graphviz
...
This means that problems give a more specific reason. In the event
that dot is not found, the error is now:
There was an error generating the requested graph: failed to execute ['dot',
'-Tpng'], make sure the Graphviz executables are on your systems' PATH
2019-01-01 11:41:54 +00:00
Jeremy Stretch
bd7aee7c1f
Closes #2614 : Simplify calls of super() for Python 3
2018-11-27 10:52:24 -05:00
Jeremy Stretch
75f0d8ee90
Closes #2578 : Reorganized nested serializers
2018-11-12 11:36:44 -05:00
Jeremy Stretch
f8a961b568
Cleaned up import statements
2018-11-02 15:20:08 -04:00
Jeremy Stretch
516faac73f
Fixed deprecation warnings from DRF 3.9
2018-11-02 13:48:44 -04:00
Jeremy Stretch
29d546a3f1
Upgraded django-filter to 2.0.0
2018-11-02 13:46:28 -04:00
Jeremy Stretch
5f66710fcd
Closes #2292 : Remove the deprecated UserAction model
2018-08-14 12:13:43 -04:00
Jeremy Stretch
980d62d579
Removed Python 2 string compatibility
2018-08-14 11:58:42 -04:00
Jeremy Stretch
bf8eff11ea
Closes #2333 : Added search filters for ConfigContexts
2018-08-09 12:22:34 -04:00
Jeremy Stretch
8f127e86ac
Mark UserAction as deprecated
2018-08-02 09:38:09 -04:00
Jeremy Stretch
45ab08aa76
Closes #2288 : Fix exception when assigning objects to a ConfigContext via the API
2018-07-31 11:32:49 -04:00
Jeremy Stretch
c2416411c1
Renamed ChoiceFieldSerializer and ContentTypeFieldSerializer
2018-07-30 12:41:20 -04:00
Jeremy Stretch
a1e8397b6b
Closes #2229 : Allow mapping of ConfigContexts to tenant groups
2018-07-27 15:47:29 -04:00
Jeremy Stretch
3ad8850ada
Fixed required fields on ConfigContextSerializer
2018-07-03 15:47:32 -04:00
Jeremy Stretch
d0308e0f58
Merge branch 'develop' into develop-2.4
2018-07-02 17:01:14 -04:00
Jeremy Stretch
b9bdd666da
Closes #2200 : Replaced detail_route API view decorator with action (DRF change)
2018-06-29 11:48:21 -04:00
Jeremy Stretch
743cf6d398
Added description to ConfigContext
2018-06-29 09:44:32 -04:00
Jeremy Stretch
c13e4858d7
Initial work on config contexts
2018-06-27 16:02:34 -04:00
Anaël Beutot
4e09b32dd9
Fix pycodestyle errors
...
Mainly two kind of errors:
* pokemon exceptions
* invalid escape sequences
2018-06-27 17:24:33 +02:00
Jeremy Stretch
a8b11e45c1
Record a unique request ID with each ObjectChange
2018-06-19 15:45:15 -04:00
Jeremy Stretch
23f91274d6
Added API serializer for ObjectChange
2018-06-19 15:04:56 -04:00
John Anderson
836478c166
Implements #81 - webhook event backend ( #1640 )
...
* merge branch develop
* bugfix, signals for virtualization's class wasn't correctly defined
* updated webhooks for 2.4 and cleanup
* updated docs to cover changes to supervisor config
* review changes and further cleanup
* updated redis connection settings
* cleanup settings
2018-05-30 11:19:10 -04:00
Jeremy Stretch
dc2f1d7c64
Added API views & tests for tags
2018-05-22 12:46:14 -04:00
Jeremy Stretch
7241783249
Started merging writable serializers (WIP)
2018-04-04 17:01:24 -04:00
Jeremy Stretch
3df8c63d5c
Merge branch 'develop' into develop-2.3
2017-11-14 14:38:32 -05:00
Jeremy Stretch
2047a16a57
Fixes #1703 : Added API serializer validation for custom integer fields
2017-11-14 13:15:09 -05:00
Jeremy Stretch
198170ca48
Closes #1553 : Introduced support for bulk object creation via the API
2017-11-07 15:36:10 -05:00
Jeremy Stretch
00986fd7bf
Closes #1691 : Cleaned up and reorganized import statements
2017-11-07 11:08:23 -05:00
Jeremy Stretch
7e6573d191
Added missing permission class to reports API viewset
2017-10-11 14:37:25 -04:00
Jeremy Stretch
f824d1eb3b
Closes #1556 : Added API endpoints listing static field choices for each app
2017-10-10 16:41:35 -04:00
Jeremy Stretch
afbe0bc307
Merge pull request #1544 from digitalocean/reports
...
Closes #1511 : Implemented reports
2017-09-28 17:16:10 -04:00
Jeremy Stretch
21485ca6e2
Restrict the running of reports via API to POST requests
2017-09-28 16:04:37 -04:00
Jeremy Stretch
571b817f04
Moved ReportResult creation into Report.run()
2017-09-28 12:50:32 -04:00
Jeremy Stretch
f4c87b3739
Removed custom permission
2017-09-26 17:31:16 -04:00
Jeremy Stretch
9a1781e6e7
Added url field for nested report results
2017-09-26 16:55:25 -04:00
Jeremy Stretch
3395b51086
Cleaned up the API quite a bit
2017-09-26 16:36:43 -04:00
Jeremy Stretch
d35a2b0faa
Extended reports API
2017-09-25 17:27:58 -04:00
Jeremy Stretch
2badb04a03
Fixes #1489 : Corrected server error on validation of empty required custom field
2017-09-25 13:37:11 -04:00
Jeremy Stretch
b5ab498e75
Initial work on reports API
2017-09-21 16:32:05 -04:00
Jeremy Stretch
c394985b1b
Fixes #1421 : Improved model validation logic for API serializers
2017-08-15 13:54:04 -04:00
Jeremy Stretch
1f9806a480
Fixes #1285 : Enforce model validation when creating/editing objects via the API
2017-07-06 17:37:24 -04:00
Jeremy Stretch
1d4a416100
Fixes #1297 : Allow passing custom field choice selection PKs as string-quoted integers
2017-07-05 11:00:43 -04:00
Jeremy Stretch
293dbd8a8b
Fixes #1226 : Improve validation for custom field values submitted via the API
2017-05-31 14:09:57 -04:00
Jeremy Stretch
f21c6bca00
Import unicode_literals
2017-05-24 11:33:11 -04:00
Jeremy Stretch
117da337c7
Corrected tests and improved validation
2017-04-27 12:46:04 -04:00
Jeremy Stretch
1c86b00b5c
Added custom field API tests
2017-04-25 14:53:18 -04:00
Jeremy Stretch
10823e1c37
Got rudimentary custom field creates/updates working
2017-04-25 13:00:28 -04:00
Jeremy Stretch
369d3aa62e
Rearranged URL namespaces to satisfy deprecation warnings
2017-04-05 14:26:33 -04:00
Jeremy Stretch
99a3e0c399
Corrected CustomFieldModelSerializer behavior when serializing lists of objects
2017-04-04 14:09:14 -04:00
Jeremy Stretch
5187138547
Refactored custom field serializers
2017-04-04 11:25:23 -04:00
Jeremy Stretch
2cde9a82a0
Merge pull request #1026 from digitalocean/image-attachments
...
#152 : Image attachments
2017-04-03 14:21:15 -04:00
Jeremy Stretch
2c1fa628a2
Implemented API endpoints for ImageAttachments
2017-04-03 14:00:15 -04:00
Jeremy Stretch
a67fc64afb
Fixes #1025 : Applied missing API view filters
2017-04-03 11:04:17 -04:00
Jeremy Stretch
6cb36a6cee
Fixed browsable API breadcrumbs
2017-03-20 21:50:10 -04:00
Jeremy Stretch
4a2206ecb1
Removed custom renderers
2017-03-20 17:47:18 -04:00
Jeremy Stretch
ffde2c96c7
Fixed custom renderers to work with paginated data
2017-03-20 17:15:42 -04:00
Jeremy Stretch
b04fe21d65
Wrote API endpoints, tests for ExportTemplates
2017-03-20 16:21:10 -04:00
Jeremy Stretch
266f9cc370
Added API endpoint, tests for Graphs
2017-03-20 15:14:33 -04:00
Jeremy Stretch
97710a4576
Make CI happy
2017-03-17 17:39:56 -04:00
Jeremy Stretch
c08fae8bce
Restore not-so-extraneous 'id' field to all WritableSerializers
2017-03-17 17:32:43 -04:00
Jeremy Stretch
94a29be415
Removed deprecated GraphListView
2017-03-09 14:28:52 -05:00
Jeremy Stretch
9dfda83946
Closes #855 : Added an API endpoint for recent activity
2017-03-09 14:26:39 -05:00
Jeremy Stretch
41826fc3cb
Fixed serialization of CustomFieldChoices
2017-03-09 13:50:30 -05:00
Jeremy Stretch
6c2ed1be22
Standardized API URL definitions
2017-03-09 13:24:02 -05:00
Jeremy Stretch
c19725506d
Cleanup
2017-03-08 16:30:32 -05:00
Jeremy Stretch
a6ceaf8d96
Moved custom field serializers to their own module to avoid circular dependency
2017-03-08 16:18:41 -05:00
Jeremy Stretch
f43fbffdf7
Moved TopologyMaps from DCIM to extras
2017-03-08 16:12:14 -05:00