6 votes

Topic tag filtering question

I was testing topic tag filtering and it didn't seem to work as I expected.

I was trying to filter out a topic with a main.sub style tag, but without a main tag.

I set the filter to main expecting everything nested undeneath that to be hidden, but it did not.

Is that just not implemented yet, or am I just not understanding the feature correctly?

6 comments

  1. Deimos
    Link
    That is how it should work, but it's not currently working correctly: https://gitlab.com/tildes/tildes/issues/145 There are various inconsistencies and bugs with the hierarchical tags that need to...

    That is how it should work, but it's not currently working correctly: https://gitlab.com/tildes/tildes/issues/145

    There are various inconsistencies and bugs with the hierarchical tags that need to get worked out, but they're also not being used very often yet.

    8 votes
  2. [5]
    Deimos
    Link
    I think this should be fixed now, please let me know if it's still not behaving the way you expect though.

    I think this should be fixed now, please let me know if it's still not behaving the way you expect though.

    7 votes
    1. [4]
      dangersalad
      Link Parent
      Yep, looks to be working how I would expect now. Is there a way to search/filter tags so that you only see that content?

      Yep, looks to be working how I would expect now.

      Is there a way to search/filter tags so that you only see that content?

      1. [3]
        Deimos
        Link Parent
        You can click on any tag and it will filter down to just that one (either inside a particular group or all of your subscriptions, depending where you click it from). I'll add it to search...

        You can click on any tag and it will filter down to just that one (either inside a particular group or all of your subscriptions, depending where you click it from). I'll add it to search eventually as well.

        1 vote
        1. [2]
          dangersalad
          (edited )
          Link Parent
          OK, I see, so I can also manually edit the query string for now. It would be cool to get a list of all the tags (or maybe top two levels) available for your subscribed tildes It would also be nice...

          OK, I see, so I can also manually edit the query string for now.

          It would be cool to get a list of all the tags (or maybe top two levels) available for your subscribed tildes

          It would also be nice to be able to filter tags as an OR (right now doing ~test?tag=foo&tag=bar only shows my one test post that has those two top level tags). Possibly add an or_tag query parameter as to not break the existing behavior?

          EDIT: looks like I was mistaken, looks like adding multiple tags only filters the last one, not both as an AND

          1 vote
          1. Deimos
            Link Parent
            Yes, right now you can only filter to a single tag. From a technical perspective it's probably possible to support just about anything we want to do - in the background, tags are using...

            Yes, right now you can only filter to a single tag. From a technical perspective it's probably possible to support just about anything we want to do - in the background, tags are using postgresql's "ltree" data type, which supports some pretty fancy querying: https://www.postgresql.org/docs/current/static/ltree.html#id-1.11.7.31.7

            We'll just need to figure out a decent interface or search methods for being able to support those kind of queries (potentially even just letting people write them directly and have a description of the syntax somewhere).