LCFS - Add is_legacy
Field and Update Fuel Type Lookup Services
#1550
Labels
Added Banana 4 Scale
Label for tickets added mid-sprint
Medium
Medium priority
Task
Work that does not directly impact the user
Description:
Introduce an
is_legacy
boolean column to thefuel_type
table to distinguish legacy fuel types from current ones. Modify existing fuel type retrieval services to filter byis_legacy
, ensuring that only current fuels appear in default lookups, while still allowing legacy entries to be fetched when needed.Purpose and benefit to user:
Allows clear separation of legacy and current fuels at the database level and in service responses. Users benefit from simplified dropdowns containing only current fuels, while analysts and historical reporting can still access legacy data on demand.
Acceptance Criteria:
fuel_type
includes anis_legacy
field defaulting tofalse
without data loss.is_legacy = false
fuels return by default.Development Checklist:
is_legacy
boolean column tofuel_type
with defaultfalse
.is_legacy
.is_legacy = true
entries unless a parameter or condition includes them.Notes:
This combined change ensures the database schema and application services properly support and distinguish legacy fuel types from current ones.
The text was updated successfully, but these errors were encountered: