Ticket #19 (closed enhancement: fixed)
Automatically relazify the database if any of the "keyword" search preferences are changed
| Reported by: | stuarth | Owned by: | stuarth |
|---|---|---|---|
| Priority: | major | Milestone: | 2.3 |
| Component: | Plugin | Version: | 2.2 |
| Keywords: | Cc: |
Description
As the data stored in the lazified customsearch columns can depend on the settings on the plugin preference page for keyword searches, if any of those settings changes then the database should be re-lazified.
Re-lazification should overwrite the current contents of the customsearch columns, and should do all entries - not just those that haven't yet been lazified.
Bonus points for only re-lazifying the database tables that are affected by the appropriate keyword preferences.
Change History
comment:2 Changed 6 years ago by stuarth
I think we might be able to get a callback through the "pref" notification.
comment:3 Changed 5 years ago by stuarth
- Milestone changed from Implement a 'keyword' search mode for the plugin to Enhancements to the Keyword Searching
comment:5 Changed 5 years ago by stuarth
- Milestone set to 2.2.3
I think I can do this with an OnChange hook on each of the appropriate preferences.
They should schedule a delayed scan since if all three are changed then three OnChanges will be called. Each schedule should cancel a pending rescan if one is already scheduled.
The delayed scan should be a "forced" scan to remove and replace lazification.
Extra marks for only re-lazifying the parts of the database that are affected by these settings - in this case the Tracks table.
Finally, note that the introductory text for those preferences should have the clear-and-rescan text removed.
