Jeremy Stretch
11f228cae9
Fixes #20033 : Fix exception when bulk deleting bookmarks
2025-08-06 10:29:17 -04:00
Jeremy Stretch
e5d6c71171
Fixes #19633 : Log all evaluations of invalid event rule conditions ( #19885 )
...
CI / build (20.x, 3.10) (push) Waiting to run
CI / build (20.x, 3.11) (push) Waiting to run
CI / build (20.x, 3.12) (push) Waiting to run
* flush_events() should catch only import errors
* Fixes #19633 : Log all evaluations of invalid event rule conditions
* Correct comment
2025-07-15 10:25:25 -05:00
Jeremy Stretch
d55f02b25f
#14591 , #17841 : Adjust default weighting ( #19155 )
...
* #14591 , #17841 : Adjust default weighting
* Fix tests
2025-04-11 14:27:55 -05:00
Jeremy Stretch
bb5057c063
Closes #14591 : Saved table configurations ( #19101 )
...
* Add SavedTableConfig
* Update table configuration logic to support TableConfigs
* Update table config link when updating table
* Correct docstring
* Misc cleanup
* Use multi-select widgets for column selection
* Return null config params for tables with no model
* Fix auto-selection of selected columns
* Update migration
* Clean up template
* Enforce enabled/shared flags
* Search/filter by table name
* Misc cleanup
* Fix population of selected columns
* Ordering field should not be required
* Enable cloning for TableConfig
* Misc cleanup
* Add model documentation for TableConfig
* Drop slug field from TableConfig
* Improve TableConfig validation
* Remove add button from TableConfig list view
* Fix ordering validation to account for leading hyphens
2025-04-10 15:48:02 -05:00
Renato Almeida de Oliveira
fbd6d8c7fc
Closes #17653 : Add function to trim whitespaces in export templates via jinja environment settings ( #19078 )
...
* Create RenderMixin, and unify template_code rendering and exporting
* Join migrations
* Add DEFAULT_MIME_TE constant
* Move RenderMixin to extras.models.mixins, Rename RenderMixin to RenderTemplateMixin
* Add render_jinja2 to __all__
* Rename ConfigTemplateFilterForm rendering FieldSet
* ConfigTemplate lint
* Simplify ExportTemplate get_context
* Fix table order, and add fields for translations
* Update Serializers
* Update forms, tables, graphQL, API
* Add extra tests for ConfigTemplate and ExportTemplate
* Documentation update
* Fix typo
* Misc cleanup
* Clean up template layouts
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2025-04-08 10:37:15 -04:00
Jason Novinger
80440fd025
Fixes #17443 : Adds ExportTemplate.file_name field ( #18911 )
...
* Fixes #17443 : Adds ExportTemplate.file_name field
* Addresses PR feedback
- Adds `file_name` to `ExportTemplateBulkEditForm.nullable_fields`
- Shortens max length of `ExportTemplate.file_name` to 200 chars
- Adds tests for `ExportTemplateFilterSet.file_extension`
* Fixes migration conflict caused by fix for #17841
2025-03-20 09:17:56 -04:00
Jeremy Stretch
343a4af591
Closes #18022 : Extend linter (ruff) to enforce line length limit (120 chars) ( #18067 )
...
* Enable E501 rule
* Configure ruff formatter
* Reformat migration files to fix line length violations
* Fix various E501 errors
* Move table template code to template_code.py & ignore E501 errors
* Reformat raw SQL
2024-11-21 15:58:11 -05:00
Jeremy Stretch
44a9350986
Closes #16886 : Dynamic event types ( #16938 )
...
* Initial work on #16886
* Restore GraphQL filter
* Remove namespace
* Add Event documentation
* Use MultipleChoiceField for event_types
* Fix event_types field class on EventRuleImportForm
* Fix tests
* Simplify event queue handling logic
* Misc cleanup
2024-07-22 08:12:04 -04:00
Jeremy Stretch
853d990c03
Closes #16388 : Move change logging resources from extras to core ( #16545 )
...
* Initial work on #16388
* Misc cleanup
2024-06-17 08:03:06 -04:00
Jeremy Stretch
77a4300888
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
Jeremy Stretch
a49eb80f9e
Move dict_to_querydict() and normalize_querydict() to utilities.querydict
2024-03-22 08:59:52 -04:00
Jeremy Stretch
1d3efc90c0
Move utilities.utils.render_jinja2() to utilities.jinja2
2024-03-22 08:59:52 -04:00
Jeremy Stretch
2a3b85a32f
Move clean_html() & foreground_color() to utilities.html
2024-03-22 08:59:52 -04:00
Jeremy Stretch
0e89f46601
#15277 : Clean up references to object types in templates
2024-03-04 11:49:39 -05:00
Jeremy Stretch
e0165539b3
Rename ImageAttachment.content_type to object_type
2024-03-04 08:33:44 -05:00
Jeremy Stretch
ce6b2666a9
Rename SavedFilter.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
bef17e5a95
Rename ExportTemplate.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
e51d71d7e6
Rename EventRule.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
ba514aceac
Rename CustomLink.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
Arthur Hanson
ca2ee436a0
Closes #14438 : Database representation of scripts
...
- Introduces the Script model to represent individual Python classes within a ScriptModule file
- Automatically migrates jobs & event rules
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-23 08:27:37 -05:00
Abhimanyu Saharan
a87d76ad17
Fixes user delete when they have a bookmark ( #14867 )
...
* fixes user delete when they have a bookmark #14851
* Include migration for user field
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-01-19 15:23:20 -05:00
Jeremy Stretch
1f2f0860fe
Merge branch 'develop' into feature
2023-12-27 16:34:38 -05:00
Azmodeszer
3f4a65cc5c
added ! to safe characters
2023-12-21 15:10:38 -05:00
Jeremy Stretch
b532435a6d
Closes #14436 : Add indexes for all GenericForeignKey fields ( #14463 )
...
* Closes #14436 : Add PostgreSQL indexes for all GenericForeignKeys
* Add note about GFK indexes to developer docs
2023-12-07 14:02:51 -05:00
Jeremy Stretch
5d57e9863d
#14132 : Simplify form logic for script EventRules
2023-12-04 10:57:29 -05:00
Jeremy Stretch
b812a50ca2
Closes #14361 : Add a description field to Webhook ( #14380 )
2023-11-30 17:02:45 -05:00
Arthur Hanson
a38a38218b
14132 Add EventRule - change webhook and add in script processing to events ( #14267 )
...
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-30 16:36:33 -05:00
Jeremy Stretch
975a647d9a
Closes #14312 : Move ConfigRevision to core ( #14328 )
...
* Move ConfigRevision model & write migrations
* Move ConfigRevision resources from extras to core
* Extend migration to update original content type for ConfigRevision
2023-11-27 16:09:05 -05:00
Jeremy Stretch
e15647a2ce
Closes #14153 : Filter ContentTypes by supported feature ( #14191 )
...
* WIP
* Remove FeatureQuery
* Standardize use of proxy ContentType for models
* Remove TODO
* Correctly filter BookmarksWidget object_types choices
* Add feature-specific object type validation
2023-11-16 12:12:51 -05: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
914588f55d
Merge branch 'develop' into feature
2023-08-09 15:31:21 -04:00
Arthur
dcdb4d27ec
12665 add semicolon to link sanitation safe string
2023-08-09 14:49:34 -04:00
Jeremy Stretch
caedc8dbe3
Closes #13352 : Translation support for model verbose names ( #13354 )
...
* Update verbose_name & verbose_name_plural Meta attributes on all models
* Alter makemigrations to ignore verbose_name & verbose_name_plural changes
2023-08-03 10:41:10 -04:00
Abhimanyu Saharan
1cc78be6ca
Adds custom field on webhook model ( #13336 )
...
* adds custom field on webhook model #11936
* adds tags on webhook model #11936
* Remove extraneous import; revert change to NetBoxModelForm (no longer needed)
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-01 14:05:47 -04:00
Arthur Hanson
83bebc1bd2
Closes #13132 : Wrap verbose_name and other model text with gettext_lazy() (i18n)
...
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 11:28:07 -04:00
Jeremy Stretch
837be4d45f
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
Jeremy Stretch
6e222f8dce
Closes #8248 : User bookmarks ( #13035 )
...
* Initial work on #8248
* Add tests
* Fix tests
* Add feature query for bookmarks
* Add BookmarksWidget
* Correct generic relation name
* Add docs for bookmarks
* Remove inheritance from ChangeLoggedModel
2023-06-29 14:36:11 -04:00
Alexander Votteler
f1858a7c23
Fixes #13011 : Allow comma in custom links
2023-06-27 08:00:33 -04:00
Jeremy Stretch
290ffd408a
Fixes #12977 : Fix URL parameters for object count dashboard widgets ( #12991 )
...
* Fixes #12977 : Introduce dict_to_querydict() to ensure proper handling of QueryDicts
* Remove unused import
2023-06-26 14:21:26 -04:00
Arthur Hanson
148278a74a
12591 config params admin ( #12904 )
...
* 12591 initial commit
* 12591 detail view
* 12591 add/edit view
* 12591 edit button
* 12591 base views and forms
* 12591 form cleanup
* 12591 form cleanup
* 12591 form cleanup
* 12591 review changes
* 12591 move check for restrictedqueryset
* 12591 restore view
* 12591 restore page styling
* 12591 remove admin
* Remove edit view for ConfigRevision instances
* Order ConfigRevisions by creation time
* Correct permission name
* Use RestrictedQuerySet for ConfigRevision
* Fix redirect URL
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-06-22 14:04:24 -04:00
Arthur Hanson
518fd8cca6
12794 change User ref to get_user_model ( #12905 )
...
* 12794 change User ref to get_user_model
* 12794 call get_user_model once in tests
* 12794 call get_user_model once in tests
* 12794 use settings.AUTH_USER_MODEL for FK reference
2023-06-22 08:26:50 -04:00
Arthur
e635f0defd
Merge branch 'develop' into feature
2023-06-14 16:32:56 -07:00
Arthur
b4a3156046
9077 audit alters_data=True
2023-06-14 14:23:55 -04:00
Abhimanyu Saharan
928a34674e
change link parsing from quote_plus to quote #12822
2023-06-14 14:16:04 +05:30
jeremystretch
bf1c191b2e
Fixes #12694 : Strip leading & trailing whitespace from custom link URL & text
2023-05-24 15:45:24 -04:00
jeremystretch
6109bef700
Merge branch 'develop' into feature
2023-04-27 12:11:08 -04:00
x64x6a
4355085124
Fixes #12355 : Exclude additional characters from url encode
2023-04-26 15:53:14 -07:00
jeremystretch
f49e4ee512
Merge branch 'develop' into feature
2023-04-26 15:09:51 -04:00