Skip to content

Commit 73599bf

Browse files
committed
Merge branch '25-gestion-ui-jsonschema' of https://github.com/Libertech-FR/sesame-orchestrator into 25-gestion-ui-jsonschema
2 parents 58cf7a0 + 16dbb8a commit 73599bf

File tree

5 files changed

+1451
-1915
lines changed

5 files changed

+1451
-1915
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ RUN yarn install \
1616
--non-interactive \
1717
--production=false
1818

19-
RUN apt-get update -y \
20-
&& apt-get install -y python3
21-
2219
RUN yarn run build
2320

2421
FROM node:18-bookworm-slim AS production
@@ -51,7 +48,9 @@ RUN apt clean -y \
5148
git \
5249
jq \
5350
nano \
54-
openssl
51+
openssl \
52+
python3 \
53+
build-essential
5554

5655
RUN yarn install \
5756
--prefer-offline \

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
include .env
21
APP_PORT = 4002
32
IMG_NAME = "ghcr.io/libertech-fr/sesame-orchestrator"
43
BASE_NAME = "sesame"
54
APP_NAME = "sesame-orchestrator"
65
PLATFORM = "linux/amd64"
6+
include .env
77

88
.DEFAULT_GOAL := help
99
help:
@@ -76,7 +76,7 @@ dbs: ## Start databases
7676
--health-retries=3 \
7777
--health-cmd="redis-cli ping || exit 1" \
7878
redis || true
79-
@docker exec -it $(BASE_NAME)-mongodb mongosh --eval "rs.initiate({_id: 'rs0', members: [{_id: 0, host: '127.0.0.1:27017'}]})" || true
79+
@docker exec -it $(BASE_NAME)-mongodb mongosh --eval "rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"$(BASE_NAME)-mongodb\"}]})" || true
8080

8181
stop: ## Stop the container
8282
@docker stop $(APP_NAME) || true

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"ioredis": "^5.3.2",
6969
"loglevel": "^1.8.1",
7070
"mongoose": "^8.0.2",
71-
"mongoose-to-swagger": "^1.5.1",
7271
"nest-winston": "^1.9.4",
7372
"nestjs-request-context": "^3.0.0",
7473
"passport": "^0.6.0",

src/management/identities/identities.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,13 @@ export class IdentitiesService extends AbstractServiceSchema {
8686
if (error instanceof ValidationSchemaException) {
8787
this.logger.warn(`${logPrefix} Validation schema error. ${JSON.stringify(error.getValidations())}`);
8888
update.additionalFields.validations = error.getValidations();
89-
this.logger.error(`${logPrefix} Validation schema error. ${JSON.stringify(error.getValidations())}`);
9089
throw new ValidationSchemaException(error.getPayload());
9190
} else {
9291
this.logger.error(`${logPrefix} Unhandled error: ${error.message}`);
9392
throw error; // Rethrow the original error if it's not one of the handled types.
9493
}
9594
}
96-
console.log('update', update);
95+
//update.state = IdentityState.TO_VALIDATE;
9796
const updated = await super.update(_id, update, options);
9897
//TODO: add backends service logic here (TO_SYNC)
9998
return updated;

0 commit comments

Comments
 (0)