fuel-db: customer on every row, place and holder for site, licence tables
Draft migrations rewritten in place (PD-16, PD-18), with 0004 for the licence tables (PD-20) and rule tests in fuel-db/tests. Dashboards' column list regenerated; coverage_detail selects operator_uid. Checks: tests/run.sh 106 of 106; 18 views, 686 rows, 0 differences against a reference from the same corpus. Codex's fixes to its inspection are not re-inspected. Bands: persistence, Superset. Rules: 6, 8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e4806f5799
commit
ab553526f6
11 files changed
+1197
-398
No files matched your search
@@ -109,7 +109,7 @@ CALCULATED = {
|
||||
# opening visit's delivery is included and the closing visit's excluded.
|
||||
VIRTUAL = {
|
||||
"coverage_detail": ("v_coverage", [("lane_name", "character varying(60)"), ("amount", "character varying(120)")], """\
|
||||
SELECT c.site_uid, c.site_code, c.site_name, c.site_label, c.lane, c.status,
|
||||
SELECT c.site_uid, c.site_code, c.site_name, c.site_label, c.operator_uid, c.lane, c.status,
|
||||
c.start_on, c.end_on, c.start_ts, c.end_ts,
|
||||
regexp_replace(c.lane, '^[0-9]+ ', '') AS lane_name,
|
||||
CASE WHEN c.lane = '1 Stock intervals' THEN
|
||||
@@ -166,6 +166,7 @@ METRICS = {
|
||||
|
||||
LABELS = {
|
||||
"site_code": "Code", "site_name": "Site name", "site_label": "Site", "site_uid": "Site uid",
|
||||
"operator_uid": "Customer",
|
||||
"pilot_status": "Pilot status", "baseline_status_label": "Baseline status",
|
||||
"baseline_status": "Baseline status code", "baseline_validity_note": "Validity note",
|
||||
"lph_estimate": "L/h", "lph_method": "L/h method", "lph_window_start": "L/h window start",
|
||||
|
||||
Reference in new issue
Block a user