15093 review changes

This commit is contained in:
Arthur Hanson 2024-10-11 10:33:38 -07:00
parent 644be7c476
commit a0a53ce172
3 changed files with 7 additions and 2 deletions

View File

@ -111,7 +111,7 @@ By default, NetBox will prevent the creation of duplicate prefixes and IP addres
Default: ['extras.events.process_event_queue',]
NetBox will call functions listed here for events (create, update, delete) on models as well as when custom EventRules are fired.
NetBox will call dotted paths to the functions listed here for events (create, update, delete) on models as well as when custom EventRules are fired.
---

View File

@ -114,7 +114,7 @@ NetBox looks for the `config` variable within a plugin's `__init__.py` to load i
| `max_version` | Maximum version of NetBox with which the plugin is compatible |
| `middleware` | A list of middleware classes to append after NetBox's build-in middleware |
| `queues` | A list of custom background task queues to create |
| `events_pipeline` | An optional list of functions to add to the [`EVENTS_PIPELINE`](./miscellaneous.md#events_pipeline) |
| `events_pipeline` | An optional list of dotted paths to add to the [`EVENTS_PIPELINE`](./miscellaneous.md#events_pipeline) |
| `search_extensions` | The dotted path to the list of search index classes (default: `search.indexes`) |
| `data_backends` | The dotted path to the list of data source backend classes (default: `data_backends.backends`) |
| `template_extensions` | The dotted path to the list of template extension classes (default: `template_content.template_extensions`) |

View File

@ -862,8 +862,13 @@ for plugin_name in PLUGINS:
events_pipeline = plugin_config.events_pipeline
if events_pipeline and type(events_pipeline) in (list, tuple):
EVENTS_PIPELINE = list(EVENTS_PIPELINE)
if 'extras.events.process_event_queue' not in EVENTS_PIPELINE:
EVENTS_PIPELINE.insert(0, 'extras.events.process_event_queue')
EVENTS_PIPELINE.extend(events_pipeline)
print(EVENTS_PIPELINE)
# UNSUPPORTED FUNCTIONALITY: Import any local overrides.
try:
from .local_settings import *