Alexander Haase
fb75389261
Add name attribute for BackgroundJob
...
Instead of defining individual names on enqueue, BackgroundJob classes
can now set a job name in their meta class. This is equivalent to other
Django classes and NetBox scripts.
2024-07-24 15:57:25 +02:00
Alexander Haase
58089c726a
Merge ScheduledJob into BackgroundJob
...
Instead of using separate classes, the logic of ScheduledJob is now
merged into the generic BackgroundJob class. This allows reusing the
same logic, but dynamically deciding whether to enqueue the same job
once or multiple times.
2024-07-24 14:37:30 +02:00
Alexander Haase
fd8d5378cf
Merge branch 'feature' into 15692-background-jobs
2024-07-16 23:24:26 +02:00
Jeremy Stretch
1c2336be60
Closes #16776 : Extend PluginTemplateExtension to render custom alerts for objects ( #16889 )
...
* Closes #16776 : Extend PluginTemplateExtension to render custom alerts for objects
* Fix bug in _get_registered_content()
2024-07-12 09:52:07 -04:00
Jeremy Stretch
02ae91589d
Merge branch 'develop' into feature
2024-07-09 15:16:05 -04:00
Alexander Haase
d78ddfcffb
Add documentation for jobs framework
2024-07-02 00:54:59 +02:00
Jeremy Stretch
82d8de32df
Closes #16726 : Extend PluginTemplateExtension to allow registering multiple models
2024-07-01 15:25:27 -04:00
Peter Eckel
96338c002b
Updated the documentation section about removing plugins
2024-06-30 15:08:11 -04:00
Arthur Hanson
52546608f6
15156 Add display_url to REST API ( #16412 )
...
* 15156 add display_url to REST API
* 15156 fix view name
* 15156 fix typo
* 15156 fix tests
* 15156 add url display_url to base class
* 15156 add url display_url to base class
* 15156 add url display_url to base class
* 15156 review changes
* 15156 review changes
* 15156 review changes
* 15156 review changes
* 15156 remove bogus code
* 15156 remove bogus code
* 15156 review changes
* 15156 review changes
* 15156 review changes
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-06-25 09:59:58 -04:00
Jeremy Stretch
50169365a9
Closes #16359 : Add navbar() method to PluginTemplateExtension
2024-06-05 12:34:12 -04:00
Arthur
360f3bc01b
16284 fix plugin forms doc
2024-05-28 09:07:32 -04:00
Arthur Hanson
8d11f8aa7c
14121 update plugin development docs for pyproject.toml ( #15952 )
...
* 14121 update plugin development docs for pyproject.toml
* 14121 review feedback
* Update docs/plugins/development/index.md
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* 14121 remove setup.py references
* 14121 add cookiecutter reference
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-05-09 15:06:19 -04:00
Arthur Hanson
56ea7b8714
16014 Update incorrect django-graphene reference and add link to filtering docs. ( #16015 )
...
* 16014 change ref from django-graphene to django-strawberry
* 16014 add references to filtering syntax
* 16014 remove graphene reference
* 16014 remove graphene reference
* Remove obsolete reference to Graphene
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-05-08 14:29:54 -04:00
Jeremy Stretch
46bd62fdc9
Merge branch 'develop' into feature
2024-04-22 13:23:42 -04:00
Arthur Hanson
1eca1c3d17
15803 localize help_text ( #15804 )
2024-04-22 11:42:20 -04:00
Jeff Gehlbach
f4c8f5f5b6
Add link to plugin certification program details in Plugin module of docs. Fixes #15769
2024-04-19 08:49:13 -04:00
Jeremy Stretch
b5bb732031
Closes #10696 : Break out instructions for installing & removing plugins ( #15757 )
...
* Closes #10696 : Break out instructions for installing & rmeoving plugins
* Misc cleanup
2024-04-17 11:58:14 -04:00
Markku Leiniö
4284028bb0
Closes #15727 : Add tab template context variable in the plugin doc
2024-04-17 08:30:39 -04:00
Markku Leiniö
21db54ae2f
Closes #15740 : Fix typos and deprecated List in docs ( #15741 )
...
* Fix typos in migration-v4.md
* Replace typing.List with list
typing.List is deprecated since Python 3.9
* Also replace typing.List with list in graphql-api.md
2024-04-17 08:28:03 -04:00
Jeremy Stretch
489e956d83
Merge branch 'develop' into feature
2024-04-03 08:43:12 -04:00
tobiWu
bbd7ddb7aa
Fix #15506 Update documentation for plugins index.md ( #15518 )
...
* Update documentation for plugins index.md
You should restart netbox-rq workers if you added a plugin. Otherwise you can't load modules from plugin to custom scripts later.
* Update docs/plugins/index.md
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-04-03 08:05:47 -04:00
Jeremy Stretch
dda9381880
Remove old feature notifications
2024-04-02 14:14:58 -04:00
Jeremy Stretch
3ab2f25ee1
Closes #15043 : Add v4.0 migration guide for plugins ( #15477 )
...
* Add v4.0 migration guide for plugins
* Note Python 3.12 support
* 15403 update GraphQL plugin conversion docs
* Add section on FieldSets
---------
Co-authored-by: Arthur <worldnomad@gmail.com>
2024-04-01 09:08:28 -04:00
Arthur Hanson
45c99e4477
9856 Replace graphene with Strawberry ( #15141 )
...
* 9856 base strawberry integration
* 9856 user and group
* 9856 user and circuits base
* 9856 extras and mixins
* 9856 fk
* 9856 update strawberry version
* 9856 update imports
* 9856 compatability fixes
* 9856 compatability fixes
* 9856 update strawberry types
* 9856 update strawberry types
* 9856 core schema
* 9856 dcim schema
* 9856 extras schema
* 9856 ipam and tenant schema
* 9856 virtualization, vpn, wireless schema
* 9856 fix old decorator
* 9856 cleanup
* 9856 cleanup
* 9856 fixes to circuits type specifiers
* 9856 fixes to circuits type specifiers
* 9856 update types
* 9856 GFK working
* 9856 GFK working
* 9856 _name
* 9856 misc fixes
* 9856 type updates
* 9856 _name to types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 GraphQLView
* 9856 GraphQLView
* 9856 fix OrganizationalObjectType
* 9856 single item query for schema
* 9856 circuits graphql tests working
* 9856 test fixes
* 9856 test fixes
* 9856 test fixes
* 9856 test fix vpn
* 9856 test fixes
* 9856 test fixes
* 9856 test fixes
* 9856 circuits test sans DjangoModelType
* 9856 core test sans DjangoModelType
* 9856 temp checkin
* 9856 fix extas FK
* 9856 fix tenancy FK
* 9856 fix virtualization FK
* 9856 fix vpn FK
* 9856 fix wireless FK
* 9856 fix ipam FK
* 9856 fix partial dcim FK
* 9856 fix dcim FK
* 9856 fix virtualization FK
* 9856 fix tests / remove debug code
* 9856 fix test imagefield
* 9856 cleanup graphene
* 9856 fix plugin schema
* 9856 fix requirements
* 9856 fix requirements
* 9856 fix docs
* 9856 fix docs
* 9856 temp fix tests
* 9856 first filterset
* 9856 first filterset
* 9856 fix tests
* 9856 fix tests
* 9856 working auto filter generation
* 9856 filter types
* 9856 filter types
* 9856 filter types
* 9856 fix graphiql test
* 9856 fix counter fields and merge feature
* 9856 temp fix tests
* 9856 fix tests
* 9856 fix tenancy, ipam filter definitions
* 9856 cleanup
* 9856 cleanup
* 9856 cleanup
* 9856 review changes
* 9856 review changes
* 9856 review changes
* 9856 fix base-requirements
* 9856 add wrapper to graphiql
* 9856 remove old graphiql debug toolbar
* 9856 review changes
* 9856 update strawberry
* 9856 remove superfluous check
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-03-22 12:56:30 -04:00
Jeremy Stretch
a9bb4c5c3e
Move choice sets from utilities.choices to netbox.choices
2024-03-22 08:59:52 -04:00
Jeremy Stretch
89150f4b27
Add form rendering utilities to plugins dev docs
2024-03-19 13:34:13 -04:00
Jeremy Stretch
74e67afa41
Merge branch 'develop' into feature
2024-02-05 14:38:26 -05:00
Mattias L
ba755221bb
Improved docs for how to register dashboard widgets ( #14913 )
2024-01-26 14:15:28 -05:00
Jeremy Stretch
3aaf370d4a
Closes #14889 : Update source path for DataBackend class
2024-01-22 14:54:02 -05:00
Jeremy Stretch
7bedf48a97
Closes #14638 : Drop support for Python 3.8 and 3.9
2024-01-03 13:33:00 -05:00
Jeremy Stretch
c1ff74894c
#14036 : Update import paths in example plugin code
2023-12-29 09:21:06 -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
8e7146cd06
v3.7 documentation updates
2023-11-28 13:11:30 -05:00
Jeremy Stretch
e767fec5cc
Closes #14173 : Enable plugins to register columns on core tables ( #14265 )
...
* Closes #14173 : Enable plugins to register columns on core tables
* Support translation for column name
* Document new registry store
2023-11-16 12:16:35 -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
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
f962fb3b53
Closes #13638 : Add optional staff_only attribute to MenuItem ( #13639 )
...
* Closes #13638 : Add optional staff_only attribute to MenuItem
* Add missing file
* Add release note
2023-08-31 11:23:44 -04:00
Jeremy Stretch
646d52d498
Misc docs cleanup for v3.6
2023-08-09 10:12:40 -04:00
Jeremy Stretch
699b4dfade
Update feature introduction flags
2023-08-01 14:25:25 -04:00
Jeremy Stretch
837be4d45f
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
Arthur
3754e00ee0
12809 document not to use underscores in model names
2023-06-29 15:49:47 -04:00
jeremystretch
02db0bcc2e
Closes #11766 : Remove obsolete custom ChoiceField and MultipleChoiceField classes
2023-05-12 16:27:50 -04:00
jeremystretch
d5d2431cbd
Docs cleanup for v3.5
2023-04-18 16:58:53 -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
53abcc0f5c
Closes #12136 : Extend object count & list widgets to support filters
2023-04-03 15:02:11 -04:00
jeremystretch
0676ed45c7
Closes #12107 : Document support for plugin-provided dashboard widgets
2023-04-03 14:15:18 -04:00
jeremystretch
402d5d955f
Documentation cleanup
2023-03-20 16:37:47 -04: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
ef3ac25406
Remove old feature version notices
2023-02-19 20:09:51 -05:00
jeremystretch
2381317eb3
Closes #10604 : Remove unused extra_tabs block from object.html generic template
2023-02-19 20:09:51 -05:00