Skip to content

Add 'Optional' field to rules (non-mandatory, excluded from compliance) #134

@xezpeleta

Description

@xezpeleta

Feature Request: Optional Rule Field

Description

Add an "Optional" boolean field to rules. When enabled, the rule is still evaluated and its results are visible, but it is not mandatory — meaning it won't affect the parent ruleset's compliance status.

UX Requirements

  • Edit rule page: add a checkbox field labeled "Optional", positioned immediately after the existing "Disabled" field
  • The field should look and behave identically to the "Disabled" field (same styling, same toggle pattern)
  • Disabled by default (rules remain mandatory unless explicitly marked optional)

Behavior

  • Optional rules are still executed/evaluated
  • Optional rule results are displayed in the UI
  • Optional rules do not count toward the parent ruleset's compliance calculation
  • A rule can be both Optional and Disabled (Disabled takes precedence — not evaluated at all)

Acceptance Criteria

  • New "Optional" field in Edit Rule form, placed right after "Disabled"
  • Disabled by default
  • Optional rules are evaluated but excluded from compliance scoring
  • UI clearly indicates when a rule is optional
  • Backend filters out optional rules when calculating ruleset compliance

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions