This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* refactor: LEAP-447: Refactor validation method across control tags Improved the validation logic in ClassificationBase.js, DateTime.js, and PerRegion.js. Provided distinct validation scenarios for classifications, including per region and per object, and streamlined the date validation in DateTime.js for better precision and simplicity. * fix: LEAP-447: Improve Number tag validation The Number model was modified to improve validation logic. 'validateValue' function was added to cover more number validation cases such as minimum, maximum, and step checks. Furthermore, some parameter descriptions were adjusted for better clarity, namely the 'required' parameter definition. * Improve validation method of Required mixin Makes it be able to work in chain with other validations * Add validation for per-item tags A new feature flag controlled code block was introduced to enable the validation of per-item tags as part of the Classification Base and Per Item Mixin. If the feature flag FF_LSDV_4583 is active and self.peritem is true, the new `_validatePerItem` method is used to validate each region result. * Update ls-test dependency in functional tests * Add functional tests for number control tag This commit introduces functional tests for various configurations of the number control tag. It covers setting and loading of values, validation against min/max and steps, perRegion and perItem validation, and proper error display for each case. * Fix linting issues * Fix the accidental deletion of a line of code * Refactor with simplifying Co-authored-by: yyassi-heartex <[email protected]> * Fix linting problems and texts * Update @heartexlabs/ls-test version Signed-off-by: Sergey <[email protected]> * Add comments about new methods and tricky changes Signed-off-by: Sergey <[email protected]> * Make validation tests more intuitive Signed-off-by: Sergey <[email protected]> * Remove unused import in number.cy Signed-off-by: Sergey <[email protected]> * Fix comments for validation methods Signed-off-by: Sergey <[email protected]> * Update @heartexlabs/ls-test package version Signed-off-by: Sergey <[email protected]> --------- Signed-off-by: Sergey <[email protected]> Co-authored-by: yyassi-heartex <[email protected]>
- Loading branch information
1 parent
91c7b33
commit 524aa7d
Showing
10 changed files
with
503 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.