The discussion revolves around filtering topics in an embed to exclude unlisted, closed, or archived posts. hellekin asks how to filter for only open topics using the d-topics-list component. eviltrout suggests using status="open", but joellabes finds that other status filters like noreplies or solved don’t work as expected. They also try URL-based filtering with search parameters, but it fails. Falco clarifies that the embed controller only accepts specific parameters (template, per-page, category, allow-create, tags, top_period), not the broader topic query filters. joellabes concludes that the documented filters are misleading and plans to open a feature request to allow additional parameters in the embed.
Hello @eviltrout, I noticed that the topic list includes unlisted, closed, archived topics. I guess these should not be taken into account in the list. Given:
But I think they are being ignored as invalid options, as the results are identical with/without the argument (likewise when filtering to status=unsolved vs status=solved, which should be opposites).
Alternatively, if there’s a different way to pass in custom search terms I would be OK with that - I tried https://discourse.getdbt.com/embed/topics?template=complete&top_period=all&search="status%3Anoreplies" (with the colon encoded and unencoded) but got no results using that approach.
Note that I’m embedding the iframe directly instead of using the <d-topics-list> placeholder element because we ran into this problem:
I don’t think this is the cause of the issue though, given that the imported JS is just building the iframe URL.
OK I had a poke around in embed_controller.rb and it looks like when the topic query is built, it only takes into account the allowed parameters in the original post (template, per-page, category, allow-create, tags and top_period):
Which I think makes
a red herring. I will go and open a feature request to allow additional params in this embed. Thanks for the help @Falco