-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix phone deletion #12821
Conversation
There was a problem hiding this 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 intransform-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
...wenty-server/src/engine/core-modules/record-transformer/utils/transform-phones-value.util.ts
Show resolved
Hide resolved
There was a problem hiding this 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
🚀 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -306,7 +323,7 @@ const FAILING_TEST_CASES: EachTestingContext<CreatePhoneFieldMetadataTestCase>[] | |||
describe('Phone field metadata tests suite', () => { | |||
let createdObjectMetadataId: string; | |||
|
|||
beforeEach(async () => { | |||
beforeAll(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Praise: Nice catch !
Fixes twentyhq/core-team-issues#1124