dcdb4d27ec
12665 add semicolon to link sanitation safe string
2023-08-09 14:49:34 -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
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
35273cc87f
Add ExportTemplatesMixin to JournalEntry model ( #11251 )
...
* Add ExportTemplatesMixin to JournalEntry model
* Move mixin ahead of base class
Co-authored-by: Jeremy Stretch <jstretch@ns1.com >
2023-01-05 16:26:48 -05:00
b35b33e798
Use the start time to calculate duration of jobs instead of created time
2022-12-22 09:52:05 -05:00
4297c65f87
Closes #10945 : Enable recurring execution of scheduled reports & scripts ( #11096 )
...
* Add interval to JobResult
* Accept a recurrence interval when executing scripts & reports
* Cleaned up jobs list display
* Schedule next job only if a reference start time can be determined
* Improve validation for scheduled jobs
2022-12-08 18:17:13 -05:00
6ffd8aa320
Introduce constants for RQ queue names
2022-12-08 09:58:52 -05:00
080a001118
Allow redefining internally used queues
2022-12-08 09:45:21 -05:00
0bcc59a1e9
#8366 : Add started field to JobResult
2022-11-15 15:06:11 -05:00
87727c71f7
#8366 : name scheduled_time to scheduled for consistency with other fields
2022-11-15 13:37:13 -05:00
640fd8045d
#9887 : Add missing model documentation links
2022-11-15 11:00:13 -05:00
355678274d
#9623 : Add slug field to SavedFilter
2022-11-15 10:44:12 -05:00
6eba5d4d96
10300 initial translation support use gettext
2022-11-11 08:47:29 -05:00
484efdaf75
Closes #9623 : Implement saved filters ( #10801 )
...
* Initial work on saved filters
* Return only enabled/shared filters
* Add tests
* Clean up filtering of usable SavedFilters
2022-11-02 12:27:53 -04:00
16919cc1d9
Closes #10761 : Enable associating an export template with multiple object types
2022-10-26 13:30:45 -04:00
9e8234bb45
Closes #8274 : Enable associating a custom link with multiple object types
2022-10-26 11:39:26 -04:00
ed2f7f1236
Job scheduling review changes
2022-10-21 10:31:30 +02:00
1d9808a92a
Added scheduled_time field to JobResult model
2022-10-16 13:42:28 +02:00
ef0b455b05
Called super delete method before deleting JobResult task.
...
Done to avoid having deleted a task on accident if the deleting of the JobResult fails.
2022-10-09 21:16:26 +02:00
679a9e839b
Work on job scheduling:
...
* Added JobResult form filtersets
* Change housekeeping cleanup delete from `_raw_delete` to `delete` to make sure scheduled tasks are cancelled
* Change default sort of JobResult table to -created
* Added `delete` override to `JobResult` to remove scheduled tasks from RQ when a JobResult is deleted
* Updated js/css dist files. Will need to be redone when develop is merged to feature.
2022-10-09 21:05:31 +02:00
53c8a48244
Merge branch 'feature' into 8366-job-scheduling
...
Sync with upstream
2022-10-09 11:18:47 +02:00
c481a1b6a2
Merge branch 'develop' into feature
2022-10-05 10:28:48 -04:00
fec8d1bc2f
Fixes #10423 : Enforce object type validation when creating journal entries
2022-10-04 15:26:52 -04:00
f51415cf2c
Replace unique_together with UniqueConstraints
2022-09-27 15:35:24 -04:00