@stamhoofd/metabase 2.151.1 → 2.153.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -14
- package/dist/report.d.ts +50 -9
- package/dist/report.d.ts.map +1 -1
- package/dist/report.js +80 -21
- package/dist/report.js.map +1 -1
- package/dist/sync-report.d.ts +5 -1
- package/dist/sync-report.d.ts.map +1 -1
- package/dist/sync-report.js +18 -6
- package/dist/sync-report.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -0
- package/package.json +31 -32
- package/report/eenheden.sql +31 -0
- package/report/includes/all-non-platform-registrations-all-years.sql +8 -1
- package/report/includes/all-registrations.sql +8 -1
- package/report/includes/deduplicated-non-platform-registrations-all-years.sql +1 -0
- package/report/includes/deduplicated-non-platform-registrations.sql +2 -1
- package/report/includes/filter-registration-types.sql +20 -2
- package/report/includes/keeo/participant-counts.sql +4 -0
- package/report/includes/keeo/participant-detail-columns.sql +2 -0
- package/report/includes/keeo/participant-details.sql +2 -0
- package/report/includes/keeo/participant-subgroup.sql +6 -0
- package/report/includes/keeo/participant-type.sql +8 -0
- package/report/includes/participant-counts.sql +2 -0
- package/report/includes/participant-detail-columns.sql +2 -0
- package/report/includes/participant-details.sql +3 -0
- package/report/includes/participant-subgroup.sql +2 -0
- package/report/includes/uldk-zonder-geslacht.sql +11 -0
- package/report/jeugdbewegingen.sql +93 -22
- package/report/nationaal.sql +2 -0
- package/report/varia.sql +31 -0
package/README.md
CHANGED
|
@@ -38,21 +38,32 @@ The ledenstatistieken count members, not registrations, so every card of that da
|
|
|
38
38
|
and none reads the registrations directly. Someone registered in two leeftijdsgroepen of the same eenheid holds
|
|
39
39
|
two registrations, and counted there they land in two bars of the same chart, or -- if they are leiding in one
|
|
40
40
|
leeftijdsgroep and lid in the other -- on both sides of the omkaderingscijfer at once. That fragment picks the one
|
|
41
|
-
registration that speaks for them:
|
|
41
|
+
registration that speaks for them: a leeftijdsgroep beats an activiteit, one that still stands beats
|
|
42
|
+
one that was cancelled, leiding beats lid, and the oldest leeftijdsgroep wins between two. The
|
|
43
|
+
leeftijdsgroep comes first because an activiteit says where someone went, not what they are: a lid who
|
|
44
|
+
left their leeftijdsgroep in november and joined a kamp afterwards is still counted in the
|
|
45
|
+
leeftijdsgroep they were a lid of.
|
|
42
46
|
|
|
43
47
|
The aanlevering is the exception and keeps reading its own rows. The department counts inschrijvingen
|
|
44
48
|
rather than inschrijvers, and reads what a member is from the cancelled registrations as well, so
|
|
45
49
|
`jeugdbewegingen.sql` decides it in its own `deelnemers`.
|
|
46
50
|
|
|
47
51
|
Which registrations reach either of those is `includes/filter-registration-types.sql`: a registration
|
|
48
|
-
stands in a leeftijdsgroep, an activiteit or a wachtlijst
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
stands in a leeftijdsgroep, an activiteit or a wachtlijst. A leeftijdsgroep makes someone a lid of
|
|
53
|
+
that eenheid, a wachtlijst makes them nobody's -- counting those would put the people waiting for a
|
|
54
|
+
place among the leden -- and an activiteit counts only for whoever is in no leeftijdsgroep that
|
|
55
|
+
werkjaar. Only for them, because a lid of one eenheid who joins the kamp of another was counted at
|
|
56
|
+
both: once through their leeftijdsgroep and once through the activiteit, the second time among that
|
|
57
|
+
eenheid's kinderen, where it moved its omkaderingscijfer and GTP index as well as its ledenaantal.
|
|
58
|
+
Whoever still counts through an activiteit is in no leeftijdsgroep, so `all-registrations` names them
|
|
59
|
+
`Activiteit` rather than naming the kamp: the charts that draw the leden per leeftijdsgroep group on
|
|
60
|
+
that column, and a kamp would stand among the takken there. The aanlevering pins itself further to the
|
|
61
|
+
leeftijdsgroepen alone in `jeugdbewegingen.sql`.
|
|
51
62
|
|
|
52
63
|
## One definition, in Metabase too
|
|
53
64
|
|
|
54
65
|
`@include` puts a fragment in one place in git. Snippets put it in one place in Metabase: every
|
|
55
|
-
|
|
66
|
+
fragment a question refers to is written as a snippet of its own, and a question refers to it -- `{{snippet: deduplicated-non-platform-registrations}}`
|
|
56
67
|
where the file says `-- @include deduplicated-non-platform-registrations`, with it referring to
|
|
57
68
|
`{{snippet: all-non-platform-registrations}}` rather than holding a second copy of those rows. A card is then the handful of lines that say what it counts
|
|
58
69
|
instead of the two hundred that say what a lid is, and whoever changes what a lid is changes it once
|
|
@@ -74,6 +85,14 @@ The fragments are still expanded as well. `card.sql` is the whole query, which i
|
|
|
74
85
|
and what says whether the sql itself is right; `card.snippetSql` is that query with the fragments left
|
|
75
86
|
as references, and is what Metabase is given.
|
|
76
87
|
|
|
88
|
+
`-- @inline <name>` is the other way to read the same file: it is written out where it stands in both,
|
|
89
|
+
so Metabase is given the sql rather than a reference, and no snippet is offered for it. It is for a
|
|
90
|
+
fragment that exists only so an environment can say a piece of a query its own way -- the kenmerken a
|
|
91
|
+
sheet splits its rijen into, the kolomnamen it groups them on -- where a snippet would stand in the
|
|
92
|
+
sidebar as a piece of syntax nobody would open, with nothing referring to it. An inlined fragment reads no fragment of its own: written
|
|
93
|
+
out, a nested `{{snippet: ...}}` would reach Metabase against tags the question never declared, and
|
|
94
|
+
it is refused rather than left to fail there.
|
|
95
|
+
|
|
77
96
|
## One report, several platforms
|
|
78
97
|
|
|
79
98
|
The same report is written for every platform, and they do not all count every figure the same way:
|
|
@@ -85,10 +104,53 @@ report is loaded — `loadReport(env)` takes the environment, the same name the
|
|
|
85
104
|
|---|---|
|
|
86
105
|
| `report/includes/<env>/gtp.sql` | what `@include gtp` expands to in that environment |
|
|
87
106
|
| `-- description@ravot:` | what a card's `-- description:` says there |
|
|
107
|
+
| `-- except: keeo` | the tab or card is not written there at all |
|
|
108
|
+
| `-- only: keeo` | the card is written there and nowhere else |
|
|
109
|
+
|
|
110
|
+
A card names the first two and keeps saying `@include gtp`, which is what keeps one report from
|
|
111
|
+
quietly becoming two. An override of a name no fragment carries is refused rather than ignored:
|
|
112
|
+
nothing includes it, so a misspelled file would change nothing and say nothing.
|
|
113
|
+
|
|
114
|
+
`except` is the one that leaves something out rather than saying it differently, for the figure a
|
|
115
|
+
platform records nothing about. Keeo no longer asks its leden for a geslacht, so the seven cards that
|
|
116
|
+
split on one are not written there. A card left alone on a row by this takes the row:
|
|
117
|
+
`-- size@keeo: full` on the lidgeldverdeling of the eenheden page and on the
|
|
118
|
+
leeftijdsgroepenvergelijking of the nationale page, each of which stood beside a geslachtenverdeling.
|
|
88
119
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
120
|
+
Where the figure is worth reading without the split, it is drawn two ways rather than dropped. A card
|
|
121
|
+
cannot be two shapes, so it is two cards, and `only` is what keeps them from both being written:
|
|
122
|
+
|
|
123
|
+
| | drawn everywhere but keeo | drawn there |
|
|
124
|
+
|---|---|---|
|
|
125
|
+
| de leeftijdsverdeling van een eenheid | `eenheid-leeftijd-en-geslacht` | `eenheid-leden-per-leeftijd` |
|
|
126
|
+
| de ULDK-tabel en haar totalen | `uldk`, `uldk-totaal` | `uldk-zonder-geslacht`, `uldk-zonder-geslacht-totaal` |
|
|
127
|
+
| het deelnemerstabblad van de koepel | `deelnemers-bovenlokaal` | `deelnemers-bovenlokaal-werk-en-projectgroepen` |
|
|
128
|
+
|
|
129
|
+
`except: keeo` on the first and `only: keeo` on the second, which is the whole of the pairing:
|
|
130
|
+
`except` on both would hand a platform naming neither of them both shapes of one figure. The ULDK
|
|
131
|
+
pair says why that matters — both tables are titled `ULDK`, as the page names them, so a platform
|
|
132
|
+
given the two would store them as one question. Two cards of a tab may share a title exactly because
|
|
133
|
+
no environment writes both, and that is checked per environment rather than over the file.
|
|
134
|
+
|
|
135
|
+
The aanlevering follows, and is where this cannot be said with `except`: a sheet has to be delivered
|
|
136
|
+
whole, so the column goes rather than the card. `includes/participant-details.sql` is the kenmerken a
|
|
137
|
+
deelnemerstabblad splits its rijen into and `includes/participant-detail-columns.sql` the same ones
|
|
138
|
+
as the names it groups and orders on — keeo's variants of the two name the geboortejaar alone. Both
|
|
139
|
+
are read by both deelnemerstabbladen, and a test keeps them naming the same kenmerken: a column
|
|
140
|
+
selected but not grouped on is a sheet that refuses to run. Both are inlined: what they hold is the
|
|
141
|
+
columns of one sheet rather than a definition the report counts by, and neither is read anywhere but
|
|
142
|
+
in the deelnemerstabbladen.
|
|
143
|
+
|
|
144
|
+
Not grouping on it is the point rather than a consequence. A werkjaar imported from the client's own
|
|
145
|
+
statistics still has the answer on file, so a sheet that kept the column would deliver those years
|
|
146
|
+
split into more rows than the years after them. The rows the CTEs are built from still carry the
|
|
147
|
+
`Geslacht` — they are the registrations as they stand, and every other page reads them — but nothing
|
|
148
|
+
in the sheet reads it.
|
|
149
|
+
|
|
150
|
+
What an environment leaves out is still read once, by `loadRetiredReport(env)`. A question is stored
|
|
151
|
+
in Metabase under its card and its tab, so the questions of a card that stopped being written are
|
|
152
|
+
only recognisable from the report that no longer holds it — and without them they would be archived
|
|
153
|
+
as something the client wrote themselves, which is to say not at all.
|
|
92
154
|
|
|
93
155
|
## What a leeftijdsgroep counts as
|
|
94
156
|
|
|
@@ -113,9 +175,11 @@ Ravot's list is the one to read before changing either. Its ondersteunende leden
|
|
|
113
175
|
may not be categorised as leiding: the omkaderingscijfer and the GTP index would then count them as
|
|
114
176
|
leiding the kinderen of an eenheid are looked after by. The aanlevering delivers them among the
|
|
115
177
|
leiding anyway — the department has no third word for them — by naming the leeftijdsgroep itself in
|
|
116
|
-
`ravot/type
|
|
178
|
+
`ravot/participant-type.sql`, which only works for as long as the category does not say it. Keeo
|
|
179
|
+
names two there: its stam is delivered among the leden and its ondersteunende leden among the
|
|
180
|
+
leiding, and both stay volwassenen everywhere else.
|
|
117
181
|
|
|
118
|
-
Standing in front of the reader only holds until the next `yarn metabase report
|
|
182
|
+
Standing in front of the reader only holds until the next `yarn metabase report` in the separate devops project, which rewrites every
|
|
119
183
|
card from these files — an edit made in Metabase is a correction to bring back here, not a place to
|
|
120
184
|
keep one.
|
|
121
185
|
|
|
@@ -125,7 +189,19 @@ delivery template: tables to download as .xlsx and paste into it rather than cha
|
|
|
125
189
|
a `dashboard:` of its own, which writes it as a second dashboard in the collection instead of as a
|
|
126
190
|
page of the ledenstatistieken. That is also why those cards name their columns -- Metabase writes the
|
|
127
191
|
header of an export from the column's title, and a sheet read by a government department has to keep
|
|
128
|
-
the names the template gives it.
|
|
192
|
+
the names the template gives it. A figure the koepel wants out of the same sheet for itself stands
|
|
193
|
+
behind those, in a column the template has no cell for: keeo reads how many of a row are the stam
|
|
194
|
+
and the ondersteunende leden it delivers among the leden and the leiding.
|
|
195
|
+
|
|
196
|
+
Not every ploeg of a koepel is a structuurvrijwilliger of it, and that is the third pair above: the
|
|
197
|
+
deelnemerstabblad of the koepel is written once for keeo and once for everyone else, so neither card
|
|
198
|
+
carries the other's conditions. Keeo's names its werkgroepen and projectgroepen, and its losse leden
|
|
199
|
+
beside them, and leaves out its personeel even where that sits in a werkgroep as well -- a fact of the
|
|
200
|
+
member rather than of the inschrijving being read. Named rather than read off the categories they are
|
|
201
|
+
filed under, because nothing here knows those: a category lives as json on the unit's registration
|
|
202
|
+
period and the statistics database holds no such thing. So the list is the whole answer, like the
|
|
203
|
+
takken above it -- a ploeg it does not name delivers nobody, and one that is renamed or added in the
|
|
204
|
+
administration has to be renamed or added here too.
|
|
129
205
|
|
|
130
206
|
The koepel's own organization is treated the other way around by the two. The ledenstatistieken leave
|
|
131
207
|
it out by default -- it is the national body, not an eenheid, and the client's own report normally
|
|
@@ -140,13 +216,13 @@ koepel under that same id, so both hold in the years imported from the client's
|
|
|
140
216
|
well as in the years the sync owns.
|
|
141
217
|
|
|
142
218
|
Installing Metabase differs per environment — Docker locally (`stam platform-report start`), a jar
|
|
143
|
-
under systemd on a server (`yarn metabase install` in devops) — but configuring it is the same HTTP
|
|
219
|
+
under systemd on a server (`yarn metabase install` in the separate devops project) — but configuring it is the same HTTP
|
|
144
220
|
calls either way. That is why this package holds no install logic and no credentials: a caller passes the
|
|
145
221
|
base URL, the credentials and the data source to write against.
|
|
146
222
|
|
|
147
223
|
| | Local | Server |
|
|
148
224
|
|---|---|---|
|
|
149
|
-
| Written by | `stam platform-report dashboards` | `yarn metabase report -s keeo/keeo-metabase-001` |
|
|
225
|
+
| Written by | `stam platform-report dashboards` | `yarn metabase report -s keeo/keeo-metabase-001` in the separate devops project |
|
|
150
226
|
| Authenticates with | the admin account the CLI created | an api key from 1Password |
|
|
151
227
|
| Data source | registered by the CLI | added once by hand, looked up by name |
|
|
152
228
|
|
|
@@ -173,5 +249,5 @@ and filters — and never run a card. A column renamed in the statistics migrati
|
|
|
173
249
|
in Metabase rather than here.
|
|
174
250
|
|
|
175
251
|
```bash
|
|
176
|
-
|
|
252
|
+
pnpm stam test metabase
|
|
177
253
|
```
|
package/dist/report.d.ts
CHANGED
|
@@ -19,21 +19,28 @@
|
|
|
19
19
|
* SELECT COUNT(DISTINCT member_id) AS `Totaal leden` FROM leden
|
|
20
20
|
*
|
|
21
21
|
* `@include <name>` is replaced by `includes/<name>.sql`, which is how every card counts members the
|
|
22
|
-
* same way, and a fragment may include another.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
22
|
+
* same way, and a fragment may include another. `@inline <name>` reads the same file and writes it
|
|
23
|
+
* out where it stands instead of referring to it, for a fragment that only exists so an environment
|
|
24
|
+
* can say a piece of a query its own way and is not a definition anyone would open on its own.
|
|
25
|
+
* `{{name}}` marks a query parameter, the same syntax Metabase uses, and `[[...]]` around a clause
|
|
26
|
+
* drops it when that parameter is empty. A parameter several values can be chosen for is written
|
|
27
|
+
* `IN ({{name}})`, since Metabase replaces it with all of them, comma separated.
|
|
26
28
|
*
|
|
27
29
|
* A card is read twice over. `sql` is the query with every fragment expanded, which is the whole of
|
|
28
|
-
* what it counts and what the tests check. `snippetSql` leaves the fragments where they
|
|
29
|
-
* `{{snippet: ...}}` references Metabase understands, and is what Metabase is given: a
|
|
30
|
-
* written there as a snippet of its own, so what a lid is stands in one place and an edit
|
|
31
|
-
* reaches every question that reads it.
|
|
30
|
+
* what it counts and what the tests check. `snippetSql` leaves the included fragments where they
|
|
31
|
+
* stand, as the `{{snippet: ...}}` references Metabase understands, and is what Metabase is given: a
|
|
32
|
+
* fragment is written there as a snippet of its own, so what a lid is stands in one place and an edit
|
|
33
|
+
* to it reaches every question that reads it. An inlined one is expanded in both.
|
|
32
34
|
*
|
|
33
35
|
* The same report is written for every platform, which do not all count the same thing the same way.
|
|
34
36
|
* Where they differ, the environment says which variant a card gets: `includes/<env>/<name>.sql`
|
|
35
37
|
* replaces the fragment of that name, and a setting written `-- description@<env>:` replaces the
|
|
36
38
|
* unqualified one. Neither is visible to a card, which keeps saying `@include gtp`.
|
|
39
|
+
*
|
|
40
|
+
* A figure a platform does not record at all is the one thing no variant can say: `-- except: keeo`
|
|
41
|
+
* on a tab or a card leaves it out there, and the report is written without it. `-- only: keeo` is
|
|
42
|
+
* the other way round and is what a figure drawn two ways needs -- a card cannot be two shapes, so
|
|
43
|
+
* the second is a card of its own, written where the first is not and nowhere else.
|
|
37
44
|
*/
|
|
38
45
|
export type ReportCard = {
|
|
39
46
|
key: string;
|
|
@@ -90,8 +97,27 @@ export type ReportCard = {
|
|
|
90
97
|
* entirely when too many do not fit -- an eenheid or leeftijdsgroep chart needs a rotation to keep them.
|
|
91
98
|
*/
|
|
92
99
|
xLabels?: ReportCardXLabels;
|
|
100
|
+
/**
|
|
101
|
+
* How the x-axis reads the values it is given. Absent leaves it to Metabase, which reads a column
|
|
102
|
+
* of numbers as a `linear` axis and ticks it at round numbers -- a leeftijdenchart labelled 10,
|
|
103
|
+
* 20, 30 rather than per bar. `ordinal` makes every value a category of its own, which is what a
|
|
104
|
+
* chart with a bar per value wants, and what a column of text already gets.
|
|
105
|
+
*/
|
|
106
|
+
xScale?: ReportCardXScale;
|
|
93
107
|
/** Parameters the query takes, read from the `{{...}}` in the sql. */
|
|
94
108
|
parameters: string[];
|
|
109
|
+
/**
|
|
110
|
+
* The environments this card is not written for. A platform that does not record what the card
|
|
111
|
+
* counts has no variant of it to be given, only an empty one, so it is left out there instead.
|
|
112
|
+
*/
|
|
113
|
+
except: string[];
|
|
114
|
+
/**
|
|
115
|
+
* The environments this card is written for, and no others. Empty is every one of them, which is
|
|
116
|
+
* what nearly every card is. It is the second shape of a figure that says one: the card it stands
|
|
117
|
+
* in for leaves out the same environments this names, so exactly one of the two is ever written
|
|
118
|
+
* -- where `except` alone would give a platform that named neither both of them.
|
|
119
|
+
*/
|
|
120
|
+
only: string[];
|
|
95
121
|
/**
|
|
96
122
|
* The fragments this card reads, the ones those fragments read included. Metabase resolves a
|
|
97
123
|
* snippet against the tags of the question it stands in and not against the snippet that refers
|
|
@@ -99,7 +125,7 @@ export type ReportCard = {
|
|
|
99
125
|
*/
|
|
100
126
|
snippets: string[];
|
|
101
127
|
sql: string;
|
|
102
|
-
/** The same query with the fragments left as references, which is
|
|
128
|
+
/** The same query with the included fragments left as references, which is what Metabase is given. */
|
|
103
129
|
snippetSql: string;
|
|
104
130
|
};
|
|
105
131
|
/**
|
|
@@ -144,12 +170,19 @@ export type ReportTab = {
|
|
|
144
170
|
required: string[];
|
|
145
171
|
/** Cards that only feed the filter dropdowns. They live in the collection but on no tab. */
|
|
146
172
|
hidden: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* The environments this tab is not written for, which is where every card of it is left out:
|
|
175
|
+
* a tab whose cards are all about a figure the platform does not record has nothing to show.
|
|
176
|
+
*/
|
|
177
|
+
except: string[];
|
|
147
178
|
cards: ReportCard[];
|
|
148
179
|
};
|
|
149
180
|
export declare const reportCardSizes: readonly ["full", "two-thirds", "half", "third", "quarter", "sixth"];
|
|
150
181
|
export type ReportCardSize = typeof reportCardSizes[number];
|
|
151
182
|
export declare const reportCardXLabels: readonly ["show", "hide", "compact", "rotate-45", "rotate-90"];
|
|
152
183
|
export type ReportCardXLabels = typeof reportCardXLabels[number];
|
|
184
|
+
export declare const reportCardXScales: readonly ["ordinal", "linear"];
|
|
185
|
+
export type ReportCardXScale = typeof reportCardXScales[number];
|
|
153
186
|
export declare const reportCardBest: readonly ["low", "high"];
|
|
154
187
|
export type ReportCardBest = typeof reportCardBest[number];
|
|
155
188
|
/** The order the tabs are written in: the pages of the client's report first, then what is not one. */
|
|
@@ -163,6 +196,14 @@ export declare function getReportDirectory(): string;
|
|
|
163
196
|
* here rather than in the queries. `env` is the same name the data source carries.
|
|
164
197
|
*/
|
|
165
198
|
export declare function loadReport(env: string, directory?: string): Promise<ReportTab[]>;
|
|
199
|
+
/**
|
|
200
|
+
* What this environment leaves out, as the tabs holding it: a tab it does not write, with every card
|
|
201
|
+
* of it, and a tab it does write, with only the cards it leaves out.
|
|
202
|
+
*
|
|
203
|
+
* A question is stored under its card and its tab both, so clearing away one an earlier run wrote
|
|
204
|
+
* needs the two of them -- and the report this environment loads no longer holds either.
|
|
205
|
+
*/
|
|
206
|
+
export declare function loadRetiredReport(env: string, directory?: string): Promise<ReportTab[]>;
|
|
166
207
|
/**
|
|
167
208
|
* The shared fragments of an environment, each one as the snippet Metabase holds it in.
|
|
168
209
|
*
|
package/dist/report.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,0FAA0F;IAC1F,OAAO,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,IAAI,EAAE,cAAc,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,W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,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAEpD;AAcD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAM,GAAG,MAAM,CAS1F"}
|
package/dist/report.js
CHANGED
|
@@ -3,6 +3,7 @@ import path from 'path';
|
|
|
3
3
|
import { fileURLToPath } from 'url';
|
|
4
4
|
export const reportCardSizes = ['full', 'two-thirds', 'half', 'third', 'quarter', 'sixth'];
|
|
5
5
|
export const reportCardXLabels = ['show', 'hide', 'compact', 'rotate-45', 'rotate-90'];
|
|
6
|
+
export const reportCardXScales = ['ordinal', 'linear'];
|
|
6
7
|
export const reportCardBest = ['low', 'high'];
|
|
7
8
|
/** The order the tabs are written in: the pages of the client's report first, then what is not one. */
|
|
8
9
|
export const reportTabOrder = ['nationaal', 'eenheden', 'netwerk', 'varia', 'jeugdbewegingen', 'filters'];
|
|
@@ -17,13 +18,42 @@ export function getReportDirectory() {
|
|
|
17
18
|
* here rather than in the queries. `env` is the same name the data source carries.
|
|
18
19
|
*/
|
|
19
20
|
export async function loadReport(env, directory = getReportDirectory()) {
|
|
21
|
+
const written = (await readTabs(env, directory))
|
|
22
|
+
.filter(tab => !tab.except.includes(env))
|
|
23
|
+
.map(tab => ({ ...tab, cards: tab.cards.filter(card => isWrittenIn(card, env)) }));
|
|
24
|
+
// A tab is written as a page whether or not it has anything left to put on it, so a tab that
|
|
25
|
+
// lost every card to the environment has to be left out as a tab instead of card by card.
|
|
26
|
+
const empty = written.find(tab => tab.cards.length === 0);
|
|
27
|
+
if (empty) {
|
|
28
|
+
throw new Error(`Tab "${empty.key}" has every card left out of ${env}, which would write the page empty. Leave the tab out instead: "-- except: ${env}".`);
|
|
29
|
+
}
|
|
30
|
+
return written.sort((a, b) => orderOf(a.key) - orderOf(b.key));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* What this environment leaves out, as the tabs holding it: a tab it does not write, with every card
|
|
34
|
+
* of it, and a tab it does write, with only the cards it leaves out.
|
|
35
|
+
*
|
|
36
|
+
* A question is stored under its card and its tab both, so clearing away one an earlier run wrote
|
|
37
|
+
* needs the two of them -- and the report this environment loads no longer holds either.
|
|
38
|
+
*/
|
|
39
|
+
export async function loadRetiredReport(env, directory = getReportDirectory()) {
|
|
40
|
+
return (await readTabs(env, directory))
|
|
41
|
+
.map(tab => tab.except.includes(env) ? tab : { ...tab, cards: tab.cards.filter(card => !isWrittenIn(card, env)) })
|
|
42
|
+
.filter(tab => tab.cards.length > 0)
|
|
43
|
+
.sort((a, b) => orderOf(a.key) - orderOf(b.key));
|
|
44
|
+
}
|
|
45
|
+
/** Whether this environment writes the card: it is not left out, and not left to other environments. */
|
|
46
|
+
function isWrittenIn(card, env) {
|
|
47
|
+
return !card.except.includes(env) && (card.only.length === 0 || card.only.includes(env));
|
|
48
|
+
}
|
|
49
|
+
/** Every tab the report declares, read for this environment but with nothing left out yet. */
|
|
50
|
+
async function readTabs(env, directory) {
|
|
20
51
|
const includes = await loadIncludes(path.join(directory, 'includes'), env);
|
|
21
52
|
const sql = new Map([...includes].map(([name, include]) => [name, include.sql]));
|
|
22
53
|
const files = (await fs.readdir(directory)).filter(file => file.endsWith('.sql')).sort();
|
|
23
|
-
|
|
54
|
+
return await Promise.all(files.map(async (file) => {
|
|
24
55
|
return parseTab(await fs.readFile(path.join(directory, file), 'utf-8'), file, sql, env);
|
|
25
56
|
}));
|
|
26
|
-
return tabs.sort((a, b) => orderOf(a.key) - orderOf(b.key));
|
|
27
57
|
}
|
|
28
58
|
/**
|
|
29
59
|
* The shared fragments of an environment, each one as the snippet Metabase holds it in.
|
|
@@ -35,8 +65,14 @@ export async function loadReport(env, directory = getReportDirectory()) {
|
|
|
35
65
|
*/
|
|
36
66
|
export async function loadSnippets(env, directory = getReportDirectory()) {
|
|
37
67
|
const includes = await loadIncludes(path.join(directory, 'includes'), env);
|
|
68
|
+
const sql = new Map([...includes].map(([name, include]) => [name, include.sql]));
|
|
69
|
+
// A fragment is a snippet because a question refers to it. One that is only ever inlined is
|
|
70
|
+
// written out wherever it is read, so a snippet of it would stand in the sidebar unreferred to --
|
|
71
|
+
// and it is a line of sql rather than a definition anyone would open.
|
|
72
|
+
const referred = new Set((await readTabs(env, directory)).flatMap(tab => tab.cards.flatMap(card => card.snippets)));
|
|
38
73
|
return [...includes]
|
|
39
|
-
.
|
|
74
|
+
.filter(([name]) => referred.has(name))
|
|
75
|
+
.map(([name, include]) => ({ name, sql: referenceIncludes(include.sql, sql), description: include.description }))
|
|
40
76
|
.sort((a, b) => a.name.localeCompare(b.name));
|
|
41
77
|
}
|
|
42
78
|
function orderOf(key) {
|
|
@@ -102,8 +138,10 @@ export function parseTab(contents, file, includes, env) {
|
|
|
102
138
|
throw new Error(`${file} declares no cards`);
|
|
103
139
|
}
|
|
104
140
|
// A question is stored under its title, so two cards sharing one on the same tab would end up as
|
|
105
|
-
// the same question: whichever is written last decides what both show.
|
|
106
|
-
|
|
141
|
+
// the same question: whichever is written last decides what both show. Read among the cards this
|
|
142
|
+
// environment writes, since two shapes of one figure that leave each other out are never both.
|
|
143
|
+
const written = env === undefined ? cards : cards.filter(card => isWrittenIn(card, env));
|
|
144
|
+
const duplicate = written.find((card, index) => written.findIndex(other => other.title === card.title) !== index);
|
|
107
145
|
if (duplicate) {
|
|
108
146
|
throw new Error(`${file}: two cards are titled "${duplicate.title}", which would store them as one question`);
|
|
109
147
|
}
|
|
@@ -128,6 +166,7 @@ export function parseTab(contents, file, includes, env) {
|
|
|
128
166
|
filters,
|
|
129
167
|
required: requiredFilters,
|
|
130
168
|
hidden: header.attributes.get('hidden') === 'true',
|
|
169
|
+
except: splitList(header.attributes.get('except')),
|
|
131
170
|
cards,
|
|
132
171
|
};
|
|
133
172
|
}
|
|
@@ -136,7 +175,7 @@ export function parseTab(contents, file, includes, env) {
|
|
|
136
175
|
* slipped down rather than a comment, and would otherwise be dropped without a word: writing a
|
|
137
176
|
* comment above `-- size:` is enough to make the whole block below it stop counting.
|
|
138
177
|
*/
|
|
139
|
-
const knownAttributes = new Set(['title', 'display', 'size', 'description', 'dimensions', 'metrics', 'columns', 'stacked', 'segments', 'best', 'xlabels', 'height', 'span', 'latitude', 'longitude', 'filters', 'required', 'hidden', 'dashboard']);
|
|
178
|
+
const knownAttributes = new Set(['title', 'display', 'size', 'description', 'dimensions', 'metrics', 'columns', 'stacked', 'segments', 'best', 'xlabels', 'height', 'span', 'latitude', 'longitude', 'filters', 'required', 'hidden', 'dashboard', 'except', 'only', 'xscale']);
|
|
140
179
|
function splitSections(contents, file, env) {
|
|
141
180
|
const sections = [];
|
|
142
181
|
let current;
|
|
@@ -198,6 +237,10 @@ function parseCard(section, file, includes) {
|
|
|
198
237
|
if (xLabels !== undefined && !reportCardXLabels.includes(xLabels)) {
|
|
199
238
|
throw new Error(`${file}: card "${section.key}" has xlabels "${xLabels}", expected one of ${reportCardXLabels.join(', ')}`);
|
|
200
239
|
}
|
|
240
|
+
const xScale = section.attributes.get('xscale');
|
|
241
|
+
if (xScale !== undefined && !reportCardXScales.includes(xScale)) {
|
|
242
|
+
throw new Error(`${file}: card "${section.key}" has xscale "${xScale}", expected one of ${reportCardXScales.join(', ')}`);
|
|
243
|
+
}
|
|
201
244
|
const display = required(section.attributes, 'display', file, section.key);
|
|
202
245
|
const latitude = section.attributes.get('latitude');
|
|
203
246
|
const longitude = section.attributes.get('longitude');
|
|
@@ -230,10 +273,13 @@ function parseCard(section, file, includes) {
|
|
|
230
273
|
segments,
|
|
231
274
|
best,
|
|
232
275
|
xLabels: xLabels,
|
|
276
|
+
xScale: xScale,
|
|
233
277
|
parameters: parameterNames(sql),
|
|
278
|
+
except: splitList(section.attributes.get('except')),
|
|
279
|
+
only: splitList(section.attributes.get('only')),
|
|
234
280
|
snippets: collectIncludes(section.body, includes),
|
|
235
281
|
sql,
|
|
236
|
-
snippetSql: referenceIncludes(section.body).trim(),
|
|
282
|
+
snippetSql: referenceIncludes(section.body, includes).trim(),
|
|
237
283
|
};
|
|
238
284
|
}
|
|
239
285
|
/** A setting counted in whole cards or rows, which is only a size while it is a positive number. */
|
|
@@ -285,38 +331,51 @@ function parseRanges(section, file, display) {
|
|
|
285
331
|
}
|
|
286
332
|
return { segments, best: best };
|
|
287
333
|
}
|
|
288
|
-
/** The line a fragment is asked for on
|
|
289
|
-
const
|
|
334
|
+
/** The line a fragment is asked for on: `@include` refers to a snippet, `@inline` is written out. */
|
|
335
|
+
const fragmentDirective = /^([ \t]*)--[ \t]*@(include|inline)[ \t]+(\S+)[ \t]*$/gm;
|
|
336
|
+
/** The same line, for asking whether a body holds one at all. */
|
|
337
|
+
const holdsFragment = /^[ \t]*--[ \t]*@(?:include|inline)[ \t]+\S+[ \t]*$/m;
|
|
290
338
|
/** A fragment may include another, which is how the two registration grains share their filters. */
|
|
291
339
|
function expandIncludes(body, includes, file, card, chain = []) {
|
|
292
|
-
return body.replaceAll(
|
|
340
|
+
return body.replaceAll(fragmentDirective, (_match, indent, kind, name) => {
|
|
293
341
|
const include = includes.get(name);
|
|
294
342
|
if (include === undefined) {
|
|
295
|
-
throw new Error(`${file}: card "${card}"
|
|
343
|
+
throw new Error(`${file}: card "${card}" ${kind}s "${name}", which has no report/includes/${name}.sql`);
|
|
296
344
|
}
|
|
297
345
|
if (chain.includes(name)) {
|
|
298
346
|
throw new Error(`${file}: card "${card}" includes "${name}" from within itself: ${[...chain, name].join(' -> ')}`);
|
|
299
347
|
}
|
|
348
|
+
// An inlined fragment is written out rather than referred to, so a fragment it read would
|
|
349
|
+
// reach Metabase as a snippet nothing declared a tag for, and the question would not run.
|
|
350
|
+
if (kind === 'inline' && holdsFragment.test(include)) {
|
|
351
|
+
throw new Error(`${file}: card "${card}" inlines "${name}", which reads a fragment of its own. An inlined fragment stands on its own.`);
|
|
352
|
+
}
|
|
300
353
|
return expandIncludes(include, includes, file, card, [...chain, name])
|
|
301
354
|
.split('\n').map(line => indent + line).join('\n');
|
|
302
355
|
});
|
|
303
356
|
}
|
|
304
357
|
/**
|
|
305
|
-
* The same body with each fragment left where it stands, as the reference Metabase resolves
|
|
306
|
-
* its snippets. Nothing is checked here: `expandIncludes`
|
|
307
|
-
* there and one that includes itself.
|
|
358
|
+
* The same body with each included fragment left where it stands, as the reference Metabase resolves
|
|
359
|
+
* against its snippets, and each inlined one written out. Nothing is checked here: `expandIncludes`
|
|
360
|
+
* has already refused a fragment that is not there and one that includes itself.
|
|
308
361
|
*/
|
|
309
|
-
function referenceIncludes(body) {
|
|
310
|
-
return body.replaceAll(
|
|
362
|
+
function referenceIncludes(body, includes) {
|
|
363
|
+
return body.replaceAll(fragmentDirective, (_match, indent, kind, name) => {
|
|
364
|
+
if (kind === 'include') {
|
|
365
|
+
return `${indent}{{snippet: ${name}}}`;
|
|
366
|
+
}
|
|
367
|
+
return (includes.get(name) ?? '').split('\n').map(line => indent + line).join('\n');
|
|
368
|
+
});
|
|
311
369
|
}
|
|
312
370
|
/**
|
|
313
|
-
* Every fragment a body
|
|
314
|
-
* A question has to name those too: Metabase looks a nested
|
|
315
|
-
* of the question rather than among those of the
|
|
371
|
+
* Every fragment a body refers to as a snippet, in the order it reaches them, the ones its fragments
|
|
372
|
+
* refer to included. A question has to name those too: Metabase looks a nested
|
|
373
|
+
* `{{snippet: all-registrations}}` up among the tags of the question rather than among those of the
|
|
374
|
+
* fragment that refers to it. An inlined fragment is no snippet and needs no tag.
|
|
316
375
|
*/
|
|
317
376
|
function collectIncludes(body, includes, found = []) {
|
|
318
|
-
for (const [, , name] of body.matchAll(
|
|
319
|
-
if (found.includes(name)) {
|
|
377
|
+
for (const [, , kind, name] of body.matchAll(fragmentDirective)) {
|
|
378
|
+
if (kind === 'inline' || found.includes(name)) {
|
|
320
379
|
continue;
|
|
321
380
|
}
|
|
322
381
|
found.push(name);
|
package/dist/report.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":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AAG,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC,MAAM,EAAE,MAAc,EAAE,EAAE;QAC9E,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACnH,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAC,MAAM,EAAE,IAAY,EAAE,EAAE;QAC5E,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC;IAC/F,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/sync-report.d.ts
CHANGED
|
@@ -230,8 +230,12 @@ export declare function syncSnippets(api: MetabaseApi, snippets: readonly Report
|
|
|
230
230
|
*
|
|
231
231
|
* `env` is the platform being written, the same name the report was loaded for. It says which colors
|
|
232
232
|
* a chart falls back to; without it they are Metabase's.
|
|
233
|
+
*
|
|
234
|
+
* `retired` is what that environment leaves out. Nothing is written for it -- it is there so the
|
|
235
|
+
* questions an earlier run wrote can be told apart from the ones the client wrote themselves, and
|
|
236
|
+
* cleared away rather than left standing beside the report they are no longer part of.
|
|
233
237
|
*/
|
|
234
|
-
export declare function syncReport(api: MetabaseApi, databaseId: number, tabs: ReportTab[], snippets: readonly ReportSnippet[], collection: string, dashboardName: string, hasCoordinates?: boolean, env?: string): Promise<ReportSyncResult>;
|
|
238
|
+
export declare function syncReport(api: MetabaseApi, databaseId: number, tabs: ReportTab[], snippets: readonly ReportSnippet[], collection: string, dashboardName: string, hasCoordinates?: boolean, env?: string, retired?: ReportTab[]): Promise<ReportSyncResult>;
|
|
235
239
|
/**
|
|
236
240
|
* The collection to rename into the one written now: the one this wrote while collections were named
|
|
237
241
|
* per environment. Renaming keeps its id, and with it every question, dashboard, link and bookmark
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-report.d.ts","sourceRoot":"","sources":["../src/sync-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExF;;;;;;;;;GASG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,KAAK,kBAAkB,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;CAC9B,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AAEpE,eAAO,MAAM,aAAa,EAAE,SAAS,YAAY,EAIhD,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,GAAG,MAAM,CAEjE;AAkDD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,GAA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