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

Add use cases/label for Liens Capitalistiques #1818

Merged
merged 6 commits into from
Mar 13, 2025

Conversation

skelz0r
Copy link
Member

@skelz0r skelz0r commented Mar 5, 2025

@skelz0r skelz0r marked this pull request as ready for review March 5, 2025 10:09
@skelz0r skelz0r force-pushed the label/liens-capitalistiques branch from eba4a48 to 2c9c356 Compare March 5, 2025 10:25
@skelz0r skelz0r changed the title Add liens capitalistiques DGFIP label Add use cases/label for Liens Capitalistiques Mar 5, 2025
@skelz0r skelz0r requested review from Copilot, DorineLam and Un3x March 5, 2025 10:31

Choose a reason for hiding this comment

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

PR Overview

This PR introduces a new use case/label for "Liens Capitalistiques" to support issues API-4337 and API-4340.

  • Updates the French locale files with new entries for "dgfip/liens_capitalistiques" and its corresponding label.
  • Adjusts the view templates to conditionally render use cases and optional use cases based on their presence.

Reviewed Changes

File Description
config/locales/api_entreprise/cas_usages_entries.fr.yml Added new "dgfip/liens_capitalistiques" entries to the list of use cases.
config/locales/api_entreprise/fr.yml Added a new label "DGFIP
app/views/api_particulier/endpoints/_use_cases.html.erb Updated conditional rendering to check for non-empty use cases using .any?.
app/views/api_entreprise/endpoints/_use_cases.html.erb Expanded conditional logic to handle both use_cases and use_cases_optional.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

@skelz0r
Copy link
Member Author

skelz0r commented Mar 5, 2025

Commits pour dorine 9cee988 et 2c9c356 (ref: https://mattermost.incubateur.net/betagouv/pl/9i7im4qme7gidkkmpyhbte3r6h )

Commits pour Thomas: les 2 autres (purement technique)

@skelz0r
Copy link
Member Author

skelz0r commented Mar 5, 2025

Le label est related etalab/data_pass#719

@skelz0r skelz0r requested a review from Charlottecho March 5, 2025 10:32
Copy link
Contributor

@DorineLam DorineLam left a comment

Choose a reason for hiding this comment

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

⚠️ Avant de valider il me faut les éléments suivants :

Cas d'usage commande publique :

  • Est-ce utile lors de la phase d'instruction ? Pourquoi ? Référence législative au code de CP ?

  • Est-ce utile pour le suivi prestataires ? Si oui, ref législative

Aides publiques :

(je suppose que c'est que pour de l'instruction et pas du pré-remplissage) quel utilité ?

Subventions asso | Portail GRU (les deux cas d'usages) :

l'API n'est pas indiquée comme injustifiée => Je suppose ici qu'il faut mettre une croix rouge comme pour les liasses ?


J'ai pas voulu bloquer donc j'ai mis un comment mais pour moi cette PR est rouge d'un point de vue métier

@skelz0r
Copy link
Member Author

skelz0r commented Mar 5, 2025

@Charlottecho --^

@DorineLam DorineLam force-pushed the label/liens-capitalistiques branch from 2c9c356 to 8d5b1ad Compare March 12, 2025 13:48
@skelz0r skelz0r merged commit afaf793 into develop Mar 13, 2025
9 checks passed
@skelz0r skelz0r deleted the label/liens-capitalistiques branch March 13, 2025 09:14
@DorineLam
Copy link
Contributor

J'ai rouvert une PR car je n'avais pas fini : #1826

@skelz0r
Copy link
Member Author

skelz0r commented Mar 14, 2025

AH, j'ai pas cherché en voyant que c'était validé

@DorineLam
Copy link
Contributor

pas de problème

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.

4 participants