Skip to content

Enhance DispatchFilter to support filtering based on is_active and is_dry_run statuses #58

@thomas-nicolai-frequenz

Description

@thomas-nicolai-frequenz

What's needed?

We want to support filtering dispatches based on their is_active and is_dry_run statuses.

Proposed solution

Extend the DispatchFilter message to support filtering by is_active and is_dry_run statuses.

// Parameters for filtering the dispatch list
message DispatchFilter {
  // Filter by component ID or category
  repeated DispatchComponentSelector selectors = 1;

  // Filter by time interval
  // If no interval is provided, all dispatches starting from the
  // current timestamp will be included.
  TimeIntervalFilter time_interval = 2;

  // Filter by active status
  // If this field is not set, dispatches of any active status will be included.
  optional bool is_active = 3;

  // Filter by dry run status
  // If this field is not set, dispatches of any dry run status will be included.
  optional bool is_dry_run = 4;
}

Use cases

Receiving list of active and none-active microgrid dispatch events.

Alternatives and workarounds

Receiving the entire list and filtering on the receiving end.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:❓We need to figure out which part is affectedpriority:❓We need to figure out how soon this should be addressedtype:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions