Skip to content

Conversation

@gaspard-lonchampt
Copy link
Contributor

@tristanrobert
Copy link
Contributor

tristanrobert commented Dec 17, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@sonarqubecloud
Copy link

if existing_deal.get(key) != value:
changed_attributes[key] = value

if stage_changed or changed_attributes:
Copy link
Contributor

Choose a reason for hiding this comment

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

🟠 si stage_changed est false il faudrait peut être vérifier que changed_attributes n'est pas vide

Comment on lines +314 to +317
for company_key, brevo_key in field_mappings.items():
value = company.get(company_key)
if value is not None:
attributes[brevo_key] = value
Copy link
Contributor

Choose a reason for hiding this comment

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

🟢 on à pas besoin du cas où on veut vider un champ et donc où value serait None volontairement ?

Comment on lines +362 to +364

if stage_changed:
result.updated_deals += 1
Copy link
Contributor

Choose a reason for hiding this comment

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

🟠 on veut pas considérer le deal comme updated si les attributs changent mais pas le stage ?

Comment on lines +349 to +351
for key, value in attributes.items():
if existing_deal.get(key) != value:
changed_attributes[key] = value
Copy link
Contributor

Choose a reason for hiding this comment

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

🟠 je me demande si on peut avoir des valeurs similaire lors de la comparaison mais avec des types différents ? ce qui ferais un update non nécessaire, par exemple si 0 vs None ou 1 vs "1"

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