@stamhoofd/metabase 2.153.0 → 2.160.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/LICENSE.md CHANGED
@@ -5,25 +5,25 @@ Copyright 2020 Codawood BV
5
5
  Permission is hereby granted, free of charge, to any non-profit organization with fewer than 2,000 members (each, a “Licensee”), to use this software and associated documentation files (the “Software”), subject to the following conditions:
6
6
 
7
7
  1. Eligibility:
8
- This license applies only if neither the Licensee nor, if applicable, its parent or umbrella organization, is already subject to an existing license for this project. For the purposes of this license, a “parent or umbrella organization” means any organization with which the Licensee is affiliated, coordinated, or represented as part of a larger collective, including but not limited to national associations or federations.
8
+ This license applies only if neither the Licensee nor, if applicable, its parent or umbrella organization, is already subject to an existing license for this project. For the purposes of this license, a “parent or umbrella organization” means any organization with which the Licensee is affiliated, coordinated, or represented as part of a larger collective, including but not limited to national associations or federations.
9
9
 
10
10
  2. Modifications:
11
- Modifications to the Software are permitted only if they are published publicly under the MIT License, covering only the modifications; the original Software remains under this license and may not be sublicensed without a separate agreement. Any modification made by a Licensee (other than modifications by the original author, its representatives, or the copyright owner) shall be deemed to be distributed under the MIT License. Submission of modifications through publicly accessible channels, including but not limited to pull requests on code repositories such as GitHub, shall be considered an explicit acknowledgment and grant by the Licensee that such modifications are made available under the MIT License. Licensees may not sublicense, transfer, or assign the rights granted under this license except as expressly permitted herein.
11
+ Modifications to the Software are permitted only if they are published publicly under the MIT License, covering only the modifications; the original Software remains under this license and may not be sublicensed without a separate agreement. Any modification made by a Licensee (other than modifications by the original author, its representatives, or the copyright owner) shall be deemed to be distributed under the MIT License. Submission of modifications through publicly accessible channels, including but not limited to pull requests on code repositories such as GitHub, shall be considered an explicit acknowledgment and grant by the Licensee that such modifications are made available under the MIT License. Licensees may not sublicense, transfer, or assign the rights granted under this license except as expressly permitted herein.
12
12
 
13
13
  3. Precedence of Existing Licenses:
14
- If the Licensee, or its parent or umbrella organization, is already subject to an existing license for this project, that license shall take precedence, and no additional free license is granted. Nothing in this license shall be construed to override any pre-existing exclusive license agreement.
14
+ If the Licensee, or its parent or umbrella organization, is already subject to an existing license for this project, that license shall take precedence, and no additional free license is granted. Nothing in this license shall be construed to override any pre-existing exclusive license agreement.
15
15
 
16
16
  4. Data Protection / GDPR Responsibility:
17
- Licensees are solely responsible for ensuring that any processing of personal data using this software complies with applicable data protection laws, including the EU General Data Protection Regulation (GDPR).
17
+ Licensees are solely responsible for ensuring that any processing of personal data using this software complies with applicable data protection laws, including the EU General Data Protection Regulation (GDPR).
18
18
 
19
19
  5. Termination and Revocation:
20
- The copyright holders may revoke this license at any time, at their sole discretion.
20
+ The copyright holders may revoke this license at any time, at their sole discretion.
21
21
 
22
22
  6. Governing Law:
23
- This license shall be governed by and construed in accordance with the laws of Belgium, without regard to conflict of law principles.
23
+ This license shall be governed by and construed in accordance with the laws of Belgium, without regard to conflict of law principles.
24
24
 
25
25
  7. Third-Party Licenses:
26
- Certain files or components included in the Software may be governed by separate licenses, including open-source licenses, or contributed by third parties under different terms. Such files are not automatically covered by this license. Licensees are responsible for reviewing and complying with any additional license terms that apply to these files.
26
+ Certain files or components included in the Software may be governed by separate licenses, including open-source licenses, or contributed by third parties under different terms. Such files are not automatically covered by this license. Licensees are responsible for reviewing and complying with any additional license terms that apply to these files.
27
27
 
28
28
  For the purposes of this license, a “non-profit organization” means an entity recognized as non-profit under applicable law in its jurisdiction, which does not distribute profits to its members or owners.
29
29
 
package/README.md CHANGED
@@ -2,22 +2,22 @@
2
2
 
3
3
  Everything that configures Metabase: the ledenstatistieken report and the API client that writes it.
4
4
 
5
- | | |
6
- |---|---|
7
- | `report/*.sql` | The report, one file per tab, as queries on the platform statistics database |
8
- | `src/report.ts` | Reads those files. Knows nothing about Metabase |
9
- | `src/api.ts` | Minimal client for the Metabase HTTP API |
10
- | `src/sync-report.ts` | Says the report in Metabase's vocabulary and writes it |
11
- | `src/naming.ts` | What things are called in Metabase, so every caller agrees |
5
+ | | |
6
+ | -------------------- | ---------------------------------------------------------------------------- |
7
+ | `report/*.sql` | The report, one file per tab, as queries on the platform statistics database |
8
+ | `src/report.ts` | Reads those files. Knows nothing about Metabase |
9
+ | `src/api.ts` | Minimal client for the Metabase HTTP API |
10
+ | `src/sync-report.ts` | Says the report in Metabase's vocabulary and writes it |
11
+ | `src/naming.ts` | What things are called in Metabase, so every caller agrees |
12
12
 
13
13
  ## What the report counts
14
14
 
15
15
  Two fragments decide that, and every card opens on one of them:
16
16
 
17
- | | |
18
- |---|---|
19
- | `includes/all-non-platform-registrations.sql` | one row per registration: who was registered where, in which leeftijdsgroep, in which year |
20
- | `includes/deduplicated-non-platform-registrations.sql` | that narrowed to one row per member per eenheid, carrying what they are |
17
+ | | |
18
+ | ------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
19
+ | `includes/all-non-platform-registrations.sql` | one row per registration: who was registered where, in which leeftijdsgroep, in which year |
20
+ | `includes/deduplicated-non-platform-registrations.sql` | that narrowed to one row per member per eenheid, carrying what they are |
21
21
 
22
22
  Each fragment is a complete query. It states its own dependencies -- `deduplicated-non-platform-registrations` opens a `WITH` on
23
23
  `all-non-platform-registrations`, which opens one on `all-registrations` -- so whoever reads one
@@ -27,6 +27,10 @@ learns what it is built from. It also means every fragment runs as it stands: pa
27
27
  how a figure is investigated apart from the aggregates the cards draw over it.
28
28
  `includes/deduplicated-non-platform-registrations-all-years.sql` is the same over every werkjaar at once -- the year filter does not
29
29
  reach it, which is what the trend cards read; a test keeps its ranking identical to the single-year fragment's.
30
+ A card that only needs the last few werkjaren gives `aantal_werkjaren` a number (`-- defaults: aantal_werkjaren = 3`):
31
+ that switches on an optional clause in `all-non-platform-registrations-all-years` which keeps the chosen werkjaar and
32
+ the ones before it, before the ranking runs. Filtering the result afterwards reads the same rows but builds every
33
+ werkjaar first, which is as slow as the platform has years.
30
34
 
31
35
  A fragment that is a condition rather than a query -- which aansluitingen count, which kinds of
32
36
  registration count -- carries a `filter-` prefix and is a bare predicate: the query that includes it
@@ -100,12 +104,12 @@ the GTP index weighs leeftijdsgroepen for keeo and the age of a lid for ravot, w
100
104
  half. A statistics database holds one platform, so which variant a card gets is decided while the
101
105
  report is loaded — `loadReport(env)` takes the environment, the same name the data source carries.
102
106
 
103
- | | |
104
- |---|---|
107
+ | | |
108
+ | ------------------------------- | -------------------------------------------------- |
105
109
  | `report/includes/<env>/gtp.sql` | what `@include gtp` expands to in that environment |
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 |
110
+ | `-- description@ravot:` | what a card's `-- description:` says there |
111
+ | `-- except: keeo` | the tab or card is not written there at all |
112
+ | `-- only: keeo` | the card is written there and nowhere else |
109
113
 
110
114
  A card names the first two and keeps saying `@include gtp`, which is what keeps one report from
111
115
  quietly becoming two. An override of a name no fragment carries is refused rather than ignored:
@@ -120,11 +124,11 @@ leeftijdsgroepenvergelijking of the nationale page, each of which stood beside a
120
124
  Where the figure is worth reading without the split, it is drawn two ways rather than dropped. A card
121
125
  cannot be two shapes, so it is two cards, and `only` is what keeps them from both being written:
122
126
 
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` |
127
+ | | drawn everywhere but keeo | drawn there |
128
+ | ------------------------------------- | ------------------------------ | ----------------------------------------------------- |
129
+ | de leeftijdsverdeling van een eenheid | `eenheid-leeftijd-en-geslacht` | `eenheid-leden-per-leeftijd` |
130
+ | de ULDK-tabel en haar totalen | `uldk`, `uldk-totaal` | `uldk-zonder-geslacht`, `uldk-zonder-geslacht-totaal` |
131
+ | het deelnemerstabblad van de koepel | `deelnemers-bovenlokaal` | `deelnemers-bovenlokaal-werk-en-projectgroepen` |
128
132
 
129
133
  `except: keeo` on the first and `only: keeo` on the second, which is the whole of the pairing:
130
134
  `except` on both would hand a platform naming neither of them both shapes of one figure. The ULDK
@@ -220,11 +224,11 @@ under systemd on a server (`yarn metabase install` in the separate devops projec
220
224
  calls either way. That is why this package holds no install logic and no credentials: a caller passes the
221
225
  base URL, the credentials and the data source to write against.
222
226
 
223
- | | Local | Server |
224
- |---|---|---|
225
- | Written by | `stam platform-report dashboards` | `yarn metabase report -s keeo/keeo-metabase-001` in the separate devops project |
226
- | Authenticates with | the admin account the CLI created | an api key from 1Password |
227
- | Data source | registered by the CLI | added once by hand, looked up by name |
227
+ | | Local | Server |
228
+ | ------------------ | --------------------------------- | ------------------------------------------------------------------------------- |
229
+ | Written by | `stam platform-report dashboards` | `yarn metabase report -s keeo/keeo-metabase-001` in the separate devops project |
230
+ | Authenticates with | the admin account the CLI created | an api key from 1Password |
231
+ | Data source | registered by the CLI | added once by hand, looked up by name |
228
232
 
229
233
  Nothing this writes carries the name of a platform: the collection is `Ledenstatistieken` and holds
230
234
  the dashboards `Ledenstatistieken` and `Aanlevering ...`, whichever platform they count. A server
package/dist/api.js CHANGED
@@ -95,7 +95,8 @@ export class MetabaseApi {
95
95
  user = await this.currentUser();
96
96
  }
97
97
  catch (error) {
98
- if (error instanceof MetabaseApiError && (error.status === 401 || error.status === 403)) {
98
+ if (error instanceof MetabaseApiError &&
99
+ (error.status === 401 || error.status === 403)) {
99
100
  throw new Error(`${this.baseUrl} rejected the api key. Create a new one under Admin > Settings > Authentication > API keys and update it in 1Password.`, { cause: error });
100
101
  }
101
102
  throw error;
@@ -110,7 +111,7 @@ export class MetabaseApi {
110
111
  return Array.isArray(result) ? result : result.data;
111
112
  }
112
113
  async findDatabaseByName(name) {
113
- return (await this.listDatabases()).find(database => database.name === name);
114
+ return (await this.listDatabases()).find((database) => database.name === name);
114
115
  }
115
116
  /**
116
117
  * The registered database to write questions against, which has to be there already.
@@ -121,7 +122,7 @@ export class MetabaseApi {
121
122
  async requireDatabaseByName(name) {
122
123
  const match = await this.findDatabaseByName(name);
123
124
  if (!match) {
124
- const known = (await this.listDatabases()).map(database => database.name);
125
+ const known = (await this.listDatabases()).map((database) => database.name);
125
126
  throw new Error(`${this.baseUrl} has no data source named "${name}"${known.length > 0 ? `, only: ${known.join(', ')}` : ''}. Add it under Admin > Databases first.`);
126
127
  }
127
128
  return match;
@@ -170,15 +171,15 @@ export class MetabaseApi {
170
171
  const hidden = [];
171
172
  for (;;) {
172
173
  const metadata = await this.request('GET', `/api/database/${databaseId}/metadata?include_hidden=true`);
173
- const tables = (metadata.tables ?? []).filter(table => names.includes(table.name));
174
- for (const table of tables.filter(table => table.visibility_type !== 'hidden')) {
174
+ const tables = (metadata.tables ?? []).filter((table) => names.includes(table.name));
175
+ for (const table of tables.filter((table) => table.visibility_type !== 'hidden')) {
175
176
  await this.request('PUT', `/api/table/${table.id}`, { visibility_type: 'hidden' });
176
177
  hidden.push(table.name);
177
178
  }
178
179
  if (tables.length === names.length || Date.now() >= deadline) {
179
180
  return hidden;
180
181
  }
181
- await new Promise(resolve => setTimeout(resolve, 2_000));
182
+ await new Promise((resolve) => setTimeout(resolve, 2_000));
182
183
  }
183
184
  }
184
185
  /**
@@ -187,7 +188,7 @@ export class MetabaseApi {
187
188
  * than by name, which is the only thing Metabase guarantees about it.
188
189
  */
189
190
  async removeSampleDatabase() {
190
- const sample = (await this.listDatabases()).find(database => database.is_sample === true);
191
+ const sample = (await this.listDatabases()).find((database) => database.is_sample === true);
191
192
  if (!sample) {
192
193
  return { removed: false };
193
194
  }
@@ -196,18 +197,21 @@ export class MetabaseApi {
196
197
  }
197
198
  async listCollections() {
198
199
  const collections = await this.request('GET', '/api/collection');
199
- return collections.filter(collection => collection.archived !== true);
200
+ return collections.filter((collection) => collection.archived !== true);
200
201
  }
201
202
  /**
202
203
  * The collection the report lives in, created if it is not there yet. Everything the CLI writes
203
204
  * goes in one collection so it stays apart from whatever the client builds themselves.
204
205
  */
205
206
  async ensureCollection(name) {
206
- const match = (await this.listCollections()).find(collection => collection.name === name);
207
+ const match = (await this.listCollections()).find((collection) => collection.name === name);
207
208
  if (match) {
208
209
  return { id: match.id, created: false };
209
210
  }
210
- const created = await this.request('POST', '/api/collection', { name, parent_id: null });
211
+ const created = await this.request('POST', '/api/collection', {
212
+ name,
213
+ parent_id: null,
214
+ });
211
215
  return { id: created.id, created: true };
212
216
  }
213
217
  /**
@@ -237,20 +241,27 @@ export class MetabaseApi {
237
241
  * would otherwise keep showing words the report stopped saying.
238
242
  */
239
243
  async saveSnippet(input, existingId) {
240
- const body = { name: input.name, content: input.content, description: input.description ?? null };
244
+ const body = {
245
+ name: input.name,
246
+ content: input.content,
247
+ description: input.description ?? null,
248
+ };
241
249
  if (existingId !== undefined) {
242
- await this.request('PUT', `/api/native-query-snippet/${existingId}`, { ...body, archived: false });
250
+ await this.request('PUT', `/api/native-query-snippet/${existingId}`, {
251
+ ...body,
252
+ archived: false,
253
+ });
243
254
  return existingId;
244
255
  }
245
256
  return (await this.request('POST', '/api/native-query-snippet', body)).id;
246
257
  }
247
258
  async listCards(collectionId) {
248
259
  const items = await this.request('GET', `/api/collection/${collectionId}/items?models=card`);
249
- return (items.data ?? []).map(item => ({ id: item.id, name: item.name }));
260
+ return (items.data ?? []).map((item) => ({ id: item.id, name: item.name }));
250
261
  }
251
262
  async listDashboards(collectionId) {
252
263
  const items = await this.request('GET', `/api/collection/${collectionId}/items?models=dashboard`);
253
- return (items.data ?? []).map(item => ({ id: item.id, name: item.name }));
264
+ return (items.data ?? []).map((item) => ({ id: item.id, name: item.name }));
254
265
  }
255
266
  /**
256
267
  * Write a native question. Updating an existing card rather than replacing it keeps its id, and
@@ -283,7 +294,7 @@ export class MetabaseApi {
283
294
  async runCardValues(cardId) {
284
295
  const result = await this.request('POST', `/api/card/${cardId}/query`);
285
296
  return (result.data?.rows ?? [])
286
- .map(row => row[0])
297
+ .map((row) => row[0])
287
298
  .filter((value) => typeof value === 'string' && value.length > 0);
288
299
  }
289
300
  async createDashboard(name, description, collectionId) {
@@ -299,7 +310,11 @@ export class MetabaseApi {
299
310
  const dashboard = await this.request('GET', `/api/dashboard/${id}`);
300
311
  return {
301
312
  tabs: dashboard.tabs ?? [],
302
- cards: (dashboard.dashcards ?? []).map(dashcard => ({ id: dashcard.id, cardId: dashcard.card_id, tabId: dashcard.dashboard_tab_id })),
313
+ cards: (dashboard.dashcards ?? []).map((dashcard) => ({
314
+ id: dashcard.id,
315
+ cardId: dashcard.card_id,
316
+ tabId: dashcard.dashboard_tab_id,
317
+ })),
303
318
  };
304
319
  }
305
320
  /**
@@ -326,7 +341,7 @@ export class MetabaseApi {
326
341
  */
327
342
  async bookmarkDashboard(id) {
328
343
  const bookmarks = await this.request('GET', '/api/bookmark');
329
- if (bookmarks.some(bookmark => bookmark.type === 'dashboard' && bookmark.item_id === id)) {
344
+ if (bookmarks.some((bookmark) => bookmark.type === 'dashboard' && bookmark.item_id === id)) {
330
345
  return { created: false };
331
346
  }
332
347
  await this.request('POST', `/api/bookmark/dashboard/${id}`);
package/dist/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AA6EA,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACD;IAAtC,YAAY,OAAe,EAAW,MAAc;QAChD,KAAK,CAAC,OAAO,CAAC,CAAC;QADmB,WAAM,GAAN,MAAM,CAAQ;QAEhD,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACnC,CAAC;CACJ;AAQD;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,WAAW;IAIS;IAHrB,OAAO,CAAqB;IACnB,MAAM,CAAqB;IAE5C,YAA6B,OAAe,EAAE,UAA+B,EAAE;QAAlD,YAAO,GAAP,OAAO,CAAQ;QACxC,IAAI,CAAC,MAAM,GAAG,OAAO,CAA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