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

Phone country fix #9167

Merged
merged 35 commits into from
Dec 20, 2024
Merged

Phone country fix #9167

merged 35 commits into from
Dec 20, 2024

Conversation

guillim
Copy link
Contributor

@guillim guillim commented Dec 20, 2024

No description provided.

@guillim guillim marked this pull request as ready for review December 20, 2024 13:55
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR enhances the phone calling code migration process by improving command execution order and logging behavior in the database upgrade commands.

  • Reordered commands in /packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts to execute phone-related operations before record position backfilling
  • Added verbose logging control in /packages/twenty-server/src/database/commands/logger.ts with new isCommandLogger type guard
  • Improved error handling in phone migration commands by replacing console.log with proper logger usage
  • Added validation check for primaryPhoneCallingCode before updating field metadata to prevent duplicate updates

4 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

@Weiko Weiko merged commit 928c99a into main Dec 20, 2024
22 checks passed
@Weiko Weiko deleted the phone-country-fix branch December 20, 2024 14:28
Copy link

Thanks @guillim for your contribution!
This marks your 26th PR on the repo. You're top 2% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

samyakpiya pushed a commit to samyakpiya/twenty that referenced this pull request Dec 28, 2024
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.

2 participants