Skip to content
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(validation): evaluation of tagged rules from bindings #1878

Merged
merged 4 commits into from
Jan 18, 2024

Conversation

Sayan751
Copy link
Member

@Sayan751 Sayan751 commented Jan 16, 2024

Pull Request

📖 Description

This PR fixes the issue where a validate instruction with tags is used to validate the bindings. So far, such tags are ignored while collecting the rules from all the bindings. That results in validating all the bindings, irrespective of the tags provided with the instruction. This PR fixes that issue.

🎫 Issues

👩‍💻 Reviewer Notes

📑 Test Plan

⏭ Next Steps

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e21e0c9) 88.78% compared to head (dab740a) 88.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1878      +/-   ##
==========================================
- Coverage   88.78%   88.78%   -0.01%     
==========================================
  Files         247      247              
  Lines       22307    22306       -1     
  Branches     5192     5191       -1     
==========================================
- Hits        19805    19804       -1     
  Misses       2502     2502              

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

@Sayan751 Sayan751 requested a review from bigopon January 16, 2024 15:38
@Sayan751 Sayan751 marked this pull request as ready for review January 16, 2024 15:38
packages/validation/src/validator.ts Outdated Show resolved Hide resolved
@Sayan751 Sayan751 force-pushed the topic/validation-tag branch from 0bb838f to ae6a644 Compare January 18, 2024 19:22
@Sayan751 Sayan751 merged commit 43d12f6 into master Jan 18, 2024
26 checks passed
@Sayan751 Sayan751 deleted the topic/validation-tag branch January 18, 2024 19:50
AureliaEffect pushed a commit that referenced this pull request Jan 26, 2024
2.0.0-beta.10 (2024-01-26)

**BREAKING CHANGE:**

* **enums:** string literal types replace const enums (#1870) ([e21e0c9](e21e0c9))

**Features:**

* **route-recognizer:** support for route parameter constraints (#1862) ([8f29cfd](8f29cfd))

**Bug Fixes:**

* **docs:** various doc fix
* **au-slot:** properly handle nested projection registration (#1881) ([00e8dee](00e8dee))
* **kernel:** stack preserving error logging for console (#1884) ([030bfa1](030bfa1))
* **portal:** remove target marker when deactivated (#1883) ([3db4c17](3db4c17))
* **validation:** evaluation of tagged rules from bindings (#1878) ([43d12f6](43d12f6))
* **validation:** property parsing with lambda and istanbul (#1877) ([71f82cf](71f82cf))
* **router:** store root/default page instruction correctly (#1869) ([84e6380](84e6380))
* **runtime-html:** template wrapping  (#1875) ([bfdaa3b](bfdaa3b))
* **i18n:** handle change of key in t.bind (#1868) ([c185764](c185764))
* **router-lite:** Router injection and ignoring null/undefined values for query parameters (#1859) ([6a79bc9](6a79bc9))
* **router-lite:** injection of Router alias ([6a79bc9](6a79bc9))
* **runtime-html:** fix broken tests ([bfdaa3b](bfdaa3b))
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.

2 participants