Skip to content

Ask for template parameters on config template import - #3564

Open
Ekhorn wants to merge 1 commit into
feature/import-export-asset-attribute-configurationfrom
feature/configuration-template-parameters
Open

Ekhorn wants to merge 1 commit into
feature/import-export-asset-attribute-configurationfrom
feature/configuration-template-parameters

Conversation

@Ekhorn

@Ekhorn Ekhorn commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a parameter step to configuration template import for the values that differ per asset, so one template can be reused across assets and instances.

Changelog

  • Add @JsonSchemaTemplateParameter to mark template parameters in the generated schema.
  • Mark AgentLink.id and ModbusAgentLink.unitId with @JsonSchemaTemplateParameter.
  • Add the parameter step, grouped by agent link type, where fields of one type with the same value share one parameter
  • Offer only agents of the link's type in the asset's realm, and block import while no such agent exists
  • Check the other parameters with JSON Forms against the schema of their field
  • Add @JsonSchemaTitle labels for Agent ID and Unit ID
  • Cover the parameter mark in JSONSchemaUtilTest

Checklist

  • 1. Acceptance criteria of the linked issue(s) are met
  • 2. Tests are written and all tests pass
  • 3. Changes are manually tested by you and the reviewer
  • 4. Documentation is written or updated

@Ekhorn Ekhorn self-assigned this Nov 10, 2026
@Ekhorn Ekhorn added the Feature Development of new feature label Nov 10, 2026
@Ekhorn
Ekhorn force-pushed the feature/configuration-template-parameters branch from 7b33be2 to b5653dc Compare November 10, 2026 21:58
@sonarqubecloud

Copy link
Copy Markdown

@Ekhorn
Ekhorn changed the base branch from main to feature/import-export-asset-attribute-configuration November 10, 2026 22:34
@Ekhorn
Ekhorn marked this pull request as ready for review November 10, 2026 22:46

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Development of new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support template parameters on configuration template import

1 participant