-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Trim search string and remove duplicate records from the database #8242
Conversation
Migration worked great, and trimming also works as expected. Thank you! |
@TiA4f8R Without the database migration, only a single class is affected, now we have 6... |
Disclaimer: the idea is not from me but from @TobiGr:
|
@litetex I personally do not like to leave it up to the user to clean up the database to contain expected values. |
I don't think it's a good idea to have the user manually clear the search history for this feature. Actually, NewPipe works fine with or without database migrations because the PR does not add a unique constraint to the |
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 agree the database migration should be done, to keep data consistent
app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java
Outdated
Show resolved
Hide resolved
app/src/androidTest/java/org/schabi/newpipe/database/DatabaseMigrationTest.kt
Outdated
Show resolved
Hide resolved
app/src/androidTest/java/org/schabi/newpipe/database/DatabaseMigrationTest.kt
Outdated
Show resolved
Hide resolved
app/src/androidTest/java/org/schabi/newpipe/database/DatabaseMigrationTest.kt
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
Co-authored-by: Yingwei Zheng <dtcxzyw@qq.com>
Co-authored-by: Yingwei Zheng <dtcxzyw@qq.com>
b2ab28c
to
15fd47c
Compare
Kudos, SonarCloud Quality Gate passed! |
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.
Thank you for the initial work!
What is it?
Description of the changes in your PR
suggestionPublisher
after typing or pasting textBefore/After Screenshots/Screen Record
before.mp4
after.mp4
Fixes the following issue(s)
APK testing
Debug APK
Due diligence