Commit Graph

1876 Commits

Author SHA1 Message Date
Brian Tiemann
ebe9f5c9a2 Set ImageAttachmentSerializer.image_width and image_height to read_only 2024-08-22 10:59:52 -04:00
Jeremy Stretch
f48161920b Fixes #17131: Fix exception when creating object-type custom field without selecting related object type 2024-08-13 08:14:16 -04:00
Jeremy Stretch
80623ae750 Closes #16933: Enable toggling true/false marks on BooleanColumn 2024-07-19 07:54:41 -04:00
Fabian Geisberger
96078ffdcc Fixes #16624: Set allow_null=True on method fields that can return None 2024-07-12 09:03:40 -04:00
Arthur Hanson
ae9bc91d15 16867 render dashboard if model no longer available 2024-07-10 08:39:40 -04:00
Jeremy Stretch
b1e58812b6 Fixes #16808: Correct event type of webhooks emitted upon object deletion immediately following a modification 2024-07-09 08:17:46 -04:00
Jeremy Stretch
02d8f90537 Fixes #16813: Fix ordering of bookmarks in dashboard widget when filtering by object type 2024-07-04 08:23:05 -04:00
Jeremy Stretch
5d650579e5 Fixes #16679: Avoid overwriting custom JSON fields during bulk edit 2024-07-03 08:42:37 -04:00
Peter Eckel
f3207c093b Do not delete all search indexes when reindexing specific models (#16755)
* Do not delete all search indexes when reindexing specific models

* Clear all indexes only if neither --lazy nor a list of models are
  specified for "manage.py reindex"

* Otherwise, clear the index for a model immediately before rebuilding
  it

* Separated clearing from re-indexing the search cache
2024-07-01 09:12:02 -04:00
Julio Oliveira at Encora
9f247caa2a 16704 - Define a default help_text for ColorField (#16708)
* Added `help_text` to ColorField.

* Addressed PR comment to remove the redundant help_text from all the forms where ColorField was used.

* Add space before example value

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-06-26 09:14:08 -04:00
Jeremy Stretch
6c461b5658 Closes #16700: Audit usage of mark_safe() for consistent escaping 2024-06-24 12:33:54 -04:00
Jeremy Stretch
985c826365 Closes #16307: Enable calling log_* methods on Script without a log message 2024-06-24 10:45:33 -04:00
Arthur Hanson
0163a4703b 16149 add (optional) obj hyperlink to script list table (#16271)
* 16149 add (optional) obj hyperlink to script list table

* 16149 add (optional) obj hyperlink to script list table

* 16149 review feedback

* 16149 review changes
2024-06-21 10:04:52 -04:00
Jeremy Stretch
1648b6088a Fixes #13925: Support 'zulu' style timestamps for custom fields 2024-06-14 10:38:09 -04:00
Julio Oliveira at Encora
317b8dc2a5 16256 - Allow alphabetical ordering of bookmarks on dashboard (#16426)
* Added alphabetical ordering of bookmarks.

* Addressed PR comments.

* Rename choice constants & fix unrelated typo

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-06-11 09:21:24 -04:00
Julio Oliveira at Encora
c15a00a361 Fixes #14829 Simple condition (without and/or) does not work in event rule (#14870) 2024-06-07 07:45:19 -07:00
Julio Oliveira at Encora
8f509533d8 16315 - Cant filter changelog by object type (no results found) (#16324)
* Replaced "api=/api/extras/content-types/" with "/api/extras/object-types/" for JournalEntryFilterForm and ObjectChangeFilterForm.

* Addressed PR comment.

* Correct feature classifications

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-06-04 09:37:08 -04:00
Jeremy Stretch
055e7fa474 Fixes #15194: Prevent enqueuing duplicate events for an object 2024-06-03 08:34:26 -04:00
Jeremy Stretch
ef64ff2d63 Fixes #16312: Fix object list navigation for dashboard widgets 2024-05-31 13:16:41 -04:00
Jeremy Stretch
e987e96002 Fixes #13422: Rebuild MPTT trees for applicable models when merging staged changes 2024-05-31 10:07:07 -04:00
Jeremy Stretch
7fb6bab9a5 Closes #16290: Capture entire object in changelog data 2024-05-29 09:34:22 -04:00
Arthur Hanson
324f41ddd6 16145 Use module.ScriptName to call Script API instead of PK (#16170)
* 16145 script api use module.script name instead of pk

* 16145 fix test

* 16145 allow both pk and script name

* 16145 update doc string

* Simplify retrieval logic

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-05-22 10:42:36 -04:00
Jeremy Stretch
f366edf5af Fixes #16216: Fix validation of JournalEntry when referenced by a custom field 2024-05-21 10:59:10 -04:00
Julio-Oliveira-Encora
573c550ac3 Changed "clean_extra_choices" in "CustomFieldChoiceSetForm" to strip the space for value and label. 2024-05-21 09:59:24 -04:00
Arthur Hanson
34924c0365 15353 add better script error message (#15441)
* 15353 add better script error message

* Simplify _get_script_class() & add docstring

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-05-17 14:54:30 -04:00
Jeremy Stretch
61bff5e863 Fixes #16123: Fix custom script execution via REST API 2024-05-14 10:31:55 -04:00
Jeremy Stretch
42222734ad Refactor & expand search view tests 2024-05-13 18:56:44 -04:00
Jeremy Stretch
efdae65afb Fixes #16061: Omit hidden fields from event rule form 2024-05-09 15:01:53 -04:00
Daniel Sheppard
fcbc4544b4 Return an empty dict if the module cannot be loaded 2024-05-08 13:29:39 -04:00
Jeremy Stretch
fb44546b6f Remove duplicate column definition from ReportResultsTable 2024-05-08 11:59:36 -04:00
Arthur
8f4f82c46b 16031 make script result message display markdown 2024-05-08 11:43:20 -04:00
Jeremy Stretch
fb460952ec Fixes #16025: Fix execution of scripts via the runscript management command 2024-05-08 10:30:47 -04:00
Jeremy Stretch
0571d36f83 Merge branch 'develop' into feature 2024-05-01 16:09:14 -04:00
Jeremy Stretch
9d49811292 Fixes #15891: Ensure deterministic ordering for scripts & reports 2024-05-01 10:46:25 -04:00
Arthur Hanson
22bc363dc8 15855 fix adding script as event rule (#15861)
* 15855 fix adding script as event rule

* 15855 fix adding script as event rule

* 15855 fix adding script as event rule

* 15855 fix adding script as event rule
2024-05-01 10:24:17 -04:00
Arthur Hanson
dfa9d69a3f 15815 convert dashboard widgets for users/groups (#15839)
* 15815 convert dashboard widgets for users/groups

* 15815 review fixes

* 15815 catch DoesNotExist for widget content type

* 15815 add logging
2024-05-01 09:56:46 -04:00
Jeremy Stretch
532c15455b Fixes #15896: Retain proper formatting for JSON custom field default values 2024-04-30 16:24:26 -04:00
Arthur
0a7dceff27 14852 delete event-rule when delete script 2024-04-29 15:02:39 -04:00
Julio Oliveira at Encora
0502c9561e Feature #15428 - Show all devices with configuration template attached (#15822)
* Added devices instances column for config templates.

* Added devices instances column for config templates.

* Add counts for VMs, roles, and platforms

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-04-29 14:15:44 -04:00
JCWasmx86
7158d61202 Fixes #15812: Add Date(Time)Var for scripts to allow much easier date… (#15821)
* Fixes #15812: Add Date(Time)Var for scripts to allow much easier date input

* Extend tests for invalid data

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-04-29 12:46:39 -04:00
Jeremy Stretch
2914276837 Merge branch 'develop' into feature 2024-04-22 13:23:42 -04:00
Jeremy Stretch
ed2ba3d5dc Fixes #15790: Fix live preview support for EventRule comments 2024-04-19 17:09:02 -04:00
Jeremy Stretch
8c333d3a03 Closes #15547: Add comments field to CustomField model 2024-04-19 15:10:06 -04:00
Jeremy Stretch
cdb193d442 Closes #15618: Always use ISO 8601 date & time formatting (#15737)
* Introduce the isodate(), isotime(), and isodatetime() template filters

* Display the relative time on mouse hover

* Render journal entry times in ISO 8601 format

* Use ISO 8601 format when displaying dates & times in a table

* Standardize the use of DateTimeColumn across all tables
2024-04-17 11:46:47 -04:00
Arthur Hanson
289b68c9b7 15671 save module before sync_classes (#15675)
* 15671 save module before sync_classes

* 15671 don't return save
2024-04-15 13:22:56 -04:00
Jeremy Stretch
8d7f90f359 Fixes #15605: Account for older sequence name in migration 2024-04-10 16:17:01 -04:00
Jeremy Stretch
521806005d Fixes #15616: Tweak button class for invalid custom links 2024-04-05 14:17:58 -04:00
Arthur
93af5545cd 15597 add button_class choices to import form 2024-04-03 13:06:53 -04:00
Jeremy Stretch
75f5af199b Merge branch 'develop' into feature 2024-04-03 08:43:12 -04:00
Arthur Hanson
cc979e110f 15553 change graphql sub-queries from functions to types (#15557)
* 15553 change graphql list to types

* 15553 review changes
2024-03-29 14:54:31 -04:00