Skip to content

Commit d2210ca

Browse files
authored
feat: add traceability, identities router, install plugin from an archive (#49)
* chore: use node 24 and update deps * feat: add traceability * feat: add configurable link to processing tutorial * feat: add identities router (optionnal) * feat: can install plugins from tarball * feat: show the processing owner * chore: delete processing when account is deleted based on feedback * feat: better identities router * feat: add runsRetention and maxFailures configs * feat: can schedule a run at the end of each month * chore: better errors logs * fix: access to the notifications menu * chore: update redirect notif url * fix: update runs queries to include owner filtering
1 parent 3bf7176 commit d2210ca

70 files changed

Lines changed: 4050 additions & 2550 deletions

Some content is hidden

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

.github/workflows/reuse-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
- uses: actions/setup-node@v3
1414
with:
15-
node-version: 22
15+
node-version: 24
1616
cache: 'npm'
1717

1818
- name: Install dependencies

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22
1+
24

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# =============================
22
# Base Node image
33
# =============================
4-
FROM node:22.14.0-alpine AS base
4+
FROM node:24-alpine AS base
55

66
WORKDIR /app
77
ENV NODE_ENV=production
@@ -68,6 +68,7 @@ RUN npm i --no-save @rollup/rollup-linux-x64-musl
6868
COPY --from=types /app/api/config api/config
6969
COPY --from=types /app/api/types api/types
7070
ADD /api/src/config.ts api/src/config.ts
71+
COPY shared shared
7172
ADD /ui ui
7273
RUN npm -w ui run build
7374

@@ -106,7 +107,7 @@ COPY package.json README.md LICENSE BUILD.json* ./
106107
EXPOSE 9090
107108
# USER node # This would be great to use, but not possible as the volumes are mounted as root
108109
WORKDIR /app/worker
109-
CMD ["node", "--experimental-strip-types", "index.ts"]
110+
CMD ["node", "--disable-warning=ExperimentalWarning", "index.ts"]
110111

111112
# =============================
112113
# Install production dependencies for API
@@ -141,4 +142,4 @@ EXPOSE 8080
141142
EXPOSE 9090
142143
# USER node # This would be great to use, but not possible as the volumes are mounted as root
143144
WORKDIR /app/api
144-
CMD ["node", "--max-http-header-size", "65536", "--experimental-strip-types", "index.ts"]
145+
CMD ["node", "--max-http-header-size", "65536", "--disable-warning=ExperimentalWarning", "index.ts"]

api/config/custom-environment-variables.cjs renamed to api/config/custom-environment-variables.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
cipherPassword: 'CIPHER_PASSWORD',
33
dataDir: 'DATA_DIR',
44
tmpDir: 'TMP_DIR',
@@ -12,8 +12,11 @@ module.exports = {
1212
},
1313
port: 'PORT',
1414
privateDirectoryUrl: 'PRIVATE_DIRECTORY_URL',
15+
privateEventsUrl: 'PRIVATE_EVENTS_URL',
1516
secretKeys: {
16-
limits: 'SECRET_LIMITS'
17+
limits: 'SECRET_LIMITS',
18+
events: 'SECRET_EVENTS',
19+
identities: 'SECRET_IDENTITIES'
1720
},
1821
observer: {
1922
active: 'OBSERVER_ACTIVE',
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
cipherPassword: undefined,
33
dataDir: '/app/data',
44
tmpDir: null, // will be dataDir + '/tmp' if null
@@ -9,8 +9,11 @@ module.exports = {
99
},
1010
pluginCategories: ['Essentiels', 'Mes plugins', 'Données de références', 'Tests'],
1111
privateDirectoryUrl: 'http://simple-directory:8080',
12+
privateEventsUrl: undefined,
1213
secretKeys: {
13-
limits: null
14+
limits: null,
15+
events: undefined,
16+
identities: undefined
1417
},
1518
mongoUrl: 'mongodb://localhost:27017/data-fair-processings',
1619
port: 8080,
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
module.exports = {
1+
export default {
22
cipherPassword: 'dev',
33
dataDir: '../data/development',
4-
port: 8082,
5-
privateDirectoryUrl: 'http://localhost:8080',
64
mongoUrl: 'mongodb://localhost:27017/data-fair-processings-development',
75
observer: {
86
port: 9092
97
},
8+
port: 8082,
9+
privateDirectoryUrl: 'http://localhost:8080',
10+
privateEventsUrl: 'http://localhost:8084',
11+
secretKeys: {
12+
identities: 'secret-identities',
13+
events: 'secret-events'
14+
},
1015
serveUi: false
1116
}

api/config/production.cjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

api/config/production.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default {}
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
module.exports = {
1+
export default {
22
cipherPassword: 'test',
33
dataDir: './data/test',
4-
port: 8082,
5-
privateDirectoryUrl: 'http://localhost:8080',
64
mongoUrl: 'mongodb://localhost:27017/data-fair-processings-test',
75
observer: {
86
port: 9092
97
},
8+
port: 8082,
9+
privateDirectoryUrl: 'http://localhost:8080',
10+
privateEventsUrl: 'http://localhost:8084',
11+
secretKeys: {
12+
identities: 'secret-identities',
13+
events: 'secret-events'
14+
},
1015
serveUi: false
1116
}

api/config/type/schema.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,23 @@
5454
"type": "string",
5555
"pattern": "^https?://"
5656
},
57+
"privateEventsUrl": {
58+
"type": "string"
59+
},
5760
"secretKeys": {
5861
"type": "object",
5962
"properties": {
6063
"limits": {
61-
"type": ["string", "null"]
64+
"type": [
65+
"string",
66+
"null"
67+
]
68+
},
69+
"events": {
70+
"type": "string"
71+
},
72+
"identities": {
73+
"type": "string"
6274
}
6375
}
6476
},

0 commit comments

Comments
 (0)