Docs & cleanup

This commit is contained in:
jeremystretch 2023-02-07 15:41:40 -05:00
parent 283a7d6da8
commit 0b68a9c259
4 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,10 @@ A numeric value which influences the order in which context data is merged. Cont
The context data expressed in JSON format. The context data expressed in JSON format.
### Data File
Config context data may optionally be sourced from a remote [data file](../core/datafile.md), which is synchronized from a remote data source. When designating a data file, there is no need to specify local data for the config context: It will be populated automatically from the data file.
### Is Active ### Is Active
If not selected, this config context will be excluded from rendering. This can be convenient to temporarily disable a config context. If not selected, this config context will be excluded from rendering. This can be convenient to temporarily disable a config context.

View File

@ -4,6 +4,7 @@
### Enhancements ### Enhancements
* [#9073](https://github.com/netbox-community/netbox/issues/9073) - Enable syncing config context data from remote sources
* [#11254](https://github.com/netbox-community/netbox/issues/11254) - Introduce the `X-Request-ID` HTTP header to annotate the unique ID of each request for change logging * [#11254](https://github.com/netbox-community/netbox/issues/11254) - Introduce the `X-Request-ID` HTTP header to annotate the unique ID of each request for change logging
* [#11440](https://github.com/netbox-community/netbox/issues/11440) - Add an `enabled` field for device type interfaces * [#11440](https://github.com/netbox-community/netbox/issues/11440) - Add an `enabled` field for device type interfaces
* [#11517](https://github.com/netbox-community/netbox/issues/11517) - Standardize the inclusion of related objects across the entire UI * [#11517](https://github.com/netbox-community/netbox/issues/11517) - Standardize the inclusion of related objects across the entire UI

View File

@ -359,7 +359,9 @@ class ConfigContextSerializer(ValidatedModelSerializer):
required=False, required=False,
many=True many=True
) )
data_source = NestedDataSourceSerializer() data_source = NestedDataSourceSerializer(
required=False
)
data_file = NestedDataFileSerializer( data_file = NestedDataFileSerializer(
read_only=True read_only=True
) )