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
Search filter: enable "online in the past 6 months" by default #1434
Conversation
I agree with @sitarane - it looks like you forgot to commit a change? |
No that's all we need. :-) The existing toggle just switches between 6 and 24 months. It's not possible to have "show everyone past 24 months". Now that 6 months is the default, we could extend the 24 to something longer that we think is still reasonable, or set it to "infinite". Default filters are returned when no filters are saved in localStorage: trustroots/modules/search/client/services/filters.client.service.js Lines 23 to 27 in c39d01e
Here's the toggle which is now on by default since it sees 6 months vs 24 months as value: trustroots/modules/search/client/views/search-sidebar-filters.client.view.html Lines 38 to 45 in c39d01e
trustroots/modules/search/client/controllers/search.client.controller.js Lines 150 to 161 in c39d01e
Without the change the filter defaults to 24 months. Unless I'm missing something? |
OK, I see now :) Actually, I don't see how I didn't see before. Oh well, brains are a funny thing. |
It's a little complicated bit of code just nature of Angular.js services, hope we can simplify it with React. :-) |
As @rumwerfer noted in #1381 (comment), "online within the last 6 months" toggle in map search wasn't on by default.
This makes 6 months default and requires people to toggle it off to get users from the past 24 months. Anyone not logged longer than that won't be visible on the map no matter how the toggle is set.
Proposed Changes
Testing Instructions
By default, the toggle is on. You can also ensure from networks tab that correct "seen" value is sent (24 when the toggle is disabled, 6 months when enabled):