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
1f2f0860fe
Merge branch 'develop' into feature
2023-12-27 16:34:38 -05:00
3f4a65cc5c
added ! to safe characters
2023-12-21 15:10:38 -05:00
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
5d57e9863d
#14132 : Simplify form logic for script EventRules
2023-12-04 10:57:29 -05:00
b812a50ca2
Closes #14361 : Add a description field to Webhook ( #14380 )
2023-11-30 17:02:45 -05:00
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
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
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
2544e2bf18
Fixes #13622 : Fix exception when viewing current config and no revisions have been created
2023-08-31 11:11:56 -04:00
eb9a804914
#12591 : Add a dedicated view for the active config revision
2023-08-30 11:13:56 -04:00
914588f55d
Merge branch 'develop' into feature
2023-08-09 15:31:21 -04:00
dcdb4d27ec
12665 add semicolon to link sanitation safe string
2023-08-09 14:49:34 -04:00
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
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
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
837be4d45f
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
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
f1858a7c23
Fixes #13011 : Allow comma in custom links
2023-06-27 08:00:33 -04:00
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
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
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
e635f0defd
Merge branch 'develop' into feature
2023-06-14 16:32:56 -07:00
b4a3156046
9077 audit alters_data=True
2023-06-14 14:23:55 -04:00
928a34674e
change link parsing from quote_plus to quote #12822
2023-06-14 14:16:04 +05:30
bf1c191b2e
Fixes #12694 : Strip leading & trailing whitespace from custom link URL & text
2023-05-24 15:45:24 -04:00
6109bef700
Merge branch 'develop' into feature
2023-04-27 12:11:08 -04:00
4355085124
Fixes #12355 : Exclude additional characters from url encode
2023-04-26 15:53:14 -07:00
f49e4ee512
Merge branch 'develop' into feature
2023-04-26 15:09:51 -04:00
89fa546a14
Merge pull request from GHSA-92x4-vfjf-rmf7
2023-04-21 15:08:04 -04:00
08017c51f6
Merge branch 'develop' into feature
2023-04-07 13:00:00 -04:00
fbc23424a6
Update models.py
...
Change default MIME-Type as discussed under #12095
2023-03-30 16:58:41 -04:00
15590f1f48
Merge branch 'develop' into feature
2023-03-28 14:19:08 -04:00
654e32cbbe
11933 saved filters clone of content-types and add m2m field cloning ( #12014 )
...
* 11933 saved filters clone of content-types and add m2m field cloning
* Fix JSON rendering
* Add content_types to CustomLink.clone()
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-03-28 09:53:57 -04:00
835af32213
12008 make export templates cloneable
2023-03-28 09:45:44 -04:00
82080ef491
Remove the old JobResult model
2023-03-27 14:20:13 -04:00
40572b543f
Rename JobResult to Job and move to core
2023-03-27 14:20:13 -04:00
ea1801bad3
Refactor extras.models
2023-03-24 21:25:22 -04:00
f7a2eb8aef
Closes #11890 : Sync/upload reports & scripts ( #12059 )
...
* Initial work on #11890
* Consolidate get_scripts() and get_reports() functions
* Introduce proxy models for script & report modules
* Add add/delete views for reports & scripts
* Add deletion links for modules
* Enable resolving scripts/reports from module class
* Remove get_modules() utility function
* Show results in report/script lists
* Misc cleanup
* Fix file uploads
* Support automatic migration for submodules
* Fix module child ordering
* Template cleanup
* Remove ManagedFile views
* Move is_script(), is_report() into extras.utils
* Fix URLs for nested reports & scripts
* Misc cleanup
2023-03-24 21:00:36 -04:00
ecb8f1599d
#11558 : Set data_synced time under model's clean()
2023-03-20 15:45:48 -04:00
08bdb54cb4
#11558 : Disable sync button if RQ worker not running
2023-03-20 15:12:11 -04:00
9219397208
#8958 : Declare constants for event types
2023-03-20 13:04:05 -04:00
e015da9e4c
Undo change to default status for object type_* fields on Webhook
2023-03-07 18:01:32 -05:00
4de64d783e
Add trigger_webhooks() to JobResult
2023-03-07 18:01:32 -05:00
a8c331f88a
Replace JobResult.set_status() with terminate()
2023-03-07 18:01:32 -05:00
697feed257
Add type_job_start & type_job_end to Webhook
2023-03-07 18:01:32 -05:00
96a79c2126
Closes #11737 : ChangeLoggedModel should inherit WebhooksMixin
2023-02-19 20:09:51 -05:00
ac87ce733d
Closes #11693 : Enable remote data synchronization for export templates
2023-02-19 20:09:51 -05:00
d8784d4155
Closes #11558 : Add support for remote data sources ( #11646 )
...
* WIP
* WIP
* Add git sync
* Fix file hashing
* Add last_synced to DataSource
* Build out UI & API resources
* Add status field to DataSource
* Add UI control to sync data source
* Add API endpoint to sync data sources
* Fix display of DataSource job results
* DataSource password should be write-only
* General cleanup
* Add data file UI view
* Punt on HTTP, FTP support for now
* Add DataSource URL validation
* Add HTTP proxy support to git fetcher
* Add management command to sync data sources
* DataFile REST API endpoints should be read-only
* Refactor fetch methods into backend classes
* Replace auth & git branch fields with general-purpose parameters
* Fix last_synced time
* Render discrete form fields for backend parameters
* Enable dynamic edit form for DataSource
* Register DataBackend classes in application registry
* Add search indexers for DataSource, DataFile
* Add single & bulk delete views for DataFile
* Add model documentation
* Convert DataSource to a primary model
* Introduce pre_sync & post_sync signals
* Clean up migrations
* Rename url to source_url
* Clean up filtersets
* Add API & filterset tests
* Add view tests
* Add initSelect() to HTMX refresh handler
* Render DataSourceForm fieldsets dynamically
* Update compiled static resources
2023-02-19 20:09:51 -05:00
1354947434
Get the queue from QUEUE_MAPPINGS when deleting JobResults
2023-01-09 08:22:40 -05:00