Commit Graph

2437 Commits

Author SHA1 Message Date
Abhimanyu Saharan
e1d3fceee7 disables map button when MAP_URL is none #12498 2023-05-05 15:04:36 -04:00
Abhimanyu Saharan
c25629253e 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
Arthur Hanson
87fd22dca5 12416 warning for missing script file (#12456)
* 12416 warning for missing script file

* 12416 widen exception catching for internal script error

* Update netbox/extras/models/scripts.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

* 12416 update from review feedback

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-05-05 09:37:38 -04:00
Patrick Hurrelmann
82cee44c30 Fixes #12496: Remove account field from provider template 2023-05-05 08:27:29 -04:00
Daniel Sheppard
499eefd6c1 Fixes: #10757 - Change IP interface assignment to use new selector (#12452)
* Fixes: #10757 - Change interface assignment to use new selector.  Perform the same change to the NAT assignment as well.

* Remove nat_vrf from form and remove query_params that are not required anymore
2023-05-04 13:59:28 -04:00
Arthur Hanson
1e5d1b4a76 12433 update object list widget to correctly parameterize urls (#12434)
* 12433 update object list widget to correctly parameterize urls

* Update netbox/extras/dashboard/widgets.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

* 12433 fix indent

* Correct per_page query parameter

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-05-03 09:20:53 -04:00
Austin de Coup-Crank
2ecb6418a8 Closes 10759: Enable markdown support for custom field descriptions (#12344)
* enable markdown in custom field descriptions

* Closes #10759: Enable markdown support for custom field descriptions

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-05-02 16:47:22 -04:00
jeremystretch
c7e54a7c2d Fixes #12384: Add a three-second timeout for RSS reader widget 2023-05-01 16:19:39 -04:00
jeremystretch
d669251679 Merge branch 'develop' into feature 2023-04-26 15:09:51 -04:00
Austin de Coup-Crank
14c087c559 Fixes #11623: obfuscate Wi-Fi PSKs (#12244)
* Fixes #11623: obfuscate Wi-Fi PSKs

* yarn linting fixes

* include static files
2023-04-24 12:13:28 -04:00
PieterL75
c11bd52cf0 Fixes #10987: Show rack-list dropdown in rack (#11779)
* Intial. 2 ways the racknavigation displayed

* show active rack in dropdown

* auto hide/show when viewport reduces

* Dropdown only

* Update links to use get_absolute_url()

---------

Co-authored-by: Pieter Lambrecht <pieter.lambrecht@sentia.com>
Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-04-24 12:01:33 -04:00
jeremystretch
25bcc48a58 Mark Provider.account as deprecated 2023-04-21 16:21:04 -04:00
jeremystretch
25775668b6 #10520: Restore ability to edit platform NAPALM fields via UI 2023-04-21 11:21:42 -04:00
jeremystretch
4087093a44 Add scheduling_enabled parameter for scripts 2023-04-18 08:45:31 -04:00
jeremystretch
c9a427a442 Closes #12187: Add button to download rendered config from UI 2023-04-17 16:37:02 -04:00
jeremystretch
d6b87a13db Clean up script & report job views 2023-04-17 15:27:12 -04:00
jeremystretch
1051b8f076 Add general purpose view for individual jobs 2023-04-17 15:08:18 -04:00
Jeremy Stretch
8e9ddd0189 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
f9faaed061 Merge branch 'develop' into feature 2023-04-12 17:38:16 -04:00
Austin de Coup-Crank
8ee6cb8966 Closes #12040: fix bulk import tab selection 2023-04-12 13:01:04 -04:00
jeremystretch
a79d997d4d Closes #10414: Enable general purpose image attachments for device types 2023-04-10 16:43:40 -04:00
jeremystretch
8a5cc7aace Closes #11453: Display a warning banner when DEBUG is enabled 2023-04-10 09:12:04 -04:00
jeremystretch
f039d36522 Merge branch 'develop' into feature 2023-04-07 13:00:00 -04:00
jeremystretch
5982e14814 Fixes #12190: Fix form layout for plugin textarea fields 2023-04-07 10:03:47 -04:00
jeremystretch
e99f04e551 Closes #12119: Lock & unlock dashboard layout 2023-04-05 09:59:22 -04:00
jeremystretch
cf10700eff Fixes #12112: Do not link data source URL for local paths 2023-03-31 09:06:16 -04:00
jeremystretch
af822e9f18 #9416: Add view to reset user's dashboard 2023-03-30 12:46:06 -04:00
jeremystretch
012a002581 Fixes #12061: Improve handling of insufficient permissions for widget content 2023-03-30 10:03:41 -04:00
jeremystretch
c1e83cad47 Fixes #11660: Catch RQ timeout exception when syncing data sources 2023-03-30 08:51:47 -04:00
jeremystretch
0078119bf7 Closes #12085: Add a file source view for reports 2023-03-29 16:58:35 -04:00
Jeremy Stretch
648d0711e5 #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
Daniel Sheppard
1413e2f77d Closes: #9047 - Add Provider Accounts (#12057)
* #9047 - ProviderAccount

* #9047 - Move to new selector types

* #9047 - Re-introduce provider FK to Circuit model

* #9047 - Fix broken tests

* Misc cleanup

* Revert errant change

* Fix tests

* Update circuit filter form

---------

Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-03-29 08:27:11 -04:00
Jeremy Stretch
409c1aa118 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
f1cf6c4494 Merge branch 'develop' into feature 2023-03-28 14:19:08 -04:00
Arthur
5aa58f4ea7 12038 show vc priority with placeholder 2023-03-28 10:13:51 -04:00
Arthur
c1f8a7d49f 12029 add description to virtual description add 2023-03-28 10:10:05 -04:00
jeremystretch
703eb12039 Closes #12062: Avoid caching invalid RSS feed content 2023-03-27 09:29:51 -04:00
Jeremy Stretch
20fa941687 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
6d8c168640 #9416: cleanup & widget improvements 2023-03-22 15:44:01 -04:00
jeremystretch
f2c0b26a66 #11558: Disable sync button if RQ worker not running 2023-03-20 15:12:11 -04:00
jeremystretch
6f949f64f2 Merge branch 'develop' into feature 2023-03-20 08:54:22 -04:00
Jeremy Stretch
20ef576da6 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
jeremystretch
d72f5a381a Remove unused template 2023-03-15 14:08:56 -04:00
jeremystretch
2411c82d34 #10054: Simplify cable forms 2023-03-15 14:01:01 -04:00
Ryan Merolle
213c8cc5fb Add fieldsets functionality to scripts to allow for form field groupings (#11880)
* update script template

* update docs

* introduce default_fieldset

* correct custom script docs

* default to use fieldsets in scripts

* update scripts docs for new behavior

* Misc cleanup

---------

Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-03-14 15:50:49 -04:00
Arthur
1a1d6cca7a 8749 clone custom fields 2023-03-14 15:44:16 -04:00
jeremystretch
9b3651bd35 Closes #11780: Enable loading import data from remote sources 2023-03-14 14:53:26 -04:00
Jeremy Stretch
87847ec2e6 Closes #11826: RSS feed widget (#11976)
* Add feedparser as a dependency

* Introduce RSSFeedWidget

* Clean up widget templates
2023-03-14 11:59:27 -04:00
jeremystretch
041be7d518 Closes #11893: Convert ChangeLogWidget for use with all models 2023-03-14 08:39:18 -04:00
Jeremy Stretch
763611b15a Closes #10054: Implement advanced UI controls for object selection (#11952)
* WIP

* WIP

* WIP

* Make object selector functional

* Replace extraneous form fields with selector widgets

* Avoid overlap with filterset field names

* Show checkmarks next to visibile filters

* Update results automatically when searching

* Include selector for device/VM component parent fields

* Use selector for filtering VLAN group/site

* Limit selector to 100 results
2023-03-13 12:44:26 -04:00