Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kishnahai0806/SteelWorks/llms.txt
Use this file to discover all available pages before exploring further.
IssueFilterSelection is a frozen dataclass defined in app/models.py that carries the dashboard filter state — a selected calendar week and a list of production line IDs — through the service and repository layers. It is the single argument that OperationsMetricsService uses to scope every analytics query.
Class definition
Fields
The numeric ID of the selected calendar week. Corresponds to
calendar_weeks.calendar_week_id in the database and to the calendar_week_id key returned by OperationsMetricsService.get_available_weeks().List of selected production line IDs. Corresponds to
production_lines.production_line_id in the database. Can be empty — an empty list causes all service queries (get_issue_summary, get_affected_lots, and both CSV exports) to short-circuit and return [] without touching the repository.Immutability
frozen=True means IssueFilterSelection is hashable and its fields cannot be reassigned after construction. Attempting to mutate a field raises a FrozenInstanceError:
Usage example
Line IDs are normalized (sorted and deduplicated) inside
OperationsMetricsService.normalize_line_ids() before being passed to the repository. You do not need to pre-sort the list when constructing an IssueFilterSelection.IssueFilterSelection is consumed, see OperationsMetricsService.