Commit Graph

434 Commits

Author SHA1 Message Date
Jeremy Stretch
c9f4cff3e9 Changelog for #2647 2019-04-15 17:49:50 -04:00
Jeremy Stretch
0a8379f28f Changelog for #1863 2019-04-12 17:21:04 -04:00
Jeremy Stretch
e8d09e97fa Added child counts to API serializers (WIP) 2019-04-12 17:07:56 -04:00
Jeremy Stretch
37e780feda Rename Interface type (classification) filter to kind 2019-04-12 14:09:03 -04:00
Jeremy Stretch
383ae9d766 Changelog for #54 2019-04-12 10:00:43 -04:00
Jeremy Stretch
05d90098be Changelog for #323 2019-04-12 09:07:22 -04:00
Jeremy Stretch
856651c4e8 Merge branch 'develop' into develop-2.6 2019-04-09 14:11:26 -04:00
Jeremy Stretch
8a6792abbb Release v2.5.10 2019-04-08 14:19:37 -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
197b0c5608 Closes #3052: Add Jinja2 support for export templates 2019-04-08 12:20:24 -04:00
dansheps
244d5885ab Fix virtualization test and add to changelog 2019-04-05 09:47:38 -05:00
Jeremy Stretch
ff7c0cef67 Fixes #3046: Fix exception at reports API endpoint 2019-04-04 17:34:36 -04:00
Jeremy Stretch
bb04d6cb39 Fixes #3044: Ignore site/rack fields when connecting a new cable via device search 2019-04-04 16:19:20 -04:00
Jeremy Stretch
e31ae592f4 Fixes #3036: DCIM interfaces API endpoint should not include VM interfaces 2019-04-04 15:07:41 -04:00
Jeremy Stretch
40d6d811e5 Fixes #3039: Fix exception when retrieving change object for a component template via API 2019-04-04 15:00:59 -04:00
Jeremy Stretch
2f1c482702 Fixes #3041: Fix form widget for bulk cable label update 2019-04-04 12:43:14 -04:00
Jeremy Stretch
2b3be845cd Merge branch 'develop' into develop-2.6 2019-04-02 13:12:34 -04:00
Jeremy Stretch
a82baedff7 Release v2.5.9 2019-04-02 11:54:00 -04:00
Jeremy Stretch
c3b5d141ab Fixes #3032: Save assigned tags when creating a new secret 2019-04-02 11:42:49 -04:00
Jeremy Stretch
a07eb7309e Fixes #3019: Fix tag population when running NetBox within a path 2019-04-02 11:05:16 -04:00
Jeremy Stretch
bf94129f90 Fixes #3027: Ignore empty local context data when rendering config contexts 2019-03-28 10:16:28 -04:00
Jeremy Stretch
609ee96dbf Fixes #3026: Tweak prefix/IP filter forms to filter using VRF ID rather than route distinguisher 2019-03-28 10:06:25 -04:00
Jeremy Stretch
7a6c0d1d96 Fixes #3001: Fix API representation of ObjectChange action and add changed_object_type 2019-03-28 09:57:26 -04:00
John Anderson
b1351be750 implements #3025 - Add request ID to outbound webhook requests 2019-03-24 15:35:42 -04:00
John Anderson
a54d906be2 implements #2933 - username in webhooks 2019-03-24 15:31:12 -04:00
Jeremy Stretch
61f074a47f Fixes #3022: Add missing cable termination types to DCIM _choices endpoint 2019-03-22 16:26:56 -04:00
Jeremy Stretch
98a3140faf Changelog for #3011 2019-03-19 10:34:07 -04:00
Jeremy Stretch
0214c6243f Merge pull request #3015 from DanSheps/3014-fix-vm-roles
Changes vm_role from "true" to "True" in virtualization form
2019-03-19 10:24:59 -04:00
Jeremy Stretch
9b35405b72 Fixes #2998: Limit device query to non-racked devices if no rack selected when creating a cable 2019-03-19 10:22:52 -04:00
dansheps
8bf701bcc9 Changes vm_role from "true" to "True" in virtualization form 2019-03-18 09:22:36 -05:00
John Anderson
9ebdc98da6 fixes #2936 - device role selection showing duplicate first entry 2019-03-17 01:24:54 -04:00
Jeremy Stretch
d04d0f6304 Merge pull request #2996 from DanSheps/2207-fix_deterministic_ordering_of_interfaces
Fixes #2207
2019-03-13 16:15:34 -04:00
Jeremy Stretch
da9cb03429 Closes #2924: Add interface type for QSFP28 50GE 2019-03-13 10:00:40 -04:00
dansheps
95e868c8a9 Changelog Updates 2019-03-12 15:54:38 -05:00
Jeremy Stretch
3f6c583074 Merge branch 'develop' into develop-2.6 2019-03-11 21:01:18 -04:00
dansheps
5780403c4c API Filtering Documentation Changes
* Fixed typo
* Clarified documentation regarding filtering multiple times (some filters can, some cannot)
2019-03-11 15:11:16 -05:00
Jeremy Stretch
258c77fe73 Release v2.5.8 2019-03-11 13:34:56 -04:00
Jeremy Stretch
5e152d4c46 Fixes #2982: Correct CSS class assignment on color picker 2019-03-11 13:31:48 -04:00
Jeremy Stretch
ca7151a862 Fixes #2985: Fix pagination page length for rack elevations 2019-03-11 12:51:03 -04:00
Jeremy Stretch
da0e03165f Fixes #2940: Allow CSV import of prefixes/IPs to VRF without an RD assigned 2019-03-11 12:34:19 -04:00
Jeremy Stretch
1b82c0dac7 Fixes #2984: Fix logging of unlabeled cable ID on cable deletion 2019-03-11 12:26:40 -04:00
Jeremy Stretch
ee9a514521 Fixes #2980: Improve rendering time for API docs 2019-03-08 10:28:11 -05:00
Jeremy Stretch
80d8035f0e Fixes #2968: Correct API documentation for SerializerMethodFields 2019-03-08 10:25:09 -05:00
Jeremy Stretch
5c5bc6a963 Changelog for #2944 2019-03-07 14:08:36 -05:00
Jeremy Stretch
e30686db0b Changelog & renaming for #2065 2019-03-07 13:58:34 -05:00
Jeremy Stretch
85acc4d73a Fixes #2972: Improve ContentTypeField serializer to elegantly handle invalid data 2019-03-06 12:42:47 -05:00
Jeremy Stretch
73699075f8 Fixes #2976: Add delete button to tag view 2019-03-06 12:11:01 -05:00
Jeremy Stretch
593105dd8f Merge pull request #2969 from DanSheps/2435-PrintingCSS
Closes #2435: Printer friendly CSS
2019-03-06 09:44:04 -05:00
dansheps
9e2af54d31 * Updated changelog 2019-03-05 15:46:41 -06:00
Jeremy Stretch
4bb54bb403 Merge branch 'develop' into develop-2.6 2019-03-05 13:39:00 -05:00
Jeremy Stretch
d3aa65ab03 Changelog for #2966 2019-03-05 13:18:56 -05:00
Jeremy Stretch
3ee7284164 Fixes #2961: Prevent exception when exporting inventory items belonging to unnamed devices 2019-03-05 13:15:09 -05:00
Jeremy Stretch
b3c753bb8a Fixes #2962: Increase ExportTemplate mime_type field length 2019-03-05 13:08:40 -05:00
Jeremy Stretch
d11b778892 Rearranged changelog items 2019-03-04 16:01:43 -05:00
Grokzen
0ce752c816 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
Jeremy Stretch
275ae923f5 Changelog for #2954 2019-03-04 15:16:35 -05:00
Jeremy Stretch
9262a655c9 Follow-up from #2781 2019-03-04 14:57:35 -05:00
John Anderson
c2c67cf58d Merge branch 'develop' into develop-2.6 2019-03-03 19:06:15 -05: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
John Anderson
9de4c55654 fixes #2952 - slug field absent from TenantFilter 2019-03-03 18:52:57 -05:00
Jeremy Stretch
c263e596cb Fixes #2938: Exclude circuit terminations from API interface connections endpoint 2019-02-28 09:59:17 -05:00
Jeremy Stretch
5baf9db3f2 Fixes #2938: Enforce deterministic ordering of device components returned by API 2019-02-28 09:49:23 -05:00
Jeremy Stretch
b971a3838c Fixes #2705: Fix endpoint grouping in API docs 2019-02-26 16:38:49 -05:00
Jeremy Stretch
68de647e3b Changelog for #2923 2019-02-22 12:16:15 -05:00
Jeremy Stretch
e6e72d999d Merge branch 'develop' into develop-2.6 2019-02-22 12:10:44 -05:00
Jeremy Stretch
e25fda47f9 Merge pull request #2918 from digitalocean/2643-description-fields
Closes #2643: Add description field to console/power components and device bays
2019-02-22 12:08:24 -05:00
John Anderson
c06723f133 added changelog views for Tag 2019-02-22 02:29:00 -05:00
Jeremy Stretch
84c92d3425 Release v2.5.7 2019-02-21 14:42:44 -05:00
Jeremy Stretch
1921936208 Changelog for #2638 2019-02-21 13:30:57 -05:00
Jeremy Stretch
6f9ef3909a Fixes #2852: Allow filtering devices by null rack position 2019-02-21 10:26:31 -05:00
Jeremy Stretch
d6bd5c96f2 Closes #2643: Add description field to console/power components and device bays 2019-02-20 14:34:05 -05:00
Jeremy Stretch
1edde28dc8 Chnagelog for #2890 2019-02-20 12:01:37 -05:00
Jeremy Stretch
0ac345a626 Closes #2870: Add Markdown rendering for provider NOC/admin contact fields 2019-02-20 11:48:11 -05:00
Jeremy Stretch
7fe4a55e94 Closes #2898: Enable filtering cables list by connection status 2019-02-20 11:36:55 -05:00
Jeremy Stretch
307fb0de87 Fixes #2915: Fix bulk editing of pass-through ports 2019-02-20 11:13:43 -05:00
Jeremy Stretch
dff4f9fa7d Fixes #2912: Cable type in filter form should be blank by default 2019-02-20 10:21:34 -05:00
Jeremy Stretch
274eeb4966 Fixes #2913: Fix assigned prefixes link on VRF view 2019-02-20 10:17:36 -05:00
Jeremy Stretch
11ed8f0deb Fixes #2914: Fix empty connected circuit link on device interfaces list 2019-02-20 10:13:36 -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
John Anderson
ab3e509972 implemented #2350 - config context included by default in API 2019-02-18 21:37:00 -05:00
John Anderson
ce0c323de3 fixed #2910 - config context list and edit views not using select2 2019-02-18 21:10:15 -05:00
Jeremy Stretch
9fe89c0b48 Closes #2878: Add cable types for OS1/OS2 singlemode fiber 2019-02-15 14:42:03 -05:00
Jeremy Stretch
c22935f33b Closes #2357: Enable filtering of devices by rack face 2019-02-15 11:31:57 -05:00
Jeremy Stretch
59ed5bd688 Closes #2903: Clarify purpose of tags field on interface edit form 2019-02-15 10:23:46 -05:00
Jeremy Stretch
97a2399793 Fixes #2884: Don't display connect button for wireless interfaces 2019-02-15 10:14:44 -05:00
Jeremy Stretch
65d41495c1 Fixes #2901: Fix ordering regions by site count 2019-02-15 10:10:26 -05:00
Jeremy Stretch
ba399a3cc4 Fixes #2895: Fix filtering of nullable character fields 2019-02-14 09:43:56 -05:00
Jeremy Stretch
abf438683f Changelog for #2888 and #2893 2019-02-14 09:20:27 -05:00
Jeremy Stretch
134ebcf4eb Release v2.5.6 2019-02-13 17:07:15 -05:00
Jeremy Stretch
facdced7d7 Closes #2758: Add cable trace button to pass-through ports 2019-02-13 17:05:02 -05:00
Jeremy Stretch
d191222f6d Fixes #2880: Sanitize user password if an exception is raised during login 2019-02-13 11:34:16 -05:00
Jeremy Stretch
2d11727a69 Closes #2866: Add cellular interface types (GSM/CDMA/LTE) 2019-02-13 10:45:42 -05:00
Jeremy Stretch
afb5a76daf Fixes #2877: Fixed device role label display on light background color 2019-02-13 10:06:56 -05:00
Jeremy Stretch
9a83e3913e Closes #2839: Add "110 punch" type for pass-through ports 2019-02-08 09:57:04 -05:00
Jeremy Stretch
c0745f5325 Closes #2854: Enable bulk editing of pass-through ports 2019-02-08 09:31:10 -05:00
Jeremy Stretch
124f64bf43 Fixes #2862: Follow return URL when connecting a cable 2019-02-08 09:10:31 -05:00
Jeremy Stretch
215ba08344 Fixes #2864: Correct display of VRF name when no RD is assigned 2019-02-08 09:04:43 -05:00
Jeremy Stretch
00420dfe8a Fixes #2841: Fix filtering by VRF for prefix and IP address lists 2019-02-06 10:48:14 -05:00
Jeremy Stretch
0bf4b439c1 Fixes #2845: Enable filtering of rack unit list by unit ID 2019-02-06 10:44:05 -05:00
Jeremy Stretch
67042e8d0d Fixes #2856: Fix navigation links between LAG interfaces and their members on device view 2019-02-06 10:28:25 -05:00
Jeremy Stretch
c882a7b5be Fixes #2857: Add display_name to DeviceType API serializer; fix DeviceType list for bulk device edit 2019-02-06 10:23:30 -05:00
Jeremy Stretch
df062466b9 Closes #2844: Correct display of far cable end for pass-through ports 2019-02-01 09:12:48 -05:00
Jeremy Stretch
dd51c49d85 Release v2.5.5 2019-01-31 16:04:14 -05:00
John Anderson
45843d22b4 fixes #2837 - select2 nullable filter fields add multiple null_option elements when paging 2019-01-31 13:56:36 -05:00
Jeremy Stretch
ac614130b2 Closes #2805: Allow null route distinguisher for VRFs 2019-01-31 13:47:24 -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
Jeremy Stretch
6e495be835 Closes #2809: Remove VRF child prefixes table; link to main prefixes view 2019-01-31 10:06:08 -05:00
Jeremy Stretch
8246401497 Fixes #2833: Fix form widget for front port template creation 2019-01-31 09:19:53 -05:00
Jeremy Stretch
106a7726c1 Fixes #2824: Fix template exception when viewing rack elevations list 2019-01-30 09:59:19 -05:00
Jeremy Stretch
47de46e6dc Release v2.5.4 2019-01-29 16:32:15 -05:00
Jeremy Stretch
110301a1f6 Fixes #2816: Handle exception when deleting a device with connected components 2019-01-29 14:27:47 -05:00
Jeremy Stretch
13015cf6c2 Closes #2810: Include description fields in interface connections export 2019-01-29 14:08:15 -05:00
Jeremy Stretch
51676cc85a Closes #2808: Loosen version pinning for Django to allow patch releases 2019-01-29 13:48:21 -05:00
Jeremy Stretch
c2ab845a38 Changelog for #2802 2019-01-29 13:36:09 -05:00
Jeremy Stretch
916ec75f58 Closes #2807: Include device site/rack assignment in cable trace view 2019-01-23 13:57:26 -05:00
Jeremy Stretch
c98b1ae222 Fixes #2795: Fix duplicate display of pagination controls on child prefix/IP tables 2019-01-23 13:38:16 -05:00
Jeremy Stretch
1c9f8868c2 Changelog for #2798 2019-01-18 09:23:53 -05:00
Jeremy Stretch
7927d09517 Closes #2733: Enable bulk assignment of MAC addresses to interfaces 2019-01-17 16:20:14 -05:00
Jeremy Stretch
ab972d2bc0 Closes #2766: Extend users admin table to include superuser and active fields 2019-01-17 16:14:06 -05:00
Jeremy Stretch
763c7df5f9 Closes #2782: Add is_pool field for prefix filtering 2019-01-17 16:02:16 -05:00
John Anderson
4373c870da select2 changelog items 2019-01-15 20:01:02 -05:00
John Anderson
c366fcf641 Merge branch 'develop' into select2-ui 2019-01-15 10:26:39 -08:00
Jeremy Stretch
a7cdbde3f3 Fixes #2779: Include "none" option when filter IP addresses by role 2019-01-15 11:26:41 -05:00
Jeremy Stretch
ca227581e2 Fixes #2783: Fix AttributeError exception when attempting to delete region(s) 2019-01-15 10:44:11 -05:00
Jeremy Stretch
1c7362df11 Release v2.5.3 2019-01-11 11:27:59 -05:00
Jeremy Stretch
55a0790d6d Fixes #2777: Fix cable validation to handle duplicate connections on import 2019-01-11 10:17:06 -05:00
John Anderson
abea43805f IPAM Select2 forms and changelog 2019-01-10 21:19:13 -05:00
John Anderson
998127c0c1 Merge branch 'develop' of github.com:digitalocean/netbox into select2-ui 2019-01-09 11:25:56 -05:00
Jeremy Stretch
8f271d87f6 Closes #2682: Add DAC and AOC cable types 2019-01-09 09:28:44 -05:00
Jeremy Stretch
692ed88d57 Fixes #2757: Always treat first/last IPs within a /31 or /127 as usable 2019-01-08 12:04:32 -05:00
Jeremy Stretch
195817d478 Fixes #2762: Add missing DCIM field values to API _choices endpoint 2019-01-08 11:51:13 -05:00
John Anderson
d00aa5955b #2590 changelog 2019-01-05 17:46:23 -05:00
Jeremy Stretch
34a7c312f7 Closes #1983: Enable regular expressions when bulk renaming device components 2019-01-04 12:30:38 -05:00
Jeremy Stretch
9c7e72ed75 Fixes #2742: Preserve cluster assignment when editing a device 2019-01-04 11:46:53 -05:00
Jeremy Stretch
e02a229448 Closes #1870: Add per-page toggle to object lists 2019-01-04 11:07:55 -05:00
Jeremy Stretch
30343cfffc Closes #1871: Enable filtering sites by parent region 2019-01-03 16:59:49 -05:00
Jeremy Stretch
4757fa3f6a Closes #1630: Enable bulk editing of prefix/IP mask length 2019-01-03 16:21:21 -05:00
Jeremy Stretch
0140aa772c Changelog updates; import cleanup 2019-01-03 15:30:12 -05:00
Jeremy Stretch
d47f700a1d Release v2.5.2 2018-12-21 11:44:30 -05:00
Jeremy Stretch
07ce4b4a7a Fixes #2724: Limit rear port choices to current device when editing a front port 2018-12-21 11:09:44 -05:00
Jeremy Stretch
03fe71220a Fixes #2721: Detect loops when tracing front/rear ports 2018-12-21 10:54:20 -05:00
Jeremy Stretch
07557e9699 Fixes #2723: Correct permission evaluation when bulk deleting tags 2018-12-21 09:11:07 -05:00
Jeremy Stretch
0812c52495 Fixes #2717: Fix bulk deletion of tags 2018-12-21 09:08:00 -05:00
Jeremy Stretch
a4db71e803 Fixes #2704: Fix form select widget population on parent with null value 2018-12-20 15:49:35 -05:00
Jeremy Stretch
68446533b3 Fixes #2712: Preserve list filtering after editing objects in bulk 2018-12-20 15:33:53 -05:00
Jeremy Stretch
e3fd34fb07 Closes #2561: Add 200G and 400G interface types 2018-12-19 16:13:04 -05:00
Jeremy Stretch
d4cb07b615 Fixes #2673: Fix exception on LLDP neighbors view for device with a circuit connected 2018-12-19 14:04:22 -05:00
Jeremy Stretch
3716d78ee0 Fixes #2691: Cable trace should follow circuits 2018-12-19 12:48:20 -05:00
Jeremy Stretch
28cd5a22ec Fixes #2698: Remove pagination restriction on bulk component creation for devices/VMs 2018-12-19 10:59:12 -05:00
Jeremy Stretch
db17980703 Closes #2701: Enable filtering of prefixes by exact prefix value 2018-12-19 10:02:18 -05:00
Jeremy Stretch
65b87c36a3 Fixes #2707: Correct permission evaluation for circuit termination cabling 2018-12-19 09:36:45 -05:00
Jeremy Stretch
edfea6b3b9 Release v2.5.1 2018-12-13 15:03:08 -05:00
Jeremy Stretch
1246641fee Fixes #2687: Correct naming of before/after filters for changelog entries 2018-12-13 14:43:05 -05:00
Jeremy Stretch
0ce2930b81 Closes #2674: Enable filtering changelog by object type under web UI 2018-12-13 14:37:03 -05:00
Jeremy Stretch
13d03529e3 Fixes #2683: Fix exception when connecting a cable to a RearPort with no corresponding FrontPort 2018-12-12 16:40:34 -05:00
Jeremy Stretch
1ed1f05daf Fixes #2684: Fix custom field filtering 2018-12-12 16:06:50 -05:00
Jeremy Stretch
0ce5366e64 Fixes #2663: Prevent duplicate interfaces from appearing under VLAN members view 2018-12-12 13:18:42 -05:00
Jeremy Stretch
4dcee6a93c Added changelog for #2662 (fixed under #2680) 2018-12-12 09:59:54 -05:00
Jeremy Stretch
dd53c9a136 Closes #2655: Add 128GFC Fibrechannel interface type 2018-12-12 09:48:17 -05:00
Jeremy Stretch
a82d476f34 Fixes #2678: Fix error when viewing webhook in admin UI without write permission 2018-12-12 09:30:31 -05:00
Jeremy Stretch
162500a56d Fixes #2680: Disallow POST requests to /dcim/interface-connections/ API endpoint 2018-12-12 09:20:07 -05:00
Jeremy Stretch
512226b10c Fixes #2676: Fix exception when passing dictionary value to a ChoiceField 2018-12-11 17:00:20 -05:00
Jeremy Stretch
dd7ad65414 Changelog for #2666 2018-12-11 13:47:24 -05:00
Jeremy Stretch
03b3222024 Release v2.5.0 2018-12-10 10:22:32 -05:00
Jeremy Stretch
13edc47a4d Merge v2.5 work 2018-12-07 10:51:28 -05:00
Jeremy Stretch
66d726dd5a Release v2.4.9 2018-12-07 10:19:57 -05:00
Jeremy Stretch
e4df00bc06 Closes #2611: Fix error handling when assigning a clustered device to a different site 2018-12-07 09:57:55 -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
474d150611 Closes #2474: Add cabled and connection_status filters for device components 2018-12-06 12:39:12 -05:00
Jeremy Stretch
85c6c923a9 Closes #2648: Include the connection_status field in nested represenations of connectable device components 2018-12-06 12:14:54 -05:00
Jeremy Stretch
eb80f39f3d Fixes #2626: Remove extraneous permissions generated from proxy models 2018-12-05 16:53:58 -05:00
Jeremy Stretch
8cc582b360 Closes #2495: Enable deep-merging of config context data 2018-12-05 14:34:49 -05:00
Jeremy Stretch
8b6884033d Additional API change notes 2018-12-05 11:13:29 -05:00
Jeremy Stretch
c2bd0a7b84 Fixes #2634: Enforce consistent representation of unnamed devices in rack view 2018-12-04 15:29:58 -05:00
Jeremy Stretch
d97a205350 Closes #2632: Change representation of null values from 0 to 'null' 2018-12-04 15:09:07 -05:00
John Anderson
fc3f2f3b2b CHANGELOG.md 2018-12-04 00:46:36 -05:00
Jeremy Stretch
7f5627754b Fixes #2639: Fix preservation of length/dimensions unit for racks and cables 2018-12-03 11:13:37 -05:00
Jeremy Stretch
4846b11083 Fixes #2616: Convert Rack outer_unit and Cable length_unit to integer-based choice fields 2018-11-30 12:26:28 -05:00
Jeremy Stretch
7154952c6f Closes #2594: upgrade.sh no longer invokes sudo 2018-11-30 11:12:10 -05:00
Jeremy Stretch
039e19b8bf Closes #2089: Add SONET interface form factors 2018-11-30 09:28:56 -05:00
Jeremy Stretch
47ea8df446 Fixes #2622: Enable filtering cables by multiple types/colors 2018-11-28 14:22:55 -05:00
Jeremy Stretch
ec4a0cd452 Fixes #2624: Delete associated content type and permissions when removing InterfaceConnection model 2018-11-28 13:45:02 -05:00
Jeremy Stretch
403e5e896f Closes #2597: Add FibreChannel SFP28 (32GFC) interface form factor 2018-11-28 09:56:48 -05:00
Jeremy Stretch
9a9c72d0aa Fixes #2576: Correct type for count_* fields in site API representation 2018-11-27 16:27:47 -05:00
Jeremy Stretch
2c73acd75d Updated changelog for #2400 2018-11-27 16:18:57 -05:00
Tatsushi Demachi
51ecc03d46 Fix type mismatches in API view (#2429)
* Fix tags field to be shown as array in API view

`tags` field in serializers is defineded as `TagListSerializerField`.
It should be shown as an array value in API view but actually, it is a
simple string value.

This fixes it by introducing a new `FieldInspector` to handle
`TagListSerializerField` type field as an array. It doesn't affects any
other type fields.

* Fix SerializedPKRelatedField type API expression

A field definded as `SerializedPKRelatedField` should be shown as an
array of child serializer objects in a response value definition in API
view but it is shown as an array of primary key values (usually
`integer` type) of a child serializer.

This fixes it by introducing a new `FieldInspector` to handle the field.
It doesn't affect any other type fields.

* Fix request parameter representation in API view

In API view, representation of a parameter defined as a sub class of
`WritableNestedSerializer` should be vary between a request and a
response. For example, `tenant` field in `IPAddressSerializer` should be
shown like following as a request body:

```
tenant: integer ...
```

while it should be shown like following as a response body:

```
tenant: {
    id: integer ...,
    url: string ...,
    name: string ...,
    slug: string ...
}
```

But in both cases, it is shown as a response body type expression. This
causes an error at sending an API request with that type value.

It is only an API view issue, API can handle a request if a request
parameter is structured as an expected request body by ignoring the
wrong expression.

This fixes the issue by replacing an implicitly used default auto schema
generator class by its sub class and returning a pseudo serializer with
'Writable' prefix at generating a request body. The reason to introduce
a new generator class is that there is no other point which can
distinguish a request and a response. It is not enough to distinguish
POST, PUT, PATCH methods from GET because former cases may return a JSON
object as a response but it is also represented as same as a request
body, causes another mismatch.

This also fixes `SerializedPKRelatedField` type field representation. It
should be shown as an array of primary keys in a request body.

Fixed #2400
2018-11-27 16:14:45 -05:00
Jeremy Stretch
627bcda5bd Fixes #2615: Tweak live search widget to use brief format for API requests 2018-11-27 12:41:00 -05:00
Jeremy Stretch
5156de92b9 Fixes #2613: Decrease live search minimum characters to three 2018-11-27 12:20:52 -05:00
Jeremy Stretch
b442722238 Release v2.5-beta2 2018-11-26 16:27:57 -05:00
Jeremy Stretch
0ffc441295 Changelog for #2606 2018-11-26 14:41:09 -05:00
Jeremy Stretch
73a6583722 Fixes #2609: Fixed exception when ChoiceField integer value is passed as a string 2018-11-26 14:05:57 -05:00
Jeremy Stretch
c31c2fd04b Fixes #2608: Fixed null outer_unit error on rack import 2018-11-26 13:41:35 -05:00
Jeremy Stretch
a0b8e05653 Closes #2601: Added a description field to pass-through ports 2018-11-20 21:28:19 -05:00
Jeremy Stretch
1891329c77 Changelog for #2602 2018-11-20 13:21:38 -05:00
Jeremy Stretch
b5ef607224 Merge v2.4.8 2018-11-20 12:28:24 -05:00
Jeremy Stretch
674ca55769 Release v2.4.8 2018-11-20 11:56:14 -05:00
Jeremy Stretch
83cac4c90c Closes #2557: Added object view for tags 2018-11-15 16:47:41 -05:00
Jeremy Stretch
b94800f568 Fixes #2593: Fix toggling of connected cable's status 2018-11-15 14:23:23 -05:00
John Anderson
035fc97ed0 #2583 changelog 2018-11-15 00:55:47 -05:00