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

[CIS-929] UserSearch with given Query #1206

Merged
merged 3 commits into from Jul 2, 2021
Merged

[CIS-929] UserSearch with given Query #1206

merged 3 commits into from Jul 2, 2021

Conversation

b-onc
Copy link
Contributor

@b-onc b-onc commented Jun 22, 2021

With this PR, customizing mentions to work with multi-tenancy is possible. This also opens possibility of using UserSearchController is a variety of custom manners

@b-onc b-onc requested a review from VojtaStavik June 22, 2021 12:24
@b-onc b-onc changed the title [CIS-929] UserSearch with give Query [CIS-929] UserSearch with given Query Jun 22, 2021
@codecov-commenter
Copy link

codecov-commenter commented Jun 22, 2021

Codecov Report

Merging #1206 (aee3790) into main (96b7062) will decrease coverage by 0.00%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1206      +/-   ##
==========================================
- Coverage   91.25%   91.25%   -0.01%     
==========================================
  Files         217      217              
  Lines        9277     9292      +15     
==========================================
+ Hits         8466     8479      +13     
- Misses        811      813       +2     
Flag Coverage Δ
llc-tests 91.25% <80.00%> (-0.01%) ⬇️
llc-tests-ios12 91.25% <80.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Sources/StreamChat/Query/Filter.swift 80.64% <25.00%> (-0.82%) ⬇️
...llers/SearchControllers/UserSearchController.swift 96.52% <100.00%> (+0.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96b7062...aee3790. Read the comment docs.

Copy link
Member

@nuno-vieira nuno-vieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅ Great work 👍

Comment on lines 208 to 210
print("### search with query :\(query)")
userQueryUpdater.update(userListQuery: query, policy: .replace) { error in
print("### search complete")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ I think you forgot to remove these prints?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely 😓

b-onc added 3 commits July 2, 2021 12:21
So it's possible to make custom searches and usable with multi-tenancy
With this change, users can customize the suggestions search query, most apparent example is multi-tenancy (it doesn't work as of now)
@b-onc b-onc force-pushed the cis-929-usersearch-query branch from aee3790 to 970ebc1 Compare July 2, 2021 10:22
@b-onc b-onc merged commit 24453b3 into main Jul 2, 2021
@b-onc b-onc deleted the cis-929-usersearch-query branch July 2, 2021 11:14
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.

None yet

3 participants