Werk #14677: Remove item_name and item_help keywords from CheckParameterRulespecWithItem

Component Setup
Title Remove item_name and item_help keywords from CheckParameterRulespecWithItem
Date Aug 29, 2022
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.2.0i1
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required

This change might break existing MKPs.

The CheckParameterRulespecWithItem class does not accept the item_name and item_help keywords any longer. Instead item_spec should be used.

Before this werk the following was valid to register a new rulespec.

rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name="a_check",
item_name="fitting item name",
item_help="inline help test",
group=RulespecGroupCheckParametersApplications,
parameter_valuespec=_parameter_valuespec_network,
title=lambda: "A good title",
)
)

This should be rewritten as:

rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name="a_check",
item_spec=lambda: TextInput(title="fitting item name", help="inline help text"),
group=RulespecGroupCheckParametersApplications,
parameter_valuespec=_parameter_valuespec_network,
title=lambda: "A good title",
)
)

To the list of all Werks