Skip to content

Consolidate future_required_tasks_found and required_tasks_found #1026

@lcarva

Description

@lcarva

We have these policy rules:

  • future_required_tasks_found: emits a warning if a required Task is missing but the rule data says that it is only required in the future.
  • required_tasks_found: emits a violation if a required Task is missing and the rule data does not specify that this is required in the future.

The two policy rules are closely tied. When a user wants to include/exclude these policy rules, they must specify both. This is confusing.

Let's consolidate both of these policy rules into a single one. We can emit a dynamic effective_on date in the result for required Tasks in the future. This would be similar to what we did here for the labels package.

Acceptance Criteria

  • future_required_tasks_found is handled as part of required_tasks_found. This is done in both release and pipeline namespaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions