Arthur Hanson
11697d19a6
12510 Merge Scripts and Reports ( #14976 )
...
* 12510 move reports to use BaseScript
* 12510 merge report into script view
* 12510 add migration for job report to script
* 12510 update templates
* 12510 remove reports
* 12510 cleanup
* 12510 legacy jobs
* 12510 legacy jobs
* 12510 fixes
* 12510 review changes
* 12510 review changes
* 12510 update docs
* 12510 review changes
* 12510 review changes
* 12510 review changes
* 12510 review changes
* 12510 main log results to empty string
* 12510 move migration
* Introduce an internal log level for debug to simplify Script logging
* Misc cleanup
* Remove obsolete is_valid() method
* Reformat script job data (log, output, tests)
* Remove ScriptLogMessageSerializer
* Fix formatting of script logs
* Record a timestamp with script logs
* Rename _current_method to _current_test
* Clean up template
* Remove obsolete runreport management command
* Misc cleanup & refactoring
* Clean up template
* Clean up migration
* Clean up docs
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-02-07 12:02:09 -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
96ea0ac9c7
Closes #12988 : Introduce custom field choice sets ( #13195 )
...
* Initial work on custom field choice sets
* Rename choices to extra_choices (prep for #12194 )
* Remove CustomField.choices
* Add & update tests
* Clean up table columns
* Add order_alphanetically boolean for choice sets
* Introduce ArrayColumn for choice lists
* Show dependent custom fields on choice set view
* Update custom fields documentation
* Introduce ArrayWidget for more convenient editing of choices
* Incorporate PR feedback
* Misc cleanup
2023-07-19 10:26:24 -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
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
Abhimanyu Saharan
ca0e7be637
Adds bulk import for journal entry ( #12485 )
...
* adds bulk import for journal entry #12122
* lint fix
* Add kind as CSVChoiceField on JournalEntryImportForm
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-05 09:57:09 -04:00
Abhimanyu Saharan
42346702a1
Adds image attachment list view ( #12487 )
...
* adds image attachment list view #11932
* fixed typo
* Update netbox/extras/tables/tables.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
* Update netbox/extras/forms/filtersets.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
* changes as per review
* Disable ordering by size (not stored in database)
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-05-05 09:48:13 -04:00
jeremystretch
90527b799d
#9416 : Add view to reset user's dashboard
2023-03-30 12:46:06 -04:00
jeremystretch
c4891fe105
Closes #12085 : Add a file source view for reports
2023-03-29 16:58:35 -04:00
Jeremy Stretch
715592547c
#12081 : Script & report cleanup ( #12091 )
...
* start() and terminate() methods on Job should call save()
* Fix display of associated jobs
* Introduce get_latest_jobs() method on JobsMixin
* Update messaging when no reports/scripts exist
* Catch ImportErrors when rendering report/script lists
* Fix loading of nested modules
* Fix URLs for nested scripts/reports
2023-03-29 16:51:55 -04:00
Jeremy Stretch
d2a694a878
Closes #12068 : Establish a direct relationship from jobs to objects ( #12075 )
...
* Reference database object by GFK when running scripts & reports via UI
* Reference database object by GFK when running scripts & reports via API
* Remove old enqueue_job() method
* Enable filtering jobs by object
* Introduce ObjectJobsView
* Add tabbed views for report & script jobs
* Add object_id to JobSerializer
* Move generic relation to JobsMixin
* Clean up old naming
2023-03-28 15:47:09 -04:00
jeremystretch
40572b543f
Rename JobResult to Job and move to core
2023-03-27 14:20:13 -04:00
Jeremy Stretch
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
jeremystretch
2a9178af12
Merge branch 'develop' into feature
2023-03-13 11:58:37 -04:00
Aron Bergur Jóhannsson
fa60f9d2a8
Closes #11294 : Markdown Preview ( #11894 )
...
* MarkdownWidget
* Change border and color of active markdown tab
* Fix template name typo
* Add render markdown endpoint
* Static assets for markdown widget
* widget style fix and unique ids based on name
* Replace SmallTextArea with SmallMarkdownWidget
* Clear innerHTML before swapping
* render markdown directly in template
* change render markdown view path
* remove small markdown widget
* Simplify rendering logic
* Use a form to clean input Markdown data
---------
Co-authored-by: Jeremy Stretch <jstretch@ns1.com >
2023-03-09 08:21:13 -05:00
Jeremy Stretch
084a2cc52c
Closes #9416 : Dashboard widgets ( #11823 )
...
* Replace masonry with gridstack
* Initial work on dashboard widgets
* Implement function to save dashboard layout
* Define a default dashboard
* Clean up widgets
* Implement widget configuration views & forms
* Permit merging dict value with existing dict in user config
* Add widget deletion view
* Enable HTMX for widget configuration
* Implement view to add dashboard widgets
* ObjectCountsWidget: Identify models by app_label & name
* Add color customization to dashboard widgets
* Introduce Dashboard model to store user dashboard layout & config
* Clean up utility functions
* Remove hard-coded API URL
* Use fixed grid cell height
* Add modal close button
* Clean up dashboard views
* Rebuild JS
2023-02-24 16:04:00 -05:00
Jeremy Stretch
73a7a2d27a
Closes #11559 : Implement config template rendering ( #11769 )
...
* WIP
* Add config_template field to Device
* Pre-fetch referenced templates
* Correct up_to_date callable
* Add config_template FK to Device
* Update & merge migrations
* Add config_template FK to Platform
* Add tagging support for ConfigTemplate
* Catch exceptions when rendering device templates in UI
* Refactor ConfigTemplate.render()
* Add support for returning plain text content
* Add ConfigTemplate model documentation
* Add feature documentation for config rendering
2023-02-19 20:09:52 -05:00
jeremystretch
ac87ce733d
Closes #11693 : Enable remote data synchronization for export templates
2023-02-19 20:09:51 -05:00
Jeremy Stretch
678a7d17df
Closes #9073 : Remote data support for config contexts ( #11692 )
...
* WIP
* Add bulk sync view for config contexts
* Introduce 'sync' permission for synced data models
* Docs & cleanup
* Remove unused method
* Add a REST API endpoint to synchronize config context data
2023-02-19 20:09:51 -05:00
Jeremy Stretch
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
kkthxbye-code
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
kkthxbye-code
53c8a48244
Merge branch 'feature' into 8366-job-scheduling
...
Sync with upstream
2022-10-09 11:18:47 +02:00
jeremystretch
b0ba9bd83d
Closes #10608 : Register all core model views using register_model_view()
2022-10-07 17:17:58 -04:00
jeremystretch
a0bae06ff7
Replace static journaling, changelog URL paths with dynamic resolution
2022-10-06 16:21:23 -04:00
06dea8ef3f
WIP: Moving JobResults out of the admin panel
2022-09-23 13:44:24 +02:00
kkthxbye-code
cbb3378d10
Job Scheduling WIP
2022-09-23 06:45:40 +02:00
kkthxbye-code
356ff457be
Allow reports to be nested in submodules
2022-09-14 19:57:37 +02:00
kkthxbye-code
f489ffa043
Allow running scripts nested in modules/packages
2022-09-07 22:33:24 +02:00
jeremystretch
d42c59792f
#8334 : Move object changelog & journaling to generic views
2022-02-09 16:24:10 -05:00
jeremystretch
460e3fd5d6
Introduce a common URL for the creation of image attachments
2021-10-01 12:34:30 -04:00
jeremystretch
4e0b795a3c
Add UI views for webhooks
2021-06-23 21:30:23 -04:00
jeremystretch
10cbbee947
Add UI views for export templates
2021-06-23 20:56:50 -04:00
jeremystretch
276ded0119
Add UI views for custom links
2021-06-23 17:10:04 -04:00
jeremystretch
b017927c69
Add UI views for custom fields
2021-06-23 17:10:04 -04:00
jeremystretch
a296a9e109
Closes #6150 : Enable change logging for journal entries
2021-04-13 10:53:55 -04:00
Jeremy Stretch
36c903da04
Add dedicated view for tags
2021-03-26 15:25:18 -04:00
Jeremy Stretch
956e2728c2
Add bulk edit, delete views for journal entries
2021-03-17 10:41:06 -04:00
Jeremy Stretch
8be4fbbce3
Add JournalEntry list view w/filtering
2021-03-16 15:57:23 -04:00
Jeremy Stretch
1f1a62da67
Initial work on #151 : Object journaling
2021-03-16 15:00:08 -04:00
Jeremy Stretch
6a9b50f95d
Closes #5873 : Use numeric IDs in all object URLs
2021-02-26 17:23:23 -05:00
Jeremy Stretch
59091efa86
Closes #4840 : Enable change logging for config contexts
2020-07-09 17:09:03 -04:00
John Anderson
f092c107b5
PR review updates
2020-07-06 02:00:16 -04:00
Jeremy Stretch
f98fa364c0
Merge branch 'develop-2.9' into 2006-scripts-reports-background
2020-07-02 11:00:59 -04:00
Jeremy Stretch
57b73c485f
#4416 : Remove individual view for extras.Tag
2020-07-01 14:21:51 -04:00
John Anderson
3777fbccc3
Implements #2006 - run reports and scripts in the background
2020-06-29 03:50:05 -04:00
Jeremy Stretch
da906f48d9
Standardize add, import, and export functionality for tags
2020-06-12 09:48:23 -04:00
Jeremy Stretch
406b076b95
Transition ObjectEditView to use ObjectPermissionRequiredMixin
2020-05-21 13:59:19 -04:00
Jeremy Stretch
a58bbccfd3
Fixes #4094 : Convert unnecessary regular expressions to strings in URL patterns
2020-02-05 16:12:48 -05:00
Jeremy Stretch
8d547e9906
Fixes #4028 : Correct URL patterns to match Unicode characters in tag slugs
2020-01-28 09:47:33 -05:00