Skip to content

Fixing conversation filtering#642

Merged
momuno merged 2 commits intomicrosoft:mainfrom
teresaqhoang:tehoang/chat-filtering-fix
Nov 21, 2023
Merged

Fixing conversation filtering#642
momuno merged 2 commits intomicrosoft:mainfrom
teresaqhoang:tehoang/chat-filtering-fix

Conversation

@teresaqhoang
Copy link
Contributor

@teresaqhoang teresaqhoang commented Nov 21, 2023

Motivation and Context

This PR removes part of the isFiltering conversations view state, including an unnecessary filteredConversations field, since @TaoChenOSU's filters and sorts the conversations into the expected Latest and Older conversations lists.

Also, fixes a bug so the filter is applied to the client view name, rather than the actual saved name on the object since this is what our end user sees and would expect the search text to check against.

Contribution Checklist

@github-actions github-actions bot added the webapp Pull requests that update Typescript code label Nov 21, 2023
@teresaqhoang teresaqhoang marked this pull request as ready for review November 21, 2023 01:53
@teresaqhoang teresaqhoang linked an issue Nov 21, 2023 that may be closed by this pull request
@teresaqhoang
Copy link
Contributor Author

@threegitty350 take a look at this and see if it helps with the issue you're seeing

@momuno
Copy link
Member

momuno commented Nov 21, 2023

I tested this locally and filtering works now.

@momuno momuno added this pull request to the merge queue Nov 21, 2023
Merged via the queue into microsoft:main with commit 75a06d0 Nov 21, 2023
@teresaqhoang teresaqhoang deleted the tehoang/chat-filtering-fix branch November 21, 2023 19:39
teamleader-dev pushed a commit to vlink-group/chat-copilot that referenced this pull request Oct 7, 2024
### Motivation and Context

<!-- Thank you for your contribution to the chat-copilot repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

This PR removes part of the isFiltering conversations view state,
including an unnecessary filteredConversations field, since
@TaoChenOSU's filters and sorts the conversations into the expected
Latest and Older conversations lists.

Also, fixes a bug so the filter is applied to the client view name,
rather than the actual saved name on the object since this is what our
end user sees and would expect the search text to check against.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
kb0039 pushed a commit to aaronba/chat-copilot that referenced this pull request Jan 8, 2025
### Motivation and Context

<!-- Thank you for your contribution to the chat-copilot repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

This PR removes part of the isFiltering conversations view state,
including an unnecessary filteredConversations field, since
@TaoChenOSU's filters and sorts the conversations into the expected
Latest and Older conversations lists.

Also, fixes a bug so the filter is applied to the client view name,
rather than the actual saved name on the object since this is what our
end user sees and would expect the search text to check against.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

webapp Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search filter does not work "Filter by name"

2 participants