Jeremy Stretch
3bacee16bd
Closes #14631 : Ensure description filters are available on all relevant models
2023-12-28 13:53:16 -05:00
Jeremy Stretch
634681a72e
Fixes #13606 : Fix filtering by null for multiselect custom fields
2023-12-27 12:49:31 -05:00
Jeremy Stretch
99467e8f66
Fixes #12731 : Support custom validation for many-to-many fields ( #14516 )
...
* WIP
* Enforce custom validators during bulk edit
* Add bulk edit M2M validation test
* Clean up tests
* Add custom validation test for bulk import
* Misc cleanup
2023-12-22 10:01:05 -05:00
Jeremy Stretch
e5c565cbf4
Closes #14119 : Remove redundant check for to_objectchange()
2023-12-21 16:26:20 -05:00
Azmodeszer
3f4a65cc5c
added ! to safe characters
2023-12-21 15:10:38 -05:00
Prince Kumar
12beac4f1a
fix the result of script jobs #14549
2023-12-20 15:15:02 -05:00
Arthur Hanson
69bf1472d2
13983 Add nested arrays for extra_choices in CustomFieldChoiceSet ( #14470 )
...
* 13983 split array fields in CSV data for CustomFieldChoices
* 13983 fix help text
* 13983 update tests
* 13983 use re for split
* 13983 replace escaped chars
* 13983 fix escape handling
* 13983 fix escape handling
* 13983 fix escape handling
2023-12-14 15:18:56 -05:00
Arthur Hanson
6939ae4a47
14467 change ChoiceField separator from comma to colon ( #14469 )
...
* 14467 change ChoiceField separator from comma to colon
* 14467 fix test
* 14467 fix test
* 14467 use regex for colon detection
* 14467 update tests
2023-12-12 14:31:39 -05:00
Jeremy Stretch
32264ac3e3
Fixes #14322 : Populate default custom field values when instantiating templated device components
2023-12-06 15:21:34 -05:00
Jeremy Stretch
ac3fc25dfd
Fixes #14239 : Fix CustomFieldChoiceSet search filter
2023-11-29 17:20:18 -05:00
Jeremy Stretch
6dddb6c9d2
Fixes #14199 : Fix jobs count for reports with a custom name
2023-11-29 17:19:02 -05:00
Josef Johansson
c43c63a817
14346 fix missing function call convert
...
In PR #13958 (commit 8224644
) _get_report was modified to do the call on the variable without changing the call later on.
This commit fixes that and removes the call on the variable.
Signed-off-by: Josef Johansson <josef@oderland.se >
2023-11-29 15:58:14 -05:00
Arthur Hanson
40763b58bd
14299 change webhook timestamp to isoformat ( #14331 )
...
* 14299 change timestamp to isoformat
* Omit redundant str() casting
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-11-28 17:01:03 -05:00
Artem Kotik
6b89da2233
Closes #13936 : Add primary_ip4 and primary_ip6 filters to VirtualMachine and VirtualDeviceContext filtersets ( #14203 )
...
* Add primary_ip4 and primary_ip6 filters for VirtualMachine and VirtualDeviceContext filtersets (#13936 )
* Add PrimaryIPFilterSet to __all__
---------
Co-authored-by: Artem I. Kotik <artem.i.kotik@ringcentral.com >
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-11-09 09:56:43 -05:00
Arthur Hanson
7983c2590e
14025 fix script name checking ( #14030 )
...
* 14025 fix script name checking
* 14025 fix script name checking
* 14025 add file extension validation and simplify get logic
* 14025 match start of string with regex
* 14025 backout changes to model_forms
* 14025 add filepatch checking to reports
2023-10-17 10:57:50 -04:00
sleepinggenius2
285187542d
Adds selection custom field labels to UI
2023-10-05 15:02:22 -04:00
Arthur
ef460a38ed
13944 fix report detail api
2023-10-03 14:39:46 -04:00
Jeremy Stretch
4dd229e73a
Fixes #13864 : Remove 'default' choice for dashboard widget color
2023-09-26 15:24:20 -04:00
Jeremy Stretch
b759d694ee
Fixes #13859 : Fix valid response when no matching choice values are found
2023-09-26 12:08:05 -04:00
Jeremy Stretch
f9ceaad284
#13666 : Add is_valid property to Report class
2023-09-26 10:53:38 -04:00
JCWasmx86
e67624f042
Fixes #13666 : Fix behavior for reports without test methods ( #13667 )
2023-09-26 10:41:09 -04:00
Olivier Desnoë
04796a6ac6
Fix creating config template using rest api ( #13869 )
...
* Fix creation of extras/config-templates objects using the REST API
* Update serializers.py
2023-09-25 13:33:01 -04:00
Arthur Hanson
f5dd7d853a
13809 fix ConfigRevision edit if custom validators ( #13825 )
...
* 13809 fix ConfigRevision edit, check if custom validator JSON serializable
* 13809 check json rendering for all fields
* Refactor field initialization logic to more cleanly handle statically configured values
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-20 14:11:25 -04:00
Arthur Hanson
6e4b4a553b
12685 use markdown for custom fields added to form ( #13828 )
...
* 12685 use markdown for custom fields added to form
* 13809 change markdown to use utilities
* Add help_text for CustomField description indicating Markdown support
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-20 14:06:04 -04:00
Arthur Hanson
8e251ac33c
13757 Fix ConfigContext reference to DeviceType ( #13804 )
...
* 13757 do prefetch to work around Django issue with vars in init (DeviceType)
* 13757 use self.__dict to access vars in init
* 13757 change test
2023-09-20 09:56:52 -04:00
Jeremy Stretch
9aa7444bf9
Fixes #13782 : Fix tag exclusion support for contact assignments
2023-09-18 11:08:49 -04:00
Arthur
487827c776
13768 fix typo
2023-09-15 09:40:27 -04:00
Jeremy Stretch
6939bf8aed
Fixes #12219 : Ensure dashboard widget heading text has sufficient contrast ( #13753 )
...
* Fixes #12219 : Ensure dashboard widget heading text has sufficient contrast in both light & dark modes
* Change foreground color for teal background
2023-09-13 10:56:03 -04:00
Abhimanyu Saharan
b7cfb2f7d9
Adds csv dialect detection to bulk import view ( #13563 )
...
* adds csv dialect detection to bulk import view #13239
* adds sane delimiters for dialect detection #13239
* adds csv delimiter tests #13239
* adds csv delimiter on the form
* pass delimiter to clean_csv method #13239
* fix tests for csv import #13239
* fix tests for csv import #13239
* fix tests for csv import #13239
* fix tests for csv import #13239
* Improve auto-detection of import data format
* Misc cleanup
* Include tab as a supported delimiting character for auto-detection
* Move delimiting chars to a separate constant for easy reference
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-12 16:48:40 -04:00
Jeremy Stretch
75b71890a4
Misc i18n cleanup
2023-09-11 15:59:50 -04:00
Daniel Sheppard
2d1457b94b
Fixes : #13682 - Fix custom field exceptions and validation ( #13685 )
...
* Fixes : #13682 - Fix custom field exceptions and validation
* Add tests
* Remove default setting for multi-select/multi-object and return slice of choices and annotate.
* Remove redundant default choice valiadtion; introduce values property on CustomFieldChoiceSet
* Refactor test
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-06 10:47:18 -04:00
Arthur Hanson
9d851924c8
13674 fix ReportSerializer ( #13688 )
...
* 13674 fix ReportSerializer
* Remove test_methods attr from Report class
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-09-06 08:44:25 -04:00
Jeremy Stretch
f962fb3b53
Closes #13638 : Add optional staff_only attribute to MenuItem ( #13639 )
...
* Closes #13638 : Add optional staff_only attribute to MenuItem
* Add missing file
* Add release note
2023-08-31 11:23:44 -04:00
Jeremy Stretch
2544e2bf18
Fixes #13622 : Fix exception when viewing current config and no revisions have been created
2023-08-31 11:11:56 -04:00
Jeremy Stretch
eb9a804914
#12591 : Add a dedicated view for the active config revision
2023-08-30 11:13:56 -04:00
Jeremy Stretch
2a4e3dd09f
Merge branch 'develop' into feature
2023-08-29 10:45:55 -04:00
Abhimanyu Saharan
0a3be0b7ea
adds related models count on custom field #12825
2023-08-28 08:34:33 -04:00
Abhimanyu Saharan
00ebdfe0df
adds related models count on custom field #12825
2023-08-28 08:34:33 -04:00
Abhimanyu Saharan
88bf82be05
clear all cache when lazy is not used #13544
2023-08-24 10:12:48 -04:00
Jeremy Stretch
d73f7b1943
Fixes #13530 : Ensure script log messages are cast as strings for proper serialization
2023-08-23 14:41:21 -04:00
Jeremy Stretch
7d7e8127f5
Fixes #13513 : Prevent exception when rendering bookmarks widget for anonymous user
2023-08-23 10:53:56 -04:00
Jeremy Stretch
3c0a3ca703
Fixes #13516 : Plugin utility functions should be importable from extras.plugins
2023-08-22 10:27:21 -04:00
kkthxbye-code
c86cfe3cbf
Correct filter name in redirect after bulk edit
...
* Added modified_by_request filter to ChangeLoggedFilterSet
2023-08-21 14:35:08 -04:00
Abhimanyu Saharan
4004966b16
fix content type filter on export template #13478
2023-08-17 15:29:21 -04:00
Jeremy Stretch
af06510921
Closes #13412 : Enable pagination of custom field choice set choices
2023-08-16 11:08:36 -04:00
Jeremy Stretch
b96e437e2b
#8248 : Add bookmarks widget to default dashboard
2023-08-16 10:10:31 -04:00
Jeremy Stretch
914588f55d
Merge branch 'develop' into feature
2023-08-09 15:31:21 -04:00
Abhimanyu Saharan
8b01c30c51
Exposes all models in device context data ( #13389 )
...
* exposes all models in device context data #12814
* added app namespaces to the context data
* revert object to device in context data
* moved context to render method of ConfigTemplate
* removed print
* Include only registered models; permit passed context data to overwrite apps
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-09 14:57:59 -04:00
Arthur
dcdb4d27ec
12665 add semicolon to link sanitation safe string
2023-08-09 14:49:34 -04:00
Jeremy Stretch
16bcb1dbb0
#13426 : Employ proper feature keys for image attachment & contact filter forms
2023-08-09 10:41:40 -04:00