-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat: store also Hypothes.is tags #199
Conversation
Unfortunately, when tags are stored as Any ideas why? [edit: I have no experience with SQLAlchemy] |
- reason: canonicizing "#tag" eliminates it, fetchi everything, as discussed in karlicoss#195 - Missing a respective js-change in the extension for bookmarks/history.
I did the change in server code discused in #194, but i'm not confident to build and install the extension, to test it, so i will leave the respective change to you @karlicoss. |
This PR is ready by me. Fixes requiredRespective hanges to the JS-code of searching bookmarks & history are pending, Enhancement for the futureCurrently it matches also url-fragments in An improvement would be to execute this SQL with parameter SELECT * FROM visits WHERE context REGEXP '(?<!\w)#{tag}' Also need to explicitly extract tags from pocket, takeout (labels), etc. |
Thanks! I guess it makes sense, will give it a think what would be a proper strategy for handling these.
Yep. But again, need to think first what's the most reasonable generic way to do this -- I want to avoid feature bloat :)
Yeah. This is one of the most annoying bits to me as well, that the logic (especially normalization logic) is spread out between python and JS. At some point I was even considering automatic translation of the code, but it turned to be out more tedious than I expected. Maybe a good intermediate solution would be to rely on the backend for normalization & some other logic when it's present, and without the backed, fallback on the 'simple' normalization, at least for now. If it's too spammy for you, you can disable local history & bookmarks in the settings for now, before it's properly fixed. (another nice feature for search to have -- to make it possible to specify which sources to search over) P.S. CI jobs failed, but it's already fixed on master, so not a problem. Also need to finally figure out how to trigger github actions on an incoming pull request... I suppose you're happy with running off a git version? I wanted to do a few other fixes and maybe release at the end off week. |
I do run all of your stuff like that, for editing on the sport in case bugs arise. |
Yeah, for twitter.all/github.all -- I guess need a more generic defensive mechanism (it's hard to make it dynamic enough & mypy-safe at the same time) Although modyfying in place is perfectly valid way of configuring, you can also use overlays with your own You also might find karlicoss/HPI#102 useful (and maybe if you have some thoughts on the subject, feel free to share!) |
(address #195) store Hypothesis tags in a new context line, prefixed by hash(
#
), separated by space.