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-34203)[API] fix: enforce chronicle unicity even if typeform sends… #16011

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

rpaoloni-pass
Copy link
Contributor

… it twice

But de la pull request

Ticket Jira (ou description si BSR) : https://passculture.atlassian.net/browse/PC-34203

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 24, 2025

Visit the preview URL for this PR (updated for commit 1128f17):

https://pc-pro-testing--pr16011-pc-34203-rpa-chronic-bxc40gfm.web.app

(expires Thu, 30 Jan 2025 14:01:25 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 032d233ee67e1c50d6af12e29c936c7076770eb1

Copy link
Contributor

@prouzet-pass prouzet-pass left a comment

Choose a reason for hiding this comment

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

Revue fonctionnelle en environnement de développement : je n'ai testé que la migration après répartition des chroniques de la sandbox sur 4 formId différents => OK 🟢

FROM
chronicle
WHERE
"formId"=c."formId"
Copy link
Contributor

Choose a reason for hiding this comment

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

Question/suggestion : serait-il pertinent, logique, de garder explicitement le premier créé ?

Suggested change
"formId"=c."formId"
"formId"=c."formId"
ORDER BY id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

en vrai on s'en fiche un peu, ils sont tous identiques, mais ça coûte pas grand chose de le faire

@rpaoloni-pass rpaoloni-pass force-pushed the pc-34203-rpa-chronicle_unicity branch from cd4fb9f to 1128f17 Compare January 28, 2025 13:58
@rpaoloni-pass rpaoloni-pass merged commit d68e37b into master Jan 28, 2025
27 of 28 checks passed
@rpaoloni-pass rpaoloni-pass deleted the pc-34203-rpa-chronicle_unicity branch January 28, 2025 14:17
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