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

(PC-34341)[BO] fix: avoid crash at collective offer validation when ADAGE notification timeouts #16113

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

prouzet-pass
Copy link
Contributor

But de la pull request

Ticket Jira : https://passculture.atlassian.net/browse/PC-34341

Vérifications

  • J'ai écrit les tests nécessaires
  • J'ai mis à jour le fichier des plans de tests du portail pro si nécessaire
  • J'ai mis à jour la liste des routes et des titres de pages du portail pro si j'en ai rajouté/modifié ou supprimé une.
  • J'ai relu attentivement les migrations, en particulier pour éviter les locks, et je préviens les équipes Shérif et Data
  • J'ai ajouté des screenshots pour d'éventuels changements graphiques
  • J'ai fait la revue fonctionnelle de mon ticket

Copy link
Contributor

github-actions bot commented Jan 30, 2025

Visit the preview URL for this PR (updated for commit 3fb6567):

https://pc-pro-testing--pr16113-pc-34341-bo-validate-9vwonapx.web.app

(expires Sun, 02 Feb 2025 09:25:19 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 032d233ee67e1c50d6af12e29c936c7076770eb1

assert endpoint.called

db.session.refresh(collective_offer)
assert collective_offer.isActive is True
Copy link
Contributor

Choose a reason for hiding this comment

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

Ici on voudrait plutôt False justement non i.e ne pas avoir validé l'offre ?

Et en fait.. ces tests ne fonctionnent pas vraiment, je suis déjà tombé dessus -> on a un mark_transaction_as_invalid dans un sous-bloc atomic, et dans les tests ça ne rollback pas correctement

Copy link
Contributor Author

Choose a reason for hiding this comment

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

idem réponse au-dessus

@prouzet-pass prouzet-pass force-pushed the pc-34341-bo-validate-offers-adage-timeout branch from 92789ad to 3fb6567 Compare January 31, 2025 09:23
@prouzet-pass prouzet-pass merged commit 375e825 into master Jan 31, 2025
26 of 28 checks passed
@prouzet-pass prouzet-pass deleted the pc-34341-bo-validate-offers-adage-timeout branch January 31, 2025 09:47
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.

3 participants