-
-
Notifications
You must be signed in to change notification settings - Fork 457
Improve and fix query result update logic issue & provide access to exact query typed by user #3502
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
Merged
+194
−159
Merged
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
34c3cda
Improve update logic
Jack251970 381334f
Improve variable names
Jack251970 1381748
Merge branch 'dev' into improve_update
Jack251970 a2a4b5a
Merge branch 'dev' into improve_update
Jack251970 77b8749
Revert error change
Jack251970 07bcd5d
Merge branch 'dev' into improve_update
Jack251970 cf3fc6a
Fix build issue & Adjust indent
Jack251970 51714d5
Add Input for home query
Jack251970 ece9b96
Merge branch 'dev' into improve_update
Jack251970 8c48cbe
Use currentCancellationToken instead
Jack251970 4c5b5fb
Improve code quality
Jack251970 f599359
Improve code quality
Jack251970 16dc921
Merge branch 'dev' into improve_update
Jack251970 8450e68
Remove async
Jack251970 a47d8fe
Merge branch 'dev' into improve_update
Jack251970 bde7463
Fix build issue
Jack251970 23a2f88
Merge branch 'dev' into improve_update
Jack251970 8670461
Merge branch 'dev' into improve_update
Jack251970 7c12956
Clear results when there are no update tasks
Jack251970 a1df6a1
Merge branch 'dev' into improve_update
Jack251970 3bf6008
Update code comments
Jack251970 3786130
Merge branch 'dev' into improve_update
Jack251970 84e0193
Merge branch 'dev' into improve_update
Jack251970 2229db0
Merge branch 'dev' into improve_update
Jack251970 9136b19
Merge branch 'dev' into improve_update
Jack251970 81429d7
Merge branch 'dev' into improve_update
Jack251970 27ea2e4
Improve code quality
Jack251970 1c0c9e7
Await cancel async
Jack251970 5493e5c
Fix null exception
Jack251970 a545a40
Merge branch 'dev' into improve_update
Jack251970 e23c8d8
Merge branch 'dev' into improve_update
Jack251970 d0b0107
Merge branch 'dev' into improve_update
Jack251970 b6734b9
Fix race: pass the method parameter as Input, not the mutable property.
Jack251970 41cc4cd
Merge branch 'dev' into improve_update
Jack251970 6e38c3f
Merge branch 'dev' into improve_update
Jack251970 f49a86a
Use Input to check equality & Revert part of logic
Jack251970 e01109d
Merge branch 'dev' into improve_update
Jack251970 61ee542
Revert CancelAsync to Cancel
Jack251970 5f10e02
No need to set progressQuery
Jack251970 741fecd
Update code comments
Jack251970 6edb742
Do not check if the input text matches the query text
Jack251970 c2935a4
Revert change for logging
Jack251970 51be8d0
Merge branch 'dev' into improve_update
Jack251970 a4057cf
Standardize "work around" to "workaround" in comments
Jack251970 c3ad0b8
Merge branch 'dev' into improve_update
Jack251970 ae76b53
Resolve conflicts
Jack251970 3ef5238
Merge branch 'dev' into improve_update
Jack251970 6aca878
Merge branch 'dev' into improve_update
jjw24 32266c8
fix typo
jjw24 3ebf80d
deprecate RawQuery add OriginalQuery (#4126)
jjw24 31c88bf
fix typo
jjw24 21b2756
fixed typos
jjw24 6076ac0
Refactor QueryBuilder and deprecate RawQuery property
Jack251970 23ffe9b
Refactor to use TrimmedQuery instead of RawQuery
Jack251970 c22b4c3
Refactor: Replace RawQuery with TrimmedQuery
Jack251970 2046c0d
Fix typos
Jack251970 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What is the difference between input and text? More specifically Query.Input and Query.RawQuery? If RawQuery is no longer needed, can we mark it deprecated?
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.
Input is the original input with whitespace while text is the trimmed input without whitespace
Uh oh!
There was an error while loading. Please reload this page.
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.
What's the difference between RawQuery and Input?
Uh oh!
There was an error while loading. Please reload this page.
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.
So RawQuery is not really 'raw' in the sense that the string has been filtered i.e. trimmed of whitespaces where Input is the actual 'raw' query?
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.
I feel like RawQuery should be renamed to OriginalQuery, and introduce new variable TrimmedQuery. OriginalQuery is the original input without any sanitization applied, TrimmedQuery is the whitespaces trimmed. And update where RawQuery -> TrimmedQuery and Input -> OriginalQuery.
Uh oh!
There was an error while loading. Please reload this page.
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.
In that case, TrimmedQuery is better here
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.
And feel free to change it here as you like
Uh oh!
There was an error while loading. Please reload this page.
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.
Already done it- https://github.com/Flow-Launcher/Flow.Launcher/pull/4126/files
I chose to not update RawQuery to TrimmedQuery in the rest of the codebase because it will bring in numerous changes to this PR, we can do it in a separate one.
Let me know what you think.
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.
🤦 I enabled auto merge, and it just merged in straight away. But any way let me know what you think, always happy to make further improvements. Intention is to make the properties clearer.
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.
Oh, have not noticed that....
Well, all things are good to me. Let us merge it