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-33625)[API] fix: Don’t create offerer address every time we patch… #16055

Conversation

dramelet-pass
Copy link
Contributor

@dramelet-pass dramelet-pass commented Jan 28, 2025

… the venue

But de la pull request

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

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

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

https://pc-pro-testing--pr16055-dramelet-pc-33625-do-lnoenlhv.web.app

(expires Fri, 31 Jan 2025 19:48:13 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 032d233ee67e1c50d6af12e29c936c7076770eb1

@dramelet-pass dramelet-pass force-pushed the dramelet/PC-33625-dont-create-oa-when-location-dont-change branch 5 times, most recently from a4d6fc4 to b01946f Compare January 29, 2025 10:07
@dramelet-pass dramelet-pass force-pushed the dramelet/PC-33625-dont-create-oa-when-location-dont-change branch from b01946f to ab402e5 Compare January 29, 2025 10:40
@dramelet-pass dramelet-pass force-pushed the dramelet/PC-33625-dont-create-oa-when-location-dont-change branch from ab402e5 to ae1b5e6 Compare January 29, 2025 12:40
@@ -37,10 +37,17 @@ def fullAddress(self) -> str:
return f"{self.street} {self.postalCode} {self.city}" if self.street else f"{self.postalCode} {self.city}"

def field_exists_and_has_changed(self, field: str, value: typing.Any) -> typing.Any:
if field in ("latitude", "longitude"):
# Rounding to five digits to keep consistency with the columns definitions
# We don’t want to consider coordinates has changed is actually the rounded value is the same
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# We don’t want to consider coordinates has changed is actually the rounded value is the same
# We don’t want to consider coordinates has changed if the rounded value is the same

Mini typo =)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

corrigé !

Copy link
Contributor

@lmaubert-pass lmaubert-pass left a comment

Choose a reason for hiding this comment

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

C'est bon pour moi =)

@dramelet-pass dramelet-pass force-pushed the dramelet/PC-33625-dont-create-oa-when-location-dont-change branch from ae1b5e6 to 5cbd6a5 Compare January 29, 2025 13:06
@dramelet-pass dramelet-pass force-pushed the dramelet/PC-33625-dont-create-oa-when-location-dont-change branch 2 times, most recently from 9015702 to 81230c4 Compare February 10, 2025 14:35
@dramelet-pass dramelet-pass force-pushed the dramelet/PC-33625-dont-create-oa-when-location-dont-change branch from 81230c4 to ac46f61 Compare February 10, 2025 14:37
@dramelet-pass dramelet-pass merged commit e1a32c7 into master Feb 10, 2025
30 of 36 checks passed
@dramelet-pass dramelet-pass deleted the dramelet/PC-33625-dont-create-oa-when-location-dont-change branch February 10, 2025 14:55
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