Commit Graph

81 Commits

Author SHA1 Message Date
kkthxbye-code
eb87ca33e6 Clear sys.modules cache when reloading scripts 2021-11-11 11:53:31 +01:00
jeremystretch
ee25975c39 Fixes #7628: Fix load_yaml method for custom scripts 2021-10-27 09:04:18 -04:00
jeremystretch
a1a8c00368 Changelog for #7387 2021-10-01 09:30:17 -04:00
maximumG
24e84a3d82 feat: scripts within a module can now be ordered 2021-09-30 09:17:33 +02:00
jeremystretch
a60ec1c230 Closes #5994: Drop support for display_field argument on ObjectVar 2021-04-21 10:29:25 -04:00
Jeremy Stretch
4d21d0028c Closes #5995: Dropped backward compatibility for queryset parameter on ObjectVar and MultiObjectVar 2021-03-16 11:28:50 -04:00
Jeremy Stretch
7a212fbf8b Closes #5990: Deprecated display_field parameter for custom script ObjectVar and MultiObjectVar fields 2021-03-16 11:08:34 -04:00
Jeremy Stretch
e77d851426 Merge branch 'develop' into develop-2.10 2020-11-09 20:58:59 -05:00
Jeremy Stretch
4cd1c9d7f2 Fixes #5316: Dry running scripts should not trigger webhooks 2020-11-09 16:22:45 -05:00
Jeremy Stretch
53acfc0f76 Closes #4941: commit argument is now required argument in a custom script's run() method 2020-08-21 11:06:36 -04:00
Jeremy Stretch
1c335551a0 Fixes #5012: Return details of exceptions resulting from report/script execution 2020-08-20 12:47:26 -04:00
Jeremy Stretch
6f75b17ae9 Move changelog signals setup to a context manager 2020-08-18 13:05:41 -04:00
Jeremy Stretch
b0f7d82c2d Attach object modification signals before running a custom script 2020-08-17 13:43:48 -04:00
Jeremy Stretch
b43c657465 Move ObjectChange creation into signal receivers 2020-08-14 17:03:45 -04:00
Jeremy Stretch
d12f93a2ff Merge branch 'develop' into develop-2.9 2020-08-13 10:06:03 -04:00
Jeremy Stretch
910926db29 Extend ObjectVars to accept display_field, query_params, and null_option 2020-08-12 14:51:58 -04:00
Jeremy Stretch
dec3a78e94 Closes #4885: Add MultiChoiceVar for custom scripts 2020-08-11 13:23:39 -04:00
Jeremy Stretch
a17a011408 Log a warning for scripts whose run() method does not accept a commit argument 2020-08-03 13:56:10 -04:00
Jeremy Stretch
3846e51423 Merge pull request #4852 from glennmatthews/gfm-2006-continued
Some additional fixes to scripts/reports background running (2.9)
2020-07-20 13:10:56 -04:00
Jeremy Stretch
b0a3030957 Update import locations for Django 3.1 2020-07-16 11:54:08 -04:00
Glenn Matthews
407e439e4c Save JobResult even for a script run with commit=False 2020-07-15 12:58:01 -04:00
Jeremy Stretch
1a6267e89a Closes #4837: Use dynamic form widget for relationships to MPTT objects 2020-07-09 09:50:01 -04:00
John Anderson
2340d4d592 review updates 2020-07-06 02:00:16 -04:00
John Anderson
38ef8fb4c4 PR review updates 2020-07-06 02:00:16 -04:00
Jeremy Stretch
043374946c Merge branch 'develop-2.9' into 2006-scripts-reports-background 2020-07-02 11:00:59 -04:00
John Anderson
a91de7f5da fix previous job result deletion 2020-06-30 09:29:50 -04:00
John Anderson
dbf14b201e fix tests and cleanup 2020-06-29 14:34:42 -04:00
John Anderson
ec4be16aef Implements #2006 - run reports and scripts in the background 2020-06-29 03:50:05 -04:00
Jeremy Stretch
7a9efc4a8a Fixes #4791: Update custom script documentation for ObjectVar 2020-06-25 17:33:41 -04:00
Jeremy Stretch
505673d84e Fixes #4710: Fix merging of form fields among custom scripts 2020-06-15 14:20:00 -04:00
Jeremy Stretch
e836fe3378 Merge branch 'develop' into develop-2.8 2020-03-27 12:53:55 -04:00
Jeremy Stretch
cb43c9c648 Merge pull request #4258 from netbox-community/4255-dynamic_object_vars
Fixes: #4255 - Modify script ObjectVars to utilize DynamicModelChoiceField
2020-03-19 11:02:07 -04:00
dansheps
786a132bd9 Modify script ObjectVars to use DynamicModelChoiceFields 2020-03-19 08:09:31 -05:00
Jeremy Stretch
4d91af4fde Merge branch 'develop' into develop-2.8 2020-03-10 15:06:37 -04:00
Jeremy Stretch
cdab2b3d67 Fixes #4326: Exclude Python modules without Script classes from scripts list 2020-03-06 20:59:32 -05:00
Jeremy Stretch
d4f44d6190 Merge pull request #4315 from netbox-community/4195-application-logging
Closes #4195: Application logging
2020-03-04 14:39:12 -05:00
Jeremy Stretch
ed0b35967d Enable system logging for custom scripts 2020-03-04 14:05:59 -05:00
dansheps
1782cf43a3 Remove second variables, make widget mandatory on ObjectVar and MultiObjectVar 2020-02-27 07:45:11 -06:00
Jeremy Stretch
0f43857895 Extend custom scripts to pass the 'commit' value via run() 2020-02-25 14:49:41 -05:00
dansheps
57ad4903d3 Update __all__ for #4255 2020-02-24 10:21:17 -06:00
dansheps
9d5a10695d Fixes: #4255 - Add new script variable types based on dynamic model fields 2020-02-24 10:18:19 -06:00
Jeremy Stretch
20ada58da3 Fixes #4246: Fix duplication of field attributes when multiple IPNetworkVars are present in a script 2020-02-24 10:01:31 -05:00
Daniel Sheppard
066e103a8c Fix test error 2020-02-11 20:27:02 -06:00
Daniel Sheppard
2be5bab3c8 Enable widget usage (APISelect, APIMultipleSelect, StaticSelect2, etc) in scripts 2020-02-11 20:12:02 -06:00
Jeremy Stretch
bbca6de77f Fixes #4043: Fix toggling of required fields in custom scripts 2020-01-29 09:40:17 -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
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
ab7bb5c374 Merge branch 'develop' into develop-2.7 2020-01-02 17:21:15 -05:00