Skip to content

Fix phone deletion #12821

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

Merged
merged 3 commits into from
Jun 24, 2025
Merged

Fix phone deletion #12821

merged 3 commits into from
Jun 24, 2025

Conversation

ijreilly
Copy link
Collaborator

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

Enhanced phone number validation in the server's record transformer by adding empty string checks.

  • Added isNonEmptyString validation in transform-phones-value.util.ts to prevent processing of empty phone numbers [1553f120-8908-4962-bc22-796896959d06]
  • Re-organized imports for better code readability

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

@prastoin prastoin left a comment

Choose a reason for hiding this comment

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

LGTM ! Would be awesome to add a sucessfull test case to the create-one-field-metadata-phone.integration-spec.ts test suite
Still approving

Copy link
Contributor

github-actions bot commented Jun 24, 2025

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:10159

This environment will automatically shut down when the PR is closed or after 5 hours.

Copy link
Contributor

@prastoin prastoin left a comment

Choose a reason for hiding this comment

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

Great !

@@ -306,7 +323,7 @@ const FAILING_TEST_CASES: EachTestingContext<CreatePhoneFieldMetadataTestCase>[]
describe('Phone field metadata tests suite', () => {
let createdObjectMetadataId: string;

beforeEach(async () => {
beforeAll(async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Praise: Nice catch !

@ijreilly ijreilly enabled auto-merge (squash) June 24, 2025 13:01
@ijreilly ijreilly merged commit 540f3ff into main Jun 24, 2025
42 checks passed
@ijreilly ijreilly deleted the fix-phone-deletion branch June 24, 2025 13:12
abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 26, 2025
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.

"Provided phone number is invalid" when trying to remove a phone number
2 participants