GithubHelp home page GithubHelp logo

Comments (10)

parg avatar parg commented on June 14, 2024

Are you talking about the filters in a subscription created from a swarm discovery result? Or the swarm discoveries search results "filter" box (top right). Or the swarm discoveries search expression itself?

from biglybt.

bnm12 avatar bnm12 commented on June 14, 2024

Specifically the swarm discoveries search expression itself (it also breaks subscriptions created from such a search)
image

I think I've managed to work around it by searching simple and then using the "without words" filter on the subscription when it's created. That seems to handle longer strings so far.

After some poking around I also think I've learned how to create a template and using "Depends on" to manage my generalized filters. But I gotta admit it was hard to find any information on how that worked exactly

from biglybt.

bnm12 avatar bnm12 commented on June 14, 2024

I have actually found a few issues with using the "Without Words" filters too. One is probably to be considered a bug, the other is more of a design choice

  1. Filters are forced lowercase, which probably isn't an issue since the matches seem to be case insensitive. Except RegEx tokens can have different meanings depending on if they are upper or lowercased such as \w vs \W which is currently causing me some issues
  2. The max results for a subscription can be reached without it showing any results when using filters this way since the result is still counted when it's filtered. This would probably be fine and expected if the filters seemed a bit more temporary, but seeing as they are configured and saved possibly even with the "Depends on" templating it does seem like a bit of a strange choice to show and count unread results that aren't even visible. And considering that there's no way to apply complex filters to the query to actually exclude the results due to the ~250 char limit

from biglybt.

parg avatar parg commented on June 14, 2024

I'll fix it so that regular expressions aren't lowercased (although they will still employ case-insensitive matching) so the \w \W type of issue is fixed.

Also when you save a filter I'll ensure that non-matching results are removed.

If you change a depend-on template itself you will need to go and explicitly save any dependent subscriptions to have their now non-matching results removed, I don't intend to change this unless it really seems to be a big issue.

from biglybt.

bnm12 avatar bnm12 commented on June 14, 2024

I think that alleviates my primary pains. Thank you

from biglybt.

parg avatar parg commented on June 14, 2024

(the 250ish character limit on the swarm search can't easily be increased - it is caused by a UDP packet serialisation limit which ain't easy to raise - I'll limit the entry box text limit to at least make the restriction visible)

from biglybt.

bnm12 avatar bnm12 commented on June 14, 2024

I figured that might be the case as 250 seems suspeciously close to a power of 2 which might indicate some low level datastructure restriction. I think limiting the input box more clearly communicates the limitations of the feature so that's good. Maybe consider adding a "Max 250 chars" help text to the label also so it's communicated ahead of time rather than when the user suddenly (and probably unexpectedly) hits the textbox limit

from biglybt.

parg avatar parg commented on June 14, 2024

Beta B42 has the fixes. The entry limit display/enforcement requires a plugin update that I'll get around to sometime

from biglybt.

bnm12 avatar bnm12 commented on June 14, 2024

Thank you for the swift execution on this by the way, it completely slipped my mind to respond

from biglybt.

parg avatar parg commented on June 14, 2024

No problem :)

from biglybt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.