bcgov / bcgov/wps

HFI: PDF Station Ordering

Open
#1,957 0 comments 0 reactions 0 assignees View on GitHub
4Refinement Bug
Dominant language
Python
Stars
65
Forks
11
Avg merge
21h 25m
Merged PRs (30d)
70

Description

**Describe the Bug**
Station order within planning centres are not respected in the generated PDFs.

**Expected Behaviour**
Station order within PDFs should match the HFI calc page, which uses the `order_of_appearance_in_planning_area_list` field to order stations

**Actual Behaviour**
Stations are not ordered according `order_of_appearance_in_planning_area_list` in generated PDFs

** Steps To Reproduce**
Steps to reproduce the behaviour:
1. Go to HFI Calculator
2. Click on Kamloops Fire Centre
3. Scroll down to Vernon planning area
4. See station, "Bay Station 2" 3rd in list
5. Click Download PDF
6. Scroll to Vernon planning area
4. See station, "Bay Station 2" last in list

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start at the HFI Calculator entry point and trace the Download PDF path, comparing its station ordering with the HFI calc page's order_of_appearance_in_planning_area_list field. Reproduce the Vernon planning-area case with Bay Station 2, then verify that the generated PDF matches the calculator order.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.