Jeremy Stretch
6678880db5
Closes #9816 : VPN tunnel support ( #14276 )
...
- Introduces a new `vpn` app with the following models:
- Tunnel
- TunnelTermination
- IKEProposal
- IKEPolicy
- IPSecProposal
- IPSecPolicy
- IPSecProfile
2023-11-27 16:17:15 -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
18422e1d26
Closes #14326 : Move form mixins ( #14327 )
...
* Move form mixins from extras app to netbox app
* Remove obsolete extras/admin.py
2023-11-22 13:49:26 -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
3d20276f55
Closes #14134 : Display additional object attributes in global search results ( #14154 )
...
* WIP
* Add display_attrs for all indexers
* Linkify object attributes
* Clean up prefetch logic
* Use tooltips for display attributes
* Simplify template code
* Introduce get_indexer() utility function
* Add to examples in docs
* Use tooltips to display long strings
2023-11-09 16:21:09 -05:00
Jeremy Stretch
ac91d4e5e5
Merge branch 'develop' into feature
2023-11-09 16:06:26 -05:00
Abhimanyu Saharan
e1bedb8350
restores config revision during cache clear #14182
2023-11-09 14:50:45 -05:00
Chris Mills
dfef89ab88
Fix ordering on JobTable. #14223
2023-11-09 08:50:15 -05:00
Jeremy Stretch
8dcbd66de6
Closes #13427 : Public model registration ( #14152 )
...
* Initial work on #13427
* Clarify documentation
* Reference public models registry when populating models for ConfigTemplate context
2023-11-03 10:32:59 -04:00
Jeremy Stretch
77208bf5f3
Fix migrations
2023-10-31 08:41:24 -04:00
Jeremy Stretch
7323668dd0
Closes #13334 : Record error message on failed jobs ( #14106 )
2023-10-31 08:34:57 -04:00
Jeremy Stretch
30ce9edf1c
Closes #13381 : Enable plugins to register custom data backends ( #14095 )
...
* Initial work on #13381
* Fix backend type display in table column
* Fix data source type choices during bulk edit
* Misc cleanup
* Move backend utils from core app to netbox
* Move backend type validation from serializer to model
2023-10-24 11:35:53 -04:00
Jeremy Stretch
450790ab4a
Closes #13550 : Refactor view action mappings ( #14062 )
...
* Merge actions and action_perms into a single mapping
* Update obsolete permission maps
* Update obsolete action lists
* Normalize empty permission mappings
* Cleanup
* Add deprecation warnings
* Introduce DEFAULT_ACTION_PERMISSIONS constant
2023-10-20 15:08:09 -04:00
Jeremy Stretch
75b71890a4
Misc i18n cleanup
2023-09-11 15:59:50 -04:00
Jeremy Stretch
296166da95
Fixes #13656 : Correct decoding of BinaryField content for Django 4.2
2023-09-01 11:06:19 -04:00
Jeremy Stretch
0cdc26e013
Fixes #13642 : Move migration logic overrides from individual mgmt commands to core
2023-08-31 14:34:26 -04: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
2a4e3dd09f
Merge branch 'develop' into feature
2023-08-29 10:45:55 -04:00
Alexander Haase
16e2283d19
Fix git DataSource clone authentication
...
Anonymous git clones (in GitLab) require the username and password not
to be set in order to successfully clone. This patch will define clone
args only, if the username passed is not empty.
2023-08-15 13:29:03 -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
Jeremy Stretch
c1ca8d5d8d
Closes #12906 : Make boto3 & dulwich libraries optional ( #13324 )
...
* Initial work on #12906
* Catch import errors during backend init
* Tweak error message
* Update requirements & add note to docs
2023-08-01 11:13:35 -04:00
Arthur Hanson
e625a5667c
Closes #13279 : Wrap choice labels with gettext()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 17:31:07 -04:00
Arthur Hanson
e284cd7e54
Closes #13150 : Wrap table column headers with gettext()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 14:35:28 -04:00
Arthur Hanson
b7a9649269
Closes #13149 : Wrap form field labels with gettext_lazy()
...
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 12:52:38 -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
d52c18ce38
Merge branch 'develop' into feature
2023-07-28 10:36:09 -04:00
Abhimanyu Saharan
0276f29067
adds sensitive_parameters to DataBackend #12625
2023-07-27 16:33:29 -04:00
Jeremy Stretch
837be4d45f
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
Abhimanyu Saharan
49af70a77d
fixes choice field schema for response #12960
2023-06-23 14:21:51 -04:00
Arthur Hanson
69b818ed33
12237 update to Django 4.2 / psycopg3 ( #12916 )
...
* 12237 upgrade django and psycopg
* 12237 add migration
* 12237 rename migration
* 12237 update requirements
* 12237 fix migration
* Update base requirements
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-06-23 10:38:08 -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
c8cbced55e
fix permission #12818
2023-06-14 14:43:18 +05:30
Abhimanyu Saharan
2204735e9f
Adds rq retry options ( #12588 )
...
* adds rq retry options #12327
* Clean up docs; disable retries of failed jobs by default
* Pass a Retry object only if RQ_RETRY_MAX is non-zero
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-05-16 14:10:44 -04:00
Tobias Genannt
ab69faab87
Fix #12483 : Using mutable dulwich configuration
2023-05-04 16:56:45 -04:00
Tobias Genannt
4df517e4da
Fix #12464 : Only set username, password for HTTP/s ( #12482 )
2023-05-04 13:34:04 -04:00
jeremystretch
20f0464824
Fix OpanAPI schema base path
2023-05-01 17:01:51 -04:00
Abhimanyu Saharan
d3206d9bf9
Added method to update viewset description ( #12218 )
...
* wip
* wip
* updated description on viewset
* fixed model name
* Update schema.py
* Update schema.py
2023-04-25 14:37:05 -04:00
Arthur
dda56f21f3
#12256 remove read-only fields from writable serializers
2023-04-20 14:11:55 -04:00
Arthur
31c909c368
#12149 remove spectacular choice mapping fixup internal one
2023-04-20 14:10:05 -04:00
jeremystretch
9caa7f6b7c
Move SyncedDataMixin from extras to core
2023-04-18 15:18:19 -04:00
jeremystretch
197c6a1cbf
Add scheduling_enabled parameter for scripts
2023-04-18 08:45:31 -04:00
jeremystretch
86d185fe05
Fix validation of DataSource URL
2023-04-17 16:00:35 -04:00
Tobias Genannt
9ef1fb1e3a
Use dulwich as Git client
2023-04-17 15:53:50 -04:00
jeremystretch
a0893c2e8b
Add general purpose view for individual jobs
2023-04-17 15:08:18 -04:00
Jeremy Stretch
8b040ff930
Closes #12129 : Enable automatic synchronization of objects when DataFiles are updated ( #12262 )
...
* Closes #12129 : Enable automatic synchronization of objects when DataFiles are updated
* Cleanup
2023-04-17 10:35:17 -04:00
Jeremy Stretch
d470848b29
Closes #12246 : General cleanup of utilities modules
...
* Clean up base modules
* Clean up forms modules
* Clean up templatetags modules
* Replace custom simplify_decimal filter with floatformat
* Misc cleanup
* Merge ReturnURLForm into ConfirmationForm
* Clean up import statements for utilities.forms
* Fix field class references in docs
2023-04-14 10:33:53 -04:00
jeremystretch
872b70c2b5
Fixes #12145 : Employ HTMXSelect widget to fix inclusion of <select> field values during form regeneration
2023-04-03 12:49:26 -04:00
kkthxbye
e966d1df47
Merge pull request #12139 from tobiasge/fix-data-source-logs
...
Fix #12138 : Log correct count when files were deleted
2023-04-02 22:29:59 +02:00
Tobias Genannt
e7d1a43541
Fixes #12142 : Add S3Backend to __all__
2023-04-01 11:28:33 +02:00
Tobias Genannt
5ff9483d13
Log correct count when files were deleted
2023-04-01 10:51:33 +02:00
jeremystretch
bd38b50e5e
Fixes #12105 : Prevent data sources from becoming stuck in syncing status when an exception is raised
2023-03-31 09:52:07 -04:00
jeremystretch
730eb2e83b
Fixes #12112 : Do not link data source URL for local paths
2023-03-31 09:06:16 -04:00
jeremystretch
cdad50e051
Fixes #12109 : Fix migration error when replicating more than 100 job results
2023-03-31 08:59:15 -04:00
Arthur Hanson
ecd0c56554
Closes #9608 : Move from drf-yasg to spectacular
...
Co-authored-by: arthanson <worldnomad@gmail.com>
Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-03-30 14:32:59 -04:00
jeremystretch
06dec6a2d9
Fixes #12046 : Fix URL parsing for git data sources
2023-03-30 09:07:56 -04:00
jeremystretch
f965608791
Fixes #11660 : Catch RQ timeout exception when syncing data sources
2023-03-30 08:51:47 -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
61e2073775
#12067 : Fix ordering for JobResult replication
2023-03-27 14:25:42 -04:00
jeremystretch
b3d2020045
Replicate JobResults to new Job model
2023-03-27 14:20:13 -04:00
jeremystretch
34236ff468
Update release notes
2023-03-27 14:20:13 -04:00
jeremystretch
40572b543f
Rename JobResult to Job and move to core
2023-03-27 14:20:13 -04:00
jeremystretch
5c0ce96b6f
Reorganize management commands
2023-03-24 21:11:10 -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
Arthur Hanson
c57d71a9db
11291 optimize GraphQL queries ( #11943 )
...
* 11291 initial optimize graphql queries
* 11291 add optimizer to schemas
* 11291 cleanup fields.py
* 11291 fix fragment query
2023-03-23 08:42:18 -04:00
jeremystretch
a098c3b0c1
#11558 : Introduce GIT_PATH configuration setting
2023-03-22 11:25:03 -04:00
jeremystretch
08bdb54cb4
#11558 : Disable sync button if RQ worker not running
2023-03-20 15:12:11 -04:00
jeremystretch
13d604d44e
Fix rendering of form textareas
2023-03-20 13:18:09 -04:00
Jeremy Stretch
206d578bc3
Closes #10242 : Redirect to filtered objects list after bulk import ( #12001 )
...
* Redirect user to filtered objects list after bulk import
* Remove obsolete table attribute from bulk import views
2023-03-17 09:23:40 -04:00
Jeremy Stretch
cacc418cd5
Closes : #11781 : Add support for Amazon S3 remote data sources ( #11986 )
...
* Add boto3 as a dependency
* Add Amazon S3 backend for remote data sources
* Update docs to include Amazon S3 support
2023-03-15 12:11:52 -04:00
jeremystretch
a8c331f88a
Replace JobResult.set_status() with terminate()
2023-03-07 18:01:32 -05:00
Arthur Hanson
36771e821c
10520 remove Napalm code references ( #11768 )
...
* 10520 remove all Napalm code references
* 10520 remove lldp
* 10520 remove config, status - rebuild js
* 10520 re-add config parameters
* 10520 re-add serializer
* 10520 update docs
2023-02-24 15:38:50 -05:00
jeremystretch
c84f0de8f8
#11625 : Employ HTMX form rendering for device & VM interfaces
2023-02-19 20:09:52 -05:00
jeremystretch
368e774ceb
Add index for (source, path) to DataFile
2023-02-19 20:09:52 -05:00
Jeremy Stretch
b9bd96f0c7
Closes #11765 : Remove StaticSelect & StaticSelectMultiple ( #11767 )
...
* Remove StaticSelect, StaticSelectMultiple form widgets
* Tag custom ChoiceField, MultipleChoiceField classes for removal in v3.6
2023-02-19 20:09:51 -05:00
jeremystretch
a1c9f7a2c6
DataFile should not inherit from ChangeLoggingMixin
2023-02-19 20:09:51 -05:00
kkthxbye-code
8d68b6a2e6
Fixes #11694 - Remove obsolete SmallTextarea widget
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
jeremystretch
664132281e
Fixes #11659 : Include all relevant DataFile attributes during bulk update
2023-02-19 20:09:51 -05:00
Jeremy Stretch
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