Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(glossary): from export to publish #1424

Merged
merged 45 commits into from
Jun 18, 2024
Merged

feat(glossary): from export to publish #1424

merged 45 commits into from
Jun 18, 2024

Conversation

maxgfr
Copy link
Member

@maxgfr maxgfr commented Jun 6, 2024

fix #1407

Copy link

socket-security bot commented Jun 6, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

Copy link

socket-security bot commented Jun 10, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None 0 4.78 kB isaacs
npm/[email protected] None 0 8.05 kB iarna
npm/[email protected] environment, filesystem 0 172 kB vitaly
npm/[email protected] None 0 821 kB hargasinski
npm/[email protected] None +3 98.1 kB doowb
npm/[email protected] None 0 7.45 kB sindresorhus
npm/[email protected] None 0 23.1 kB dougwilson
npm/[email protected] None 0 2.94 kB sindresorhus
npm/[email protected] Transitive: filesystem +4 36.8 kB sindresorhus
npm/[email protected] None 0 35.9 kB kornel
npm/[email protected] network 0 26 kB tootallnate
npm/[email protected] None 0 336 kB ashtuchkin
npm/[email protected] None +2 57.2 kB ljharb
npm/[email protected] None 0 2.62 kB sindresorhus
npm/[email protected] None 0 36.8 kB creationix
npm/[email protected] None 0 27.4 kB dougwilson
npm/[email protected] None 0 3.06 kB sindresorhus
npm/[email protected] None 0 9.29 kB ionicabizau
npm/[email protected] environment, filesystem +2 158 kB ljharb
npm/[email protected] None 0 4.5 MB blesh
npm/[email protected] None +2 58.4 kB sindresorhus
npm/[email protected] None 0 12.5 kB dominictarr
npm/[email protected] None 0 49.9 kB domenic

🚮 Removed packages: npm/@emotion/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

.kontinuous/templates/alert.cronjob.yaml Show resolved Hide resolved
.kontinuous/sql/post-restore.sql Show resolved Hide resolved
docker-compose.yml Show resolved Hide resolved
shared/types/src/elastic/editorial-content.ts Show resolved Hide resolved
@@ -27,13 +27,13 @@ export type ContributionElasticDocumentLightRelatedContent = Omit<
"linkedContent"
> & {
linkedContent: ContributionLinkedContent[];
contentWithGlossary?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il est optional pour le cas des fiches SP ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je crois j'avais fait ça par simplicité pour éviter de modifier le type en le destructurant. Mais oui, ce champ n'existe pas en théorie. Mais ça demandait pas mal de refacto au niveau des types....

Comment on lines +17 to +18
delete document.intro;
delete document.introWithGlossary;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je ne suis pas fan des delete, on ne peux pas passer par une destructuration ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouais j'avais essayé, mais c'était moins lisible je trouve

targets/export-elasticsearch/src/services/glossary.ts Outdated Show resolved Hide resolved
}
}

private async updateGlossaryForEditorialContents(glossary: Glossary) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On n'a pas le glossaire ailleurs aussi comme sur les fiches MT ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ailleurs, c'est à dire ?

De mon analyse, pour notre contenu, c'était les contributions et les pages infos. Et en externe juste les fiches MT

targets/ingester/src/transform/fiche-travail-emploi.ts Outdated Show resolved Hide resolved
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
41.8% Duplication on New Code (required ≤ 15%)

See analysis details on SonarCloud

Copy link

🎉 Deployment for commit 03b007b :

Ingresses
Docker images
  • 📦 docker pull harbor.fabrique.social.gouv.fr/cdtn/cdtn-admin/export:sha-03b007bd862c309ce0f8ae213ccf726d325b30fa
  • 📦 docker pull harbor.fabrique.social.gouv.fr/cdtn/cdtn-admin/frontend:sha-03b007bd862c309ce0f8ae213ccf726d325b30fa
  • 📦 docker pull harbor.fabrique.social.gouv.fr/cdtn/cdtn-admin/hasura:sha-03b007bd862c309ce0f8ae213ccf726d325b30fa
Debug

@maxgfr maxgfr merged commit c724fbf into master Jun 18, 2024
28 of 29 checks passed
@maxgfr maxgfr deleted the linked-opti-glossary branch June 18, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Améliorer le processus de Glossaire pour gagner du temps
4 participants