-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add optional filtering of help posts #140
Conversation
Thanks for the PR! I'm a bit slammed right now due to the holiday season, but I'll take a look as soon as I'm able. |
Sounds good, I'll update the PR with those this weekend :)
I'm not sure I agree with this one - it doesn't seem great that a link with the same URL would render a potentially completely different list of posts depending on whether the person clicking the link had that bit set locally or not. |
Maybe it would be better to use a checkbox instead of a link then? |
Oh, sorry, I think I explained this badly. Say user A is looking at page two of the tracker with filtering on, and they see a funny sequence of post titles, so they copy the URL and send it to user B. With the filtering as part of local session data, user B will see a very different list of posts, get confused, and file a bug report you'll have to deal with :P Whether the UI element to do the toggle is a link or a checkbox doesn't matter much for this concern, it's just whether a given URL will render the same set of posts when transported around to different contexts. |
Ah, I see. I thought you were saying the link not acting like a link might be confusing. I'm fine with keeping as-is then. I was thinking most people would just want to keep the help forum disabled permanently, but I supposed they can just bookmark the I like the position of the link now and the loading indicator. Two minor things and then this'll lgtm:
Thanks again! |
I'm going to go ahead and merge this as I don't consider either of those things strict blockers and they can be done in a separate PR. If you aren't able to take care of them, I'll likely knock them out some time this week and aim to get this deployed by the weekend. Thanks for the PR! |
Thanks! Sorry, I likely won't get to those this week, that annoying gainful employment thing is monopolizing my time. |
Deployed! Thanks again! |
Fixes #138 :)
My Go and Javascript are both very out of practice, so apologies on that front!
This adds simple server-side filtering of posts to the "Help and Information" forum, selected by locale. The RU and JP locales didn't seem to have a direct equivalent for that forum so I've left those unset, which means clicking on the toggle will be a no-op for those.
This will incur more db fetches per page load, unfortunately. That might be avoidable in the DynamoDB backend if more metadata is stored along with the gzipped blob so the query can directly filter on properties like forum ID, but that would be a much more invasive change and didn't seem proportionate to the feature scope.
I added the toggle link opposite the "Next Page" link at page bottom but UX is absolutely not my strong suit so I don't know if that's actually a good place for it :)