diff --git a/targets/export-elasticsearch/src/ingester/contributions/fetchAgreementMessage.ts b/targets/export-elasticsearch/src/ingester/contributions/fetchAgreementMessage.ts index 39854af0b..b02f29410 100644 --- a/targets/export-elasticsearch/src/ingester/contributions/fetchAgreementMessage.ts +++ b/targets/export-elasticsearch/src/ingester/contributions/fetchAgreementMessage.ts @@ -21,7 +21,6 @@ interface HasuraReturn { export async function fetchAgreementMessage( idcc: string ): Promise { - console.log("fetchAgreementMessage", idcc); const HASURA_GRAPHQL_ENDPOINT = context.get("cdtnAdminEndpoint") || "http://localhost:8080/v1/graphql"; const HASURA_GRAPHQL_ENDPOINT_SECRET = diff --git a/targets/export-elasticsearch/src/ingester/contributions/fetchFicheSp.ts b/targets/export-elasticsearch/src/ingester/contributions/fetchFicheSp.ts index af1855b1d..a4af063b6 100644 --- a/targets/export-elasticsearch/src/ingester/contributions/fetchFicheSp.ts +++ b/targets/export-elasticsearch/src/ingester/contributions/fetchFicheSp.ts @@ -24,7 +24,6 @@ interface HasuraReturn { export async function fetchFicheSp( ficheSpId: string ): Promise { - console.log("fetchFicheSp", ficheSpId); const HASURA_GRAPHQL_ENDPOINT = context.get("cdtnAdminEndpoint") || "http://localhost:8080/v1/graphql"; const HASURA_GRAPHQL_ENDPOINT_SECRET = diff --git a/targets/export-elasticsearch/src/ingester/contributions/fetchLinkedContent.ts b/targets/export-elasticsearch/src/ingester/contributions/fetchLinkedContent.ts index a980ba2d6..642c6bd60 100644 --- a/targets/export-elasticsearch/src/ingester/contributions/fetchLinkedContent.ts +++ b/targets/export-elasticsearch/src/ingester/contributions/fetchLinkedContent.ts @@ -31,7 +31,6 @@ export async function fetchLinkedContent( questionIndex: number, idcc: string ): Promise { - console.log("fetchLinkedContent", cdtnId); const HASURA_GRAPHQL_ENDPOINT = context.get("cdtnAdminEndpoint") || "http://localhost:8080/v1/graphql"; const HASURA_GRAPHQL_ENDPOINT_SECRET = diff --git a/targets/export-elasticsearch/src/ingester/contributions/fetchMessageBlock.ts b/targets/export-elasticsearch/src/ingester/contributions/fetchMessageBlock.ts index 6b24897ab..8ecdeb8c4 100644 --- a/targets/export-elasticsearch/src/ingester/contributions/fetchMessageBlock.ts +++ b/targets/export-elasticsearch/src/ingester/contributions/fetchMessageBlock.ts @@ -27,7 +27,6 @@ interface HasuraReturn { export async function fetchMessageBlock( questionId: string ): Promise { - console.log("fetchMessageBlock", questionId); const HASURA_GRAPHQL_ENDPOINT = context.get("cdtnAdminEndpoint") || "http://localhost:8080/v1/graphql"; const HASURA_GRAPHQL_ENDPOINT_SECRET = diff --git a/targets/hasura/migrations/default/1710864292869_drop_schema_contrib/up.sql b/targets/hasura/migrations/default/1710864292869_drop_schema_contrib/up.sql index d4cd47644..35a0a5e6c 100644 --- a/targets/hasura/migrations/default/1710864292869_drop_schema_contrib/up.sql +++ b/targets/hasura/migrations/default/1710864292869_drop_schema_contrib/up.sql @@ -1,5 +1,13 @@ drop schema "contrib" cascade; -delete FROM public.documents -WHERE source = 'contributions' -AND document ? 'split' -AND is_available = false; \ No newline at end of file +-- delete from contribution.answer_cdtn_references +-- where cdtn_id in ( +-- select cdtn_id +-- FROM public.documents +-- WHERE source = 'contributions' +-- AND document ? 'split' +-- AND is_available = false +-- ); +-- delete FROM public.documents +-- WHERE source = 'contributions' +-- AND document ? 'split' +-- AND is_available = false; \ No newline at end of file