-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
Convert search activity to use URLs not titles #765
Comments
This will require a database migration. |
@mhutti1 the recentSearch database has a zimID field which seems to contain dash separated hexadecimals. What does it refer to exactly? I couldn't figure that out |
zimID is the id of the ZIM file every file should have a unique id. zimName doesn't change between content upgrades. |
So this issue is aimed at replacing the zim ID everywhere with the corresponding URL and then subsequently using that URL for identifying the zim file? |
No its about the search activity not the content management activity. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
Discussion about integrating a possible fix for this issue is taking place at kiwix-build/#354 |
@Aditya-Sood what is the state of this? Why does it need a kiwix-lib update?
it seems like we already get all the data we need? Title/url of the suggestion and ZimContentProvider has the ZimId. |
There's an implementation of getNextSuggestion() in kiwix-lib which, along with a title, also returns the corresponding url (link to function). Using this implementation will help avoid the cost of an additional call at:
That is what I am looking at until now. But I need to go through SearchActivity again because I think @mhutti1 is hinting at a more comprehensive overhaul of the activity. |
Given the late hour of the milestone and seeing as how this is a code improvement that won't affect UX I would say this can be moved on to |
Enhancement: Fixes #765 & uses updated kiwix-lib method
Code Improvement
Convert the search activity to use URLs rather than titles to reference articles internally and in the saved recent search database.
The text was updated successfully, but these errors were encountered: