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

chore(API Entreprise): Mise à jour des appels pour fonctionner sur la v3 de l'api #1599

Open
wants to merge 1,494 commits into
base: master
Choose a base branch
from

Conversation

SebastienReuiller
Copy link
Contributor

Quoi ?

Mise à jour des appels à l'API Entreprise pour utiliser la version 3: https://entreprise.api.gouv.fr/developpeurs/openapi

Information pour appeler l'environnement de staging : https://entreprise.api.gouv.fr/developpeurs#kit-de-mise-en-production

Pourquoi ?

Parce que la version 2 de l'API n'est plus disponible et les appels ne sont donc plus compatible.

Comment ?

En adaptant la gestion des réponses aux appels "Entreprise", "Établissement" et "Exercice".
Mais aussi:

  • utilisation de dataclass
  • réactivation des logs
  • ajout de tests
  • mise en place du monitoring de cron avec sentry

Autre

Pour la mise en prod, il faudra récupérer un token de production et tester la management command à la main.

madjid-asa and others added 30 commits February 14, 2024 19:41
* first try

* improve css of tooltip

* remove hard link 'a' for siae card

* update click mode for search

* include inside tooltip

* update fixtures

* fix inner size
rename constraints tender field (#1080)
* tender list ux redesign

* fix forgot ux change

* create badge new instead hijack communaute badge
* ci: add release-please github action

* Fix branch name

* simplify config. fix token
…#1089)

* Tender admin: collapse 3 sections to reduce space

* Move marche_benefits to Stats section

* Hide 2 siae stats
…es données des siaes (#1093)

* fix(dashboard_siae) : fix du bug d'affichage des tabs pour compléter les données des siaes

* fix edge case of external link
…de besoins dans l'admin (#1091)

* admin - reduce data in tender list

* move amount admin display on model
…ncrémentaux (#1090)

* add filter in the admin for incremental tenders

* add tests

* fix mistake

* improve Admin filter

* improve filtering by amount

* update order of filter

* clean from review
* Use get_object_admin_url in Tender & Siae

* Rename get_share_url_object to get_object_share_url
* Setup cron & command

* Add Tender task send_tenders_siaes_survey

* Additional fixes (filter on tender without transaction info)
…B clôturés (#1088)

remove new badge on outdated tender
* Siae: add new field extra_data

* Add to admin

Release-As: 2024.2.0
…lidation des DDB (#1111)

* add id html to Django admin template

* redirect to structures after save

* add comment to explain
@madjid-asa madjid-asa force-pushed the sreuiller/upgrade-api-entreprise branch from 43c9ba6 to 4b0a16d Compare February 4, 2025 21:25
Copy link

gitguardian bot commented Feb 4, 2025

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
13853755 Triggered Generic High Entropy Secret 412e041 config/settings/base.py View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

lemarche/static/js/favorite_item.js Dismissed Show dismissed Hide dismissed
lemarche/siaes/management/commands/import_esat_from_asp.py Dismissed Show dismissed Hide dismissed
lemarche/siaes/management/commands/import_esat_from_asp.py Dismissed Show dismissed Hide dismissed
lemarche/siaes/management/commands/import_esat_from_csv.py Dismissed Show dismissed Hide dismissed
lemarche/siaes/management/commands/import_esat_gesat.py Dismissed Show dismissed Hide dismissed
lemarche/siaes/management/commands/import_esat_handeco.py Dismissed Show dismissed Hide dismissed
lemarche/siaes/management/commands/import_sep.py Dismissed Show dismissed Hide dismissed
lemarche/www/auth/views.py Dismissed Show dismissed Hide dismissed
lemarche/www/siaes/views.py Dismissed Show dismissed Hide dismissed
lemarche/www/siaes/views.py Dismissed Show dismissed Hide dismissed
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.

5 participants