Skip to content

Commit

Permalink
feat: desinstaller les anciennes contributions de l'admin (#1326)
Browse files Browse the repository at this point in the history
* feat: desinstaller les anciennes contributions de l'admin

* chore: clean

* chore: clean

* chore: yarn lock

* chore: clean

* chore: clean

* feat: remove all old contrib

* fix: remove old contrib from alert cli

* remove package contribution

* chore: clean

---------

Co-authored-by: Victor <[email protected]>
  • Loading branch information
Viczei and Victor authored Apr 4, 2024
1 parent a517277 commit 917574c
Show file tree
Hide file tree
Showing 353 changed files with 235 additions and 23,714 deletions.
32 changes: 0 additions & 32 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ jobs:
with:
imagePackage: export
dockerfile: targets/export-elasticsearch/Dockerfile
build-contributions:
use: build
with:
imagePackage: contributions
dockerfile: targets/contributions/Dockerfile
buildArgs:
NODE_ENV: production
CDTN_API_URL: https://cdtn-api.fabrique.social.gouv.fr
build-hasura:
use: build
with:
Expand Down Expand Up @@ -74,30 +66,6 @@ www:
runAsUser: 1000
runAsGroup: 1000

contributions:
~chart: app
~needs: [build-contributions]
probesPath: /
imagePackage: contributions
containerPort: 3200
envFrom:
- configMapRef:
name: contributions
- secretRef:
name: contributions
resources:
limits:
cpu: "100m"
memory: "256Mi"
requests:
cpu: "50m"
memory: "128Mi"
replicas: 1
securityContext:
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000

export:
~chart: app
~needs: [build-export]
Expand Down
15 changes: 0 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,6 @@ services:
environment:
HASURA_GRAPHQL_ENDPOINT: "http://hasura:8080/v1/graphql"

contributions:
build:
context: .
dockerfile: targets/contributions/Dockerfile
shm_size: 512m
depends_on:
- hasura
- www
ports:
- "3200:3200"
environment:
API_URI: http://www
env_file:
- .env

ingester:
build:
context: .
Expand Down
2 changes: 1 addition & 1 deletion package-scripts.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
scripts:
build:
default: lerna run --stream build --ignore @socialgouv/contibutions
default: lerna run --stream build
internals: lerna run --stream --scope shared* build
targets: lerna run --stream --scope frontend --scope alert-cli build

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"private": true,
"scripts": {
"build": "nps build",
"build:watch": "lerna run --stream build:watch --ignore @socialgouv/contibutions",
"build:watch": "lerna run --stream build:watch",
"dev": "nps dev",
"lint": "nps lint",
"start": "nps",
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import type { DocumentReferences } from "@shared/types";
import memoizee from "memoizee";
import { getContributionsReferences } from "./getContributionsReferences";
import { getOldContribRef } from "./getOldContribRef";

async function getContributionReferences(): Promise<DocumentReferences[]> {
const references = await getContributionsReferences();
const oldReferences = await getOldContribRef();

return [...references, ...oldReferences];
return [...references];
}

export default memoizee(getContributionReferences, { promise: true });
4 changes: 0 additions & 4 deletions targets/contributions/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions targets/contributions/.browserslistrc

This file was deleted.

11 changes: 0 additions & 11 deletions targets/contributions/.dockerignore

This file was deleted.

6 changes: 0 additions & 6 deletions targets/contributions/.gitignore

This file was deleted.

Loading

0 comments on commit 917574c

Please sign in to comment.