Skip to content

Commit 0357799

Browse files
authored
Merge pull request #3881 from bcgov/release-v1.2.5
Release v1.2.5
2 parents dfed49a + 1d4dc9b commit 0357799

File tree

171 files changed

+9356
-2648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+9356
-2648
lines changed

.github/workflows/prod-ci.yaml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: LCFS 1.0.0 Prod CI
22

33
permissions:
4-
contents: write # Required to push git tags
4+
contents: write # Required to push git tags
55
actions: read
6-
issues: write # Required to create approval issues
6+
issues: write # Required to create approval issues
77

88
on:
99
push:
@@ -49,7 +49,7 @@ jobs:
4949

5050
# ---------- Backend: Setup → Sharded Tests → Publish ----------
5151
backend-setup:
52-
name: 'Backend Setup'
52+
name: "Backend Setup"
5353
runs-on: ubuntu-latest
5454
needs: [install-oc]
5555
outputs:
@@ -77,7 +77,7 @@ jobs:
7777
- name: Set up Python
7878
uses: actions/setup-python@v5
7979
with:
80-
python-version: '3.10.13'
80+
python-version: "3.10.13"
8181

8282
- name: Cache Poetry dependencies
8383
uses: actions/cache@v4
@@ -157,7 +157,7 @@ jobs:
157157
run: echo "complete=true" >> $GITHUB_OUTPUT
158158

159159
backend-tests:
160-
name: 'Backend Tests (Shard ${{ matrix.shard }}/${{ strategy.job-total }})'
160+
name: "Backend Tests (Shard ${{ matrix.shard }}/${{ strategy.job-total }})"
161161
needs: backend-setup
162162
runs-on: ubuntu-latest
163163
if: needs.backend-setup.outputs.setup-complete == 'true'
@@ -234,7 +234,7 @@ jobs:
234234
- name: Set up Python
235235
uses: actions/setup-python@v5
236236
with:
237-
python-version: '3.10.13'
237+
python-version: "3.10.13"
238238

239239
- name: Cache Poetry dependencies
240240
uses: actions/cache@v4
@@ -349,7 +349,7 @@ jobs:
349349

350350
# ---------- Frontend: Setup → Sharded Tests → Publish ----------
351351
frontend-setup:
352-
name: 'Frontend Setup'
352+
name: "Frontend Setup"
353353
runs-on: ubuntu-latest
354354
outputs:
355355
setup-complete: ${{ steps.setup-complete.outputs.complete }}
@@ -362,7 +362,7 @@ jobs:
362362
- name: Set up Node.js
363363
uses: actions/setup-node@v4
364364
with:
365-
node-version: '20'
365+
node-version: "20"
366366

367367
- name: Cache node_modules
368368
uses: actions/cache@v4
@@ -397,7 +397,7 @@ jobs:
397397
run: echo "complete=true" >> $GITHUB_OUTPUT
398398

399399
frontend-tests:
400-
name: 'Frontend Tests (Shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }})'
400+
name: "Frontend Tests (Shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }})"
401401
needs: frontend-setup
402402
runs-on: ubuntu-latest
403403
if: needs.frontend-setup.outputs.setup-complete == 'true'
@@ -448,7 +448,7 @@ jobs:
448448
- name: Set up Node.js
449449
uses: actions/setup-node@v4
450450
with:
451-
node-version: '20'
451+
node-version: "20"
452452

453453
- name: Restore node_modules cache
454454
uses: actions/cache@v4
@@ -495,7 +495,7 @@ jobs:
495495
CI: true
496496
SHARD_INDEX: ${{ matrix.shardIndex }}
497497
SHARD_TOTAL: ${{ matrix.shardTotal }}
498-
VITEST_POOL_THREADS: '4'
498+
VITEST_POOL_THREADS: "4"
499499

500500
- name: Debug test failure details
501501
if: failure()
@@ -593,7 +593,7 @@ jobs:
593593
secret: ${{ github.TOKEN }}
594594
approvers: AlexZorkin,kuanfandevops,hamed-valiollahi,airinggov,prv-proton,Grulin
595595
minimum-approvals: 2
596-
issue-title: 'LCFS ${{env.VERSION }}-${{env.PRE_RELEASE }} Prod Deployment.'
596+
issue-title: "LCFS ${{env.VERSION }}-${{env.PRE_RELEASE }} Prod Deployment."
597597

598598
- name: Checkout Manifest repository
599599
uses: actions/checkout@v3
@@ -639,30 +639,30 @@ jobs:
639639
git commit -m "Update image tag ${{env.VERSION }}-${{env.PRE_RELEASE }} for prod"
640640
git push
641641
642-
create-release:
643-
name: Create release after prod deployment
644-
runs-on: ubuntu-latest
645-
needs: [set-pre-release, deploy-on-prod]
646-
env:
647-
PRE_RELEASE: ${{ needs.set-pre-release.outputs.PRE_RELEASE }}
648-
steps:
649-
- name: Check out repository
650-
uses: actions/checkout@v4.1.1
651-
652-
- name: Fetch tags
653-
run: |
654-
git config --global user.email "actions@github.com"
655-
git config --global user.name "GitHub Actions"
656-
git fetch --tags
657-
git tag -l
658-
659-
- name: Create Release
660-
uses: actions/create-release@v1
661-
env:
662-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub
663-
with:
664-
tag_name: '${{env.VERSION }}-${{env.PRE_RELEASE }}' # The pushed tag
665-
release_name: '${{env.VERSION }}-${{env.PRE_RELEASE }}' # Release title
666-
body: 'This is an automated release 🚀' # Release notes
667-
draft: false # Set to true if you want a draft release
668-
prerelease: false
642+
# create-release:
643+
# name: Create release after prod deployment
644+
# runs-on: ubuntu-latest
645+
# needs: [set-pre-release, deploy-on-prod]
646+
# env:
647+
# PRE_RELEASE: ${{ needs.set-pre-release.outputs.PRE_RELEASE }}
648+
# steps:
649+
# - name: Check out repository
650+
# uses: actions/checkout@v4.1.1
651+
652+
# - name: Fetch tags
653+
# run: |
654+
# git config --global user.email "actions@github.com"
655+
# git config --global user.name "GitHub Actions"
656+
# git fetch --tags
657+
# git tag -l
658+
659+
# - name: Create Release
660+
# uses: actions/create-release@v1
661+
# env:
662+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub
663+
# with:
664+
# tag_name: '${{env.VERSION }}-${{env.PRE_RELEASE }}' # The pushed tag
665+
# release_name: '${{env.VERSION }}-${{env.PRE_RELEASE }}' # Release title
666+
# body: 'This is an automated release 🚀' # Release notes
667+
# draft: false # Set to true if you want a draft release
668+
# prerelease: false

backend/lcfs/db/migrations/versions/2026-02-01-09-00_3d7b65a9d2ef.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@ def downgrade() -> None:
159159
END;
160160
$$;
161161
"""
162-
)
162+
)

backend/lcfs/db/models/compliance/ChargingSite.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
select,
1212
event,
1313
Double,
14+
func,
1415
)
1516
from sqlalchemy.orm import relationship, Session
1617

@@ -190,3 +191,18 @@ def generate_site_code(mapper, connection, target):
190191
target.site_code = next_base36(max_code, width=5)
191192
finally:
192193
session.close()
194+
195+
196+
def latest_charging_site_version_subquery():
197+
"""
198+
Helper subquery that returns the latest version number for each charging site ID.
199+
Used to ensure queries only work with the most recent version of a site.
200+
"""
201+
return (
202+
select(
203+
ChargingSite.charging_site_id.label("charging_site_id"),
204+
func.max(ChargingSite.version).label("latest_version"),
205+
)
206+
.group_by(ChargingSite.charging_site_id)
207+
.subquery()
208+
)
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
Site Name,Street Address,City,Postal Code,Latitude,Longitude,Allocating Organization,Notes
2+
Pioneer Charging Hub #001,593 Jones Walk,Quesnel,V3K 2E8,49.317184,-128.486639,,
3+
Lighthouse Charging Hub #002,254 Simmons Divide Suite 645,Sidney,V8S 3T9,51.554831,-117.275334,,
4+
Evergreen ChargePoint #003,6842 Julie Vista,Chilliwack,V5E 1R1,52.500059,-130.44047,,
5+
Maple EV Station #004,2805 Eugene Valleys Apt. 588,Squamish,V6C 8M9,58.659785,-129.997426,,
6+
Lighthouse Energy Plaza #005,4148 Lindsey Mission,Burnaby,V3E 6L7,55.737508,-129.917306,,
7+
Evergreen EV Station #006,3634 Thomas Village Apt. 156,Sidney,V2Y 3H7,52.739629,-114.262545,,
8+
Lighthouse Charging Hub #007,859 Hunter Lodge Apt. 245,Richmond,V6L 1J9,58.553501,-131.174172,,
9+
River ChargePoint #008,21726 Hernandez Parks Apt. 716,Williams Lake,V3Y 8L9,53.312676,-124.436665,,
10+
Willow Charge Depot #009,Unit 149 - 458 Martin Highway Suite 019,Kamloops,V1G 2S9,49.043274,-129.496621,,
11+
Maple Charging Hub #010,63503 Danielle Underpass Suite 868,Courtenay,V1Y 4N1,51.733952,-135.096567,,
12+
Summit EV Station #011,774 Lozano Station Apt. 189,Gibsons,V4X 9J2,52.674792,-135.011581,,
13+
Forest Charging Hub #012,Unit 472 - 74257 Diaz Garden Suite 386,Abbotsford,V4K 0K9,59.379309,-136.913524,,
14+
Raven ChargePoint #013,0864 Maria Prairie,Trail,V8H 4X9,53.250714,-133.752337,,
15+
Cascade Charge Depot #014,05939 Mathis Street Suite 533,Port Coquitlam,V7E 3K1,52.255601,-124.316984,,
16+
Harbour EV Station #015,87056 Macdonald Locks Suite 610,Sooke,V0K 1B5,49.129031,-133.095604,,
17+
Raven Charge Depot #016,220 Oliver Centers,Trail,V7S 3E1,56.010098,-130.181303,,
18+
Pioneer Charging Hub #017,975 Elizabeth Street Suite 243,Richmond,V5E 3J3,54.574543,-135.547032,,
19+
Lighthouse EV Station #018,679 Baldwin Lock,Squamish,V8E 0Y0,59.637256,-115.845243,,
20+
Forest Charge Depot #019,771 Sara Divide,Port Moody,V6B 2R0,59.828113,-132.414011,,
21+
Maple Charge Depot #020,8403 Smith Corners Apt. 422,Penticton,V4J 0Y0,57.051314,-137.627438,,
22+
Summit Charging Hub #021,6433 Smith Shoals,Salmon Arm,V1H 1C3,53.024174,-115.463601,,
23+
Cedar EV Station #022,9098 Carrie Locks Suite 703,Terrace,V9X 5L3,56.135794,-131.186552,,
24+
Seaside Charge Depot #023,6482 Charles View,Kamloops,V1A 7E1,54.590323,-126.38253,,
25+
Lighthouse Supercharge #024,3212 Nelson Canyon,Surrey,V7Y 4X0,56.113999,-125.161667,,
26+
Pioneer EV Station #025,86055 Mitchell Stravenue Apt. 971,Courtenay,V2L 4J5,50.682089,-123.165997,,
27+
Evergreen Charging Hub #026,Unit 534 - 37325 Lang Terrace,Sechelt,V4B 0N2,55.754227,-132.495401,,
28+
Maple Charging Hub #027,Unit 808 - 771 Page Summit,Penticton,V2Y 0P9,54.764544,-128.289545,,
29+
Cedar Supercharge #028,548 Davis Via Apt. 658,New Westminster,V3E 5Y6,59.693893,-120.278091,,
30+
Sunrise Charging Hub #029,170 Susan Via,Esquimalt,V5S 3L2,57.512282,-136.351124,,
31+
Orchard Charge Depot #030,885 Diane Tunnel,Sooke,V3K 0J6,52.140665,-117.399315,,
32+
Willow Power Stop #031,97625 Michael Parks Suite 809,Williams Lake,V8N 0E4,50.389243,-114.93889,,
33+
Discovery Power Stop #032,07716 Moore Wall,Nanaimo,V5S 9X1,52.806787,-124.610704,,
34+
Harbour Fast Charge #033,145 Jennifer Lakes Apt. 014,Penticton,V1N 9N1,56.721125,-131.533924,,
35+
Lakeview Energy Plaza #034,182 Kevin Curve Apt. 626,Abbotsford,V3S 6H9,54.958531,-128.883756,,
36+
Orchard Power Stop #035,378 Zimmerman Orchard,Parksville,V9N 7T7,56.204839,-126.24998,,
37+
Willow Supercharge #036,Unit 870 - 783 Cynthia Loop,Parksville,V3M 3J2,48.585777,-132.924246,,
38+
River Power Stop #037,60367 Brian Track Apt. 713,Surrey,V9J 6V6,51.154618,-122.619186,,
39+
Lighthouse ChargePoint #038,41224 Tracy Estate Apt. 489,Penticton,V8T 0Y3,59.034399,-136.018754,,
40+
Willow Supercharge #039,95273 Harris Shores,Campbell River,V7X 6Y7,58.797335,-120.423995,,
41+
Lighthouse Energy Plaza #040,264 Ariel Corners,Courtenay,V8V 3L7,49.206555,-131.899653,,
42+
Maple EV Station #041,Unit 337 - 76903 Gregory Track Apt. 275,Abbotsford,V6G 3C6,53.068913,-125.462165,,
43+
Sunrise Power Stop #042,9557 Martin Avenue Suite 883,Sidney,V9A 9R7,48.368984,-130.244924,,
44+
Maple Fast Charge #043,7021 Rodriguez Course Apt. 736,Trail,V4S 7A6,52.232716,-122.040704,,
45+
Raven Charging Hub #044,14693 Haney Trace,Squamish,V9A 1S2,58.442161,-134.505871,,
46+
Orchard Charge Depot #045,771 Oscar Gardens,Abbotsford,V6L 6L1,53.80259,-120.289452,,
47+
Pacific Charging Hub #046,25394 Dominique Ranch Suite 176,Sooke,V3J 0G3,49.776785,-122.283361,,
48+
Evergreen Supercharge #047,14842 Bryan Village Suite 766,Prince Rupert,V9E 2M1,55.070611,-115.782088,,
49+
Pacific Fast Charge #048,Unit 892 - 98953 Jesse Summit,Colwood,V4E 9B5,54.533119,-122.482275,,
50+
Mountain Charging Hub #049,870 Foster Glen Apt. 888,Williams Lake,V7E 6P7,56.575511,-128.146692,,
51+
Forest Charge Depot #050,34183 Sean Locks Suite 510,Trail,V9L 5K1,51.563461,-127.762902,,
52+
Lakeview Supercharge #051,Unit 972 - 119 Alicia Gardens,Kitimat,V5H 7J5,57.634639,-130.531109,,
53+
Willow Fast Charge #052,Unit 838 - 89514 Berg Dale Suite 509,Victoria,V6V 8K7,55.857064,-126.760017,,
54+
Lighthouse Power Stop #053,07112 Dawn Park Suite 389,Parksville,V4P 7Y8,52.321962,-114.084416,,
55+
River Energy Plaza #054,798 Emma Point,Prince Rupert,V3E 3N1,56.991708,-115.231008,,
56+
Forest Energy Plaza #055,1164 Joshua Valley Apt. 040,Sidney,V8M 1J4,50.961553,-134.563195,,
57+
Evergreen Charging Hub #056,23890 Thomas Park,Kamloops,V8M 2V1,58.510821,-124.673951,,
58+
Mountain ChargePoint #057,30240 Corey Rapids Apt. 330,Vernon,V4V 1C6,54.053435,-124.59985,,
59+
Bayview Energy Plaza #058,Unit 355 - 08985 Collin Road Apt. 912,Prince George,V1Y 6K8,52.750423,-116.29288,,
60+
Seaside Charging Hub #059,535 Thomas Trace Suite 703,Penticton,V1J 3L1,50.137568,-134.704232,,
61+
Sunrise Charge Depot #060,9668 Moore Circle Apt. 361,Victoria,V7M 0K4,56.571383,-121.443132,,
62+
Lighthouse Energy Plaza #061,88270 Sarah Vista Suite 556,Powell River,V9J 6E8,50.930271,-135.326326,,
63+
Cedar ChargePoint #062,656 Richard Unions,Surrey,V9M 7E7,56.357532,-121.524674,,
64+
Forest Charge Depot #063,Unit 141 - 74653 Luke Ville,Trail,V6N 9L0,49.368525,-114.954508,,
65+
Cedar ChargePoint #064,77634 Leslie Oval,Cranbrook,V7L 2S7,59.637946,-127.28154,,
66+
Pioneer ChargePoint #065,767 Luis Forges Apt. 137,Abbotsford,V7M 6Y0,53.621463,-131.1782,,
67+
Willow Charging Hub #066,7937 Perkins Creek Apt. 246,Port Coquitlam,V8T 6B3,54.365741,-123.456795,,
68+
Orchard Energy Plaza #067,818 Grimes Rue Suite 791,Richmond,V4T 7E0,59.685818,-123.801676,,
69+
Maple Charging Hub #068,632 Sparks Meadow,Qualicum Beach,V1K 1T1,55.878203,-135.201484,,
70+
Sunrise Charge Depot #069,414 Lisa Stream Suite 096,Comox,V3T 8G6,50.530141,-124.039597,,
71+
Sunrise Supercharge #070,5899 Jeffrey Club Suite 254,Comox,V8L 0M4,58.098468,-124.52712,,
72+
Maple Charge Depot #071,9124 Yvonne Junctions,Vernon,V8Y 6T5,58.47434,-114.481788,,
73+
Lighthouse Power Stop #072,Unit 863 - 76875 Woodard Keys,Coquitlam,V7R 6G7,59.588446,-135.896268,,
74+
Pioneer Charge Depot #073,Unit 248 - 6285 Karen Cliffs Suite 252,Vernon,V6G 1V4,52.261166,-121.700823,,
75+
Maple Power Stop #074,097 Michael Passage,Powell River,V7Y 0C3,55.684584,-115.981517,,
76+
Pioneer EV Station #075,24971 Amy Manor Suite 033,Penticton,V4A 0N0,51.732403,-129.666482,,
77+
Sunrise ChargePoint #076,64604 Tara Mission Suite 272,Salmon Arm,V1R 9K7,58.980099,-135.47347,,
78+
Evergreen Charging Hub #077,8907 Herman Fork,Squamish,V7M 8H1,53.468238,-130.400125,,
79+
Evergreen Charge Depot #078,759 Martin Corners Suite 862,Prince Rupert,V3R 7E3,52.761962,-130.064484,,
80+
Lakeview Energy Plaza #079,Unit 986 - 87423 Martinez Trafficway Suite 697,Vancouver,V0V 4K9,57.682604,-133.571746,,
81+
Raven EV Station #080,4142 Jordan Views Suite 427,Courtenay,V0M 7B9,52.568876,-135.76682,,
82+
Summit Fast Charge #081,Unit 653 - 5147 Michael Harbor,Port Moody,V5X 8L2,51.30655,-118.393273,,
83+
Pioneer Charge Depot #082,628 Joseph Run,Chilliwack,V2K 6Y5,49.356544,-129.171962,,
84+
River Supercharge #083,1111 Jones Islands,Kelowna,V4R 5E3,53.816279,-123.534156,,
85+
Pacific Charge Depot #084,8664 Brittany Mews,Sooke,V4S 1G0,59.37126,-131.432624,,
86+
Lighthouse ChargePoint #085,43407 Smith Forge Apt. 491,Nanaimo,V5Y 6G6,55.962586,-118.167651,,
87+
Cascade Fast Charge #086,174 Jose Lights,Burnaby,V3P 1P8,58.849846,-122.90064,,
88+
Orchard EV Station #087,12430 Hill Loop Suite 962,Comox,V7C 3A0,57.505497,-132.956163,,
89+
Pacific Fast Charge #088,084 Jackson Rest,Sidney,V3N 2A4,58.343352,-135.434119,,
90+
Summit EV Station #089,456 Miguel Ferry Suite 667,Courtenay,V0G 0P3,55.189579,-138.664526,,
91+
Sunrise EV Station #090,0018 Michael Brook,Kamloops,V7T 5X9,49.575932,-126.433802,,
92+
River Charging Hub #091,Unit 591 - 9051 Julie Mountain Apt. 546,Qualicum Beach,V6S 1V7,49.159841,-137.035391,,
93+
Evergreen Supercharge #092,8954 Miller Flat Suite 865,Kamloops,V9X 4T8,55.383493,-136.574588,,
94+
Sunrise Charge Depot #093,13610 Cameron Lodge,Sidney,V6N 7R6,56.836466,-131.227538,,
95+
Raven Charge Depot #094,Unit 952 - 31457 Rivas Alley Apt. 496,New Westminster,V1C 6E5,57.797701,-125.117349,,
96+
Cascade Power Stop #095,1193 Thomas Corners,Port Moody,V0M 9M5,49.512127,-126.344242,,
97+
Pioneer Supercharge #096,9539 Mark Street Suite 710,Sooke,V5E 4K6,58.188315,-114.637862,,
98+
Evergreen Charging Hub #097,54716 Little Estates Suite 015,Campbell River,V4N 5A2,58.477394,-124.867993,,
99+
Harbour EV Station #098,3024 Jared Fort,Prince George,V3R 6T5,50.141689,-131.250368,,
100+
Pacific Charging Hub #099,663 Patricia Burgs,Terrace,V9B 1L7,56.044683,-126.889318,,
101+
Orchard EV Station #100,4608 Allison Pike,Comox,V1M 9V8,56.105451,-137.921841,,

0 commit comments

Comments
 (0)