Skip to content

feat: Add normalization for invalid multiselect values in Validable model#405

Open
arsen-vs wants to merge 2 commits into
developfrom
bugfix/319150-Select-multiple-fields-error-after-validation
Open

feat: Add normalization for invalid multiselect values in Validable model#405
arsen-vs wants to merge 2 commits into
developfrom
bugfix/319150-Select-multiple-fields-error-after-validation

Conversation

@arsen-vs
Copy link
Copy Markdown
Contributor

@arsen-vs arsen-vs commented Jun 5, 2026

  • Implemented a static method to normalize invalid values for fields that allow multiple selections.
  • Updated the validate_with_checker method to utilize the new normalization method, ensuring invalid multiselect values are preserved as lists.
  • Added a test to verify that invalid multiselect values are correctly handled and stored as lists.

AB#319150

…odel

* Implemented a static method to normalize invalid values for fields that allow multiple selections.
* Updated the validate_with_checker method to utilize the new normalization method, ensuring invalid multiselect values are preserved as lists.
* Added a test to verify that invalid multiselect values are correctly handled and stored as lists.
@arsen-vs arsen-vs marked this pull request as draft June 5, 2026 07:56
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.94%. Comparing base (3bd0ad1) to head (17c4b59).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #405   +/-   ##
========================================
  Coverage    96.93%   96.94%           
========================================
  Files          237      237           
  Lines         9798     9810   +12     
  Branches      1092     1096    +4     
========================================
+ Hits          9498     9510   +12     
  Misses         143      143           
  Partials       157      157           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…ct values

* Introduced multiple test cases to validate the normalization of invalid values for fields that allow multiple selections.
* Tests cover various input types including None, lists, tuples, sets, and scalars to ensure consistent behavior across different scenarios.
@arsen-vs arsen-vs marked this pull request as ready for review June 5, 2026 08:45
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.

3 participants