-
Notifications
You must be signed in to change notification settings - Fork 13
test(filtered-search): remove irrelevant test #1178
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
Conversation
WalkthroughA test case was removed from the Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1303528 to
7e81554
Compare
|
Documentation. Coverage Reports: |
chintankavathia
left a comment
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.
👍
|
@akashsonune somewhere in the actual code, there must also be a check for empty options. I guess you can remove this now. But I don't know where exactly. |
7e81554 to
d0e39c7
Compare
@spike-rabbit I guess you mean these changes that I just pushed? |
|
I think just the |
In that case , we dont see the value field populated in the output event when the value is empty, as the above code ultimately assigns |
projects/element-ng/filtered-search/values/typeahead/si-filtered-search-typeahead.component.ts
Show resolved
Hide resolved
cdac930 to
5fe0674
Compare
|
@akashsonune please squas into the recatoring commit, then everything is g2g |
@spike-rabbit What I meant, like in this example, the output |
spike-rabbit
left a comment
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.
👍
We already have an issue for those kind of empty values. The plan is support them in the future.
5fe0674 to
af09192
Compare
BREAKING CHANGE: Empty `value` fields of criterion options are no longer replaced with the value from the `label`. Always provide a correct `value`.
af09192 to
58f9ba4
Compare
Removes a test case titled "should emit criterion with value = label from config" from the filtered-search component spec file. The removed test verified that when selecting a country option with a value-label pair (e.g.,
{ label: 'Switzerland' }without an explicitvalueproperty), the emitted criterion would use the label as the value. The test was marked as non-sense in TODO comments, noting that the interface does not allow empty values for options and was scheduled for removal in version 47.