Skip to content

Commit

Permalink
fix(metabase): add new metabase url
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Jul 16, 2024
1 parent 7d96da6 commit 1a88827
Show file tree
Hide file tree
Showing 24 changed files with 128 additions and 159 deletions.
2 changes: 1 addition & 1 deletion .anonymizer/anonymize-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

exclude_tables="contact_support,contact_support_message,expired_token,message_email,monitor_batch_process,user_usager_login,spatial_ref_sys"
exclude_tables="contact_support,contact_support_message,expired_token,message_email,monitor_batch_process,spatial_ref_sys"

mkdir -p /tmp/pg_dump

Expand Down
2 changes: 1 addition & 1 deletion .anonymizer/ts-transformers/usager--historique.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function anonymize(values: Record<string, any>) {
const anonymised = historique.map((decision: any) => {
return {
...decision,
motifDetails: null, // TODO: incorrect? rather anonymize `motif` field?
motifDetails: null,
orientationDetails: null,
userName: fullName(),
userId: randomInt(),
Expand Down
2 changes: 1 addition & 1 deletion .anonymizer/ts-transformers/usager--options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
lastName,
firstName,
} from "./common/data-helpers"
import { faker } from "@faker-js/faker"
import { fakerFR as faker } from "@faker-js/faker"

function anonymize(values: Record<string, any>) {
const options = JSON.parse(values.options)
Expand Down
1 change: 1 addition & 0 deletions .kontinuous/env/dev/templates/backend.sealed-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ spec:
MSS_TOKEN: AgC2VKVT2WKLbJ9uRIaaAi058ddChuoe2Xx4KC1uqDLsDTk/70LfgjiDvdD0rEDfjX4c7ixpwxj8gjf1cdqG/SCELDWPsUp51t1Bfj5E4Yl9S5pM3KxRklpbCNN60qs+ZqWr8fQIfEkkjjaSemkqql1RyySzwPheuepS0MJUTudHbR/qa+qSieve2qXLWwTbwvc4oqbnFjCs/RET4ycM4CvIGwev3nv/c4PPUFSKqM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J5VZ9QANxNbCeY7NMPTxqxHkSF+jBEbaXjeh7rPfxHnC6Qddm63ndlnHGjFKM6k0B3K7u+6xA1AmYUPqg/AQBD3ki3BtRY0mR0iT7qNlu4hxs3HpHGFzBDuz6Hs5pcGpMfRSYE2yLcC1lZFFBh8l/7sT1dqogoWxbe7SIBjn2GfTwDUS8m8gDMvGBWB7KcNU0Tuw56bZPFw7QByYu7BRmHX0+CKqglRED0kxqH3HIpOJc7MuGLfrVy7kCi03nWjrmOnySI3a4TlUzh+7KZjTD4S+tX4eGRJ4bSF5T1UE4LcWF1mWqfzBDR0sHUktPm2eOPWYaOKayXlWXwXdib79eeU/rY8DNiaRZxq9+aTR3Z6qBWp+dw4HzSRgwsfgG9WID1YGRhnOWMTTiXfPdeZJGnQ89vBH3rkAxpVFL9s+l4X2/Pu8abT3kCYusf1tjvAT5YJXWpswEOokxlLHCfNRwJPynbXLnS1fk5fGY7hRRm9c82SsYlF/BOO7bESw93fdgJGaVW+IZTFRX9w2fGJkHs4Ti7ZZQIPe9FnHTTUEfBPsfJSFxQJCgCndKm5RKKXiFlPVO8EGLiVSLElOjL7c0y8lCbbOyFVen7wzmUoUfIcwR1lHtLr6+dICkEgA5y769etMLWYXqD8c/anMmAzVaGUFvB8JMKz/gS9I1rxUMADczRKk5+Njoqb61WRWCvfzQKqxRFZ3ecm7NFvo01NkhZ8iP2e6oRNq27HaaAgaJ5DYk5MLl6LUUdPgbEM=

template:
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
DATA_INCLUSION_TOKEN: >-
AgAr7Nnt1AwG+BhUuds/Yo1gavHhRpyrF33yo+dPVhLopJTjd/YWULrk8YkSOAvBsngsGif8mBequV/OqlaBDHT3GF3Dt1L8b0QFPCoprDDYDJ6HzRKEBiZ1wOXPJjNVxQeTrihPRjzUfHHm4+FZ9ai9Te47Iii31a77/HLben9PUSlqG72o6cyombRGJaDkc63MSrrXXg/YkclswgBG14EoZNgVvAXT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0y8lCbbOyFVen7wzmUoUfIcwR1lHtLr6+dICkEgA5y769etMLWYXqD8c/anMmAzVaGUFvB8JMKz/gS9I1rxUMADczRKk5+Njoqb61WRWCvfzQKqxRFZ3ecm7NFvo01NkhZ8iP2e6oRNq27HaaAgaJ5DYk5MLl6LUUdPgbEM=
template:
metadata:
annotations:
Expand Down
1 change: 1 addition & 0 deletions .kontinuous/env/prod/templates/backend.sealed-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
DATA_INCLUSION_URL: AgB/oRPBh9J6O2KxwJJnGV9ygJm6Kfch1EKKzQQs8bUVSIZEglUz+R9q8sbh9SATv6c2K1UjkQSPFOBUTlE/Z9pRe40flZjsVcetaUinNLh1Iw6jHFR5v6KJPVSky8M8AihfMYNn4UnS4w22aoFBB0WF2CNOyVV1DCR2acUNfKgX9h4hE0dM1s6lKXlgJ1rP3s8XxXk7w9CvXKLqjx+SAGbPcBPl7aq1y8XvmsORWfCUzo59dVJVO29MV2imiB8TCJco9ujv8kW7CAIuVEdEx0IAkO6pJucDednlLI9906cor98O+QjOTpjbgqjC8V2fVgR1wEDNAzQnW+Uh7J8GifR97TWhL9iLbYWHgoBg5C1Xm9PoL0pgh26ugyKcXQS0MmFasZ47YaGZ396nWpMYb/tYyrtAtABVWc4/PU0ZTGfz2tdfSGUG5aiMWOdVEoz1iDvYkqodW+qYpUDIa2EItu/2K0EiT7C1WhoPnDpczJYcrcuNtMz6UWXdi3J4QWAn4ud5Fuiy7Oy0wqeVnyplqJzHPe+YPVIqbazyZ27yIQZxJ90Cynw2lzEjmyfZne8gzzDKzjLpyeh8XzuQy12YshoIGFiDjx5++0Bl/q5zk329yKLctfyB+0nyly9dRiZXBbXIWawWXvwGfsHgMm6bzRGxltCuAvcjmtL/PJ8Hg+ikA1TNlWZ7wOxuPluo3nq0TePlXJWzmFl3HZT47y9vWUurcHi+LS1GBIRczWATWzCCfnvckfQp6duiGrhR+QuNmdHKtlmvsiY3yGo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UfRseZ67+kw+foWe0b4ql4F6UjYR25nCu+4jwnxOQfgeeSQVTgGuVyqDIhV0gpv4q8YpaPdemWrOozgZTwXFuNCbPJV4Bf6La/QGefnG89FNSWDGkVqd7KthYyvFY2P1kANJTaLCYrAkNZ554gKIOeDl3qge+A3viE60b1/JaGVcAwHh0PAfTCEewGDJyLILH7afpRhM2nGsd0tBj27hxAvumxplXbDBcdEMpyTrvlaV3IP0h5o6L5pxA+PO6NzVfV3ErktNRjkMKB43eksz636KiwPgORCKh11H9DVkyNON2HRWn7FK0WFYbIG+GBGVlRsm6z7K9qFxQBjLDqGq37EcLV1EF2/XwxqOvxaPRPGVtB0GYA2K+JlPNBufNOQMPS2/e+GM=
template:
metadata:
annotations:
Expand Down
16 changes: 9 additions & 7 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
fileignoreconfig:
- filename: .kontinuous/env/dev/templates/backend.sealed-secret.yaml
checksum: 1004dba97da28abd48690f0b251ba880c33e3835dd1f6cfd790f94530bdfc698
checksum: d76fa05f7587f094d19959816a03c4589ae0c8675436f11fa8bf454cfd917741
- filename: .kontinuous/env/preprod/templates/backend.sealed-secret.yaml
checksum: 18f384d1b1db3b94bdb6c7365c3c0f8877776fd89b18e7c9ec14e403cc1e7d8e
checksum: 291f7f330aca385888f414aa9a7f4ebfe0c03bd4d154e0ed0f6ee4895ea139c0
- filename: .kontinuous/env/prod/templates/backend.sealed-secret.yaml
checksum: a2c17d6712a53d254ed583bdae603e1e6fe20e7d7705ad29f05659fc233bb398
checksum: a066a32a383b37f3e2195d41a309628e64d66e70611aa8ee05159205c0fdcd7c
- filename: _scripts/db/dumps/domifa_test.postgres.restore-data-only.sql
checksum: d3a65a3aba4100bf883d4511b60c57b66fbfb524deda81e1b77cd848d9a3d99a
- filename: _scripts/db/dumps/domifa_test.postgres.truncate-data.sql
checksum: 0a9b780387e8c40344bd52f033a201da019c8b3e9e5d501ee6cb85040b6e168c
- filename: _scripts/db/dumps/domifa_test.postgres.truncate-restore-data-only.sql
checksum: 44eff533b91a2781462ca7e0b3c153b9875a62f501b76e5ac502a872fb0e344b
- filename: packages/backend/.env.backend.dev.example.env
checksum: 0a5c739d323189c5a1dd8dc960f9a4e3b293ec98276c6bf5bfb893ecc1d177c5
checksum: d52c7fbfae21884e63f84a7aa0759c5296f0ecb483e71866541b2b44d7880758
- filename: packages/backend/.env.backend.test.local.example.env
checksum: 1540bbfa2a80d38a05d5d1628db89f7f0ae1ed1e0f054b54a2589e6fe5ca24e0
- filename: packages/backend/.env.preset/local-dev.preset.env
checksum: 5ab8fef1d3b8cd95756a8b14243a310a4149c13ee29265545cd8bccc2607f0c7
checksum: af5962c1b288218cb9a43c9bff6ddd5d16c086088b7c990278af030261a7f500
- filename: packages/backend/.env.preset/local-test-docker.preset.env
checksum: fb126c330739ab9529735b99088c9349f5c4803832e0765372d5b3f339199561
checksum: 2a459a7689ff1c0add9bbea1ff00eb44118cf3f3f0e6f6197830d28016a3272a
- filename: packages/backend/.env.preset/local-test.preset.env
checksum: 6ba6d367425758ea9dbdd4baf7e60aff79276fb2e0c3758b58d9f8d084ed6f6d
checksum: 1df51337cfa7a04ef16465366f30772353fc4fd09a575fa365fd7784fb2e8631
- filename: packages/backend/package.json
checksum: 15861b5f33dbc2782ae24580e135582721889487eb22f5247ab5a3f2bda20c94
- filename: packages/backend/src/_migrations/1716819355558-auto-migration.ts
Expand Down Expand Up @@ -59,6 +59,8 @@ fileignoreconfig:
checksum: f5bc2bd3820b5f982b8d3c36360ed20764e408b4f59d65f470e503e66d1b3282
- filename: packages/frontend/src/app/modules/general/components/static-pages/landing-page-portail/landing-page-portail.component.html
checksum: 8040e47846a6f36cbd66e06d7c92172f38fb854187dd61cdd08560ac7c1f3a81
- filename: packages/frontend/src/app/modules/manage-usagers/components/usager-filter/services/usagersSorter.service.ts
checksum: e94c65884c6649a69aa3f397371fd4a6a54e0fb2baabc4f216f753a795dd5dc9
- filename: packages/frontend/src/app/modules/structure-stats/components/reporting-form/reporting-form.component.ts
checksum: 8570ed88e0e872bc32eac27d37abc1bf8198816dcb27427efb7b6f8e751582b0
- filename: packages/frontend/src/app/modules/structures/components/structures-custom-docs/structures-custom-docs.component.html
Expand Down
1 change: 1 addition & 0 deletions packages/backend/.env.backend.dev.example.env
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ SOLIGUIDE_TOKEN=xxxx
DATA_INCLUSION_URL=https://api.data.inclusion.beta.gouv.fr/api/v0/structures
DATA_INCLUSION_TOKEN=xxxx
METABASE_TOKEN=xxxx
METABASE_URL=xxxx

MSS_TOKEN=xxx
MSS_URL=xxx
1 change: 1 addition & 0 deletions packages/backend/.env.preset/local-dev.preset.env
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ S3_BUCKET_NAME=domifa
S3_BUCKET_REGION=xxx
S3_BUCKET_ROOT_DIR=domifa
METABASE_TOKEN=xx
METABASE_URL=xx
1 change: 1 addition & 0 deletions packages/backend/.env.preset/local-test-docker.preset.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ S3_BUCKET_NAME=domifa
S3_BUCKET_REGION=xxx
S3_BUCKET_ROOT_DIR=domifa
METABASE_TOKEN=xx
METABASE_URL=xx
1 change: 1 addition & 0 deletions packages/backend/.env.preset/local-test.preset.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ S3_BUCKET_NAME=domifa
S3_BUCKET_REGION=xxx
S3_BUCKET_ROOT_DIR=domifa
METABASE_TOKEN=xx
METABASE_URL=xx
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ export class AdminStructuresController {
action: "GET_STATS_PORTAIL_ADMIN",
});

const METABASE_SITE_URL =
"https://metabase-domifa.ovh.fabrique.social.gouv.fr";
const METABASE_URL = domifaConfig().metabase.url;

const year = metabaseDto.year ? [metabaseDto.year] : null;
let region = metabaseDto.region
Expand Down Expand Up @@ -248,16 +247,11 @@ export class AdminStructuresController {
type_de_structure: structureType,
structureid: structureId,
},
exp: Math.round(Date.now() / 1000) + 10 * 60, // 10 minute expiration
exp: Math.round(Date.now() / 1000) + 100 * 60, // 10 minute expiration
};

const token = jwt.sign(payload, domifaConfig().metabaseToken);

const url =
METABASE_SITE_URL +
"/embed/dashboard/" +
token +
"#bordered=false&titled=false";
const token = jwt.sign(payload, domifaConfig().metabase.token);
const url = `${METABASE_URL}embed/dashboard/${token}#bordered=false&titled=false`;

return { url };
}
Expand Down
11 changes: 8 additions & 3 deletions packages/backend/src/config/domifaConfig.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,14 @@ export function loadConfig(x: Partial<DomifaEnv>): DomifaConfig {
required: false,
}),
},
metabaseToken: configParser.parseString(x, "METABASE_TOKEN", {
required: true,
}),
metabase: {
token: configParser.parseString(x, "METABASE_TOKEN", {
required: true,
}),
url: configParser.parseString(x, "METABASE_URL", {
required: true,
}),
},
};
return config;
}
Expand Down
5 changes: 4 additions & 1 deletion packages/backend/src/config/model/DomifaConfig.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,8 @@ export type DomifaConfig = {
mssUrl: string; // MSS = Mon suivi social
mssToken: string; // MSS = Mon suivi social
};
metabaseToken: string;
metabase: {
url: string;
token: string;
};
};
1 change: 1 addition & 0 deletions packages/backend/src/config/model/DomifaEnv.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ export type DomifaEnv = {
DATA_INCLUSION_URL: string;
DATA_INCLUSION_TOKEN: string;
METABASE_TOKEN: string;
METABASE_URL: string;
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const dataGenerator = {
number,
boolean,
email,
fullName,
city,
};

Expand All @@ -22,6 +23,9 @@ function city() {
function lastName() {
return faker.person.lastName();
}
function fullName() {
return faker.person.fullName();
}

function phoneNumber() {
return faker.phone.number();
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-love": "^43.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-n": "^17.9.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "7.15.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-love": "^43.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-no-lookahead-lookbehind-regexp": "^0.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Component, OnInit } from "@angular/core";
import { Meta, Title } from "@angular/platform-browser";
import { saveAs } from "file-saver";
import { MatomoTracker } from "ngx-matomo-client";
import { CustomToastService } from "../../../shared/services/custom-toast.service";

@Component({
selector: "app-faq",
Expand All @@ -13,8 +11,7 @@ export class FaqComponent implements OnInit {
constructor(
private readonly titleService: Title,
private readonly meta: Meta,
private readonly matomo: MatomoTracker,
private readonly toastService: CustomToastService
private readonly matomo: MatomoTracker
) {}

public ngOnInit(): void {
Expand All @@ -27,13 +24,6 @@ export class FaqComponent implements OnInit {
});
}

public download(url: string, nom: string): void {
saveAs(url, nom + ".mp4");
setTimeout(() => {
this.toastService.success("Le téléchargement vient de débuter");
}, 500);
}

public scrollTo(el: HTMLElement): void {
el.scrollIntoView({
behavior: "smooth",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
background-size: 100% 200%;
display: block;
width: 100%;
min-height: 80vh;
min-height: 70vh;
background-image: linear-gradient(to bottom, #f2f2f2, transparent);
z-index: 50;
}
Expand Down Expand Up @@ -118,16 +118,16 @@
label {
color: white;
}
}

#search-bar span,
#search-bar button {
display: block;
position: absolute;
top: 0;
padding: 0.5rem;
background: transparent !important;
font-size: 1.3rem;
span,
button {
display: block;
position: absolute;
top: 0;
padding: 0.5rem;
background: transparent !important;
font-size: 1.3rem;
}
}

#searchIcon {
Expand Down
Loading

0 comments on commit 1a88827

Please sign in to comment.