bcgov / bcgov/lcfs

LCFS - Create backend 'Fuel Types' table for compliance reporting calculation (In progress)

Open
#533 0 comments 0 reactions 0 assignees View on GitHub
Medium Story
Dominant language
Python
Stars
6
Forks
6
Avg merge
2d 7h
Merged PRs (30d)
87

Description

**Description:**

1) Develop a new backend table for the compliance reporting calculation feature titled 'Fuel Types'.

- The table should include the following columns, arranged from left to right: 'Fuel types' and 'Description'.
- The default sorting of the table should be alphabetical by the 'Fuel type' column.

2) Use the following input and validation requirements for column titles (in order from left to right); format is 'column name | type of data entry | validation requirements':

- Fuel type | re-use drop-down menu options from card https://github.com/bcgov/lcfs/issues/485
- Description | free form text | n/a

**Purpose and Benefit to User:**

This table is part of a feature that enables the calculations needed in compliance reporting. Fuel types are broken down by Type A (anything other than a type B fuel) and Type B (electricity, natural gas, propane, a prescribed fuel). These fuel types often replace fossil-derived gasoline, diesel and jet fuel.

**Acceptance Criteria:**

- [ ] Given I am a , When I am , then
- [ ] Given I am a , When I am , then

**Development Checklist:**
- [ ] A
- [ ] B
- [ ] C

**Notes:**
This is setting up for a future feature that will allow IDIR access to edit the figures in these tables similar to the fuel code feature by using AG Grid.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing issue #485 for the fuel-type dropdown options and the repository's existing fuel code feature, which the issue identifies as a related pattern. The work is complete when the backend exposes a Fuel Types table with Fuel type and Description columns, the specified validation, and alphabetical default sorting.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.