Skip to content

Allow rules to specify the base part of their response keys #2959

Open
@csams

Description

@csams

When a rule returns make_fail(ERROR_KEY, ...), the key generated is actually the rule's module name combined with ERROR_KEY. This means renaming a rule's module affects its responses, which can break hit history in downstream systems.

We need something like @rule(..., identity="foo_bar"baz") to cause the module name portion of the rule's response keys to always be "foo_bar_baz" instead of whatever the module name happens to be. Then developers will be free to reorganize existing rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreRelated to the 'insights-core' frameworkenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions