opnform-host-nginx/api/tests/Feature/Forms
Chirag Chhatrala a11fb01bef
ESC-590 - Fix UUID and Auto Increment ID Generation Logic in StoreFormSubmissio… (#774)
* Fix UUID and Auto Increment ID Generation Logic in StoreFormSubmissionJob

- Updated the conditions for generating UUID and auto-increment IDs in the `StoreFormSubmissionJob` to ensure they only trigger when the answer value is not provided. This change enhances the logic for handling form submissions, particularly for users with non-pro subscriptions, by preventing unnecessary ID generation when an answer is already present.

These modifications aim to improve the accuracy of form submissions and ensure proper handling of ID generation based on user subscription status.

* Enhance ID Generation Logic in StoreFormSubmissionJob

- Updated conditions for UUID and auto-increment ID generation in `StoreFormSubmissionJob` to ensure they only trigger when the answer value is either not provided or invalid. This change improves the accuracy of ID generation based on user subscription status, preventing unnecessary ID creation when valid input is present.

These modifications aim to enhance the reliability of form submissions and ensure proper handling of ID generation features.

* Test  case
2025-06-05 16:58:24 +02:00
..
AnswerFormTest.php Refactor FormSubmissionDataFactory to use TestHelpers trait 2025-03-04 13:38:33 +08:00
CleanDatabaseTest.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
CreateDynamicSelectOptionTest.php Refactor FormSubmissionDataFactory to use TestHelpers trait 2025-03-04 13:38:33 +08:00
CustomSmtpTest.php Refactor FormSubmissionDataFactory to use TestHelpers trait 2025-03-04 13:38:33 +08:00
EmailNotificationTest.php Refactor FormSubmissionDataFactory to use TestHelpers trait 2025-03-04 13:38:33 +08:00
FormCaptchaTest.php Add reCAPTCHA support and update captcha provider handling (#647) 2024-12-18 16:35:09 +01:00
FormIntegrationEventTest.php Apply Mentions everywhere (#595) 2024-10-22 10:34:29 +02:00
FormIntegrationTest.php ESC-575 If operator has no format and no expected_type, it means it doesn't n… (#767) 2025-05-28 10:05:24 +02:00
FormLogicTest.php Add 'exists_in_submissions' and 'does_not_exist_in_submissions' valid… (#725) 2025-03-25 11:50:59 +01:00
FormPasswordTest.php Refactor FormSubmissionDataFactory to use TestHelpers trait 2025-03-04 13:38:33 +08:00
FormPaymentTest.php Refactor form rendering (#747) 2025-05-07 17:15:56 +02:00
FormPropertyLogicTest.php Improve form property logic validation for checkbox conditions 2025-02-19 15:11:27 +01:00
FormStatTest.php Fix tests 2024-09-30 16:47:10 +02:00
FormSubmissionExportTest.php Refactor FormSubmissionDataFactory to use TestHelpers trait 2025-03-04 13:38:33 +08:00
FormSubmissionProcessorTest.php Fix redirect URL mentions (#707) 2025-02-24 16:11:30 +08:00
FormTest.php Slug customisation (#755) 2025-05-19 21:06:54 +02:00
FormUpdateTest.php ESC-590 - Fix UUID and Auto Increment ID Generation Logic in StoreFormSubmissio… (#774) 2025-06-05 16:58:24 +02:00
FormViewsTest.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
HideBrandingOnUpgradeTest.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
MatrixInputTest.php Refactor FormSubmissionDataFactory to use TestHelpers trait 2025-03-04 13:38:33 +08:00
RedirectUrlLengthTest.php Enhance redirect URL handling and MentionParser functionality (#639) 2024-12-10 12:26:01 +01:00
UpdateWorkspaceSelectOptionJobTest.php Refactor FormSubmissionDataFactory to use TestHelpers trait 2025-03-04 13:38:33 +08:00