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/Call dbsder-api to get route from metadata #121

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ajeanneney
Copy link
Collaborator

@ajeanneney ajeanneney commented Jul 25, 2024

Issue description :

Use new endpoint of dbsder-api (Cour-de-cassation/dbsder-api#127) to calculate route from metadata

Describe your changes :

Call endpoint for juritj and jurica
Logic will be adapted when we decide what are the other criterias to calculate route

How to test :

enable dbsder-api and import documents

Checklist before requesting a review

  • I have performed a self-review of my code.
  • The feature works locally.
  • If it's relevant I added tests.
  • Will this be part of a product update? If yes, please write one phrase about this update.

Les circuits de relectures peuvent maintenant être mis a jour de manière dynamique via la table des code nac et code décision.

codeDecision,
source,
},
})) as unknown) as Promise<documentType['route'] | undefined>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Est-ce possible de typer ce que le promise doit retourner comme type

@Bouba-cassation
Copy link
Collaborator

J'ai testé le flux entre label et api-dbsder, et ca a le bon comportement, la route est récupérée depuis la table codeDecisions

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.

2 participants