Skip to content
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

Re-enable popular searches #1820

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Re-enable popular searches #1820

merged 2 commits into from
Oct 7, 2024

Conversation

ajparsons
Copy link
Contributor

Ok, this is adding a few more parameters to the recent searches option.

I've added explicitly some things that were loosely managed through the search caching.

  • Explicit number of IP addresses required to hit the threshold for inclusion.
  • Reduce number of items listed to 5.
  • Easier to add exclusions.

Ideally, we'd be able to add exclusions through the admin interface - but this means just adding to an array if we need to make a change.

In the interest of getting it back up - I've stopped halfway through adding it back to the devolved homepages.

There is now support for limiting by section - so Scotland could just show Scottish searches. This works fine - but where it needs more work is pulling out when searches for people are devolved politicians (and given the lower daily search volume) having a more useful full back for the search (I think we could have something configured in the admin - but adding a few new things to the admin felt like pushing the scope too much).

@ajparsons ajparsons requested a review from dracos September 24, 2024 08:58
- Explicit number of IP addresses required.
- Reduce number of items listed to 5.
- Easier to add exclusions.
- Support for limiting by section.
@ajparsons ajparsons force-pushed the readd-popular-search branch from 26fc3bc to 25edaff Compare October 1, 2024 11:53
Copy link
Member

@dracos dracos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just quote the regex is all

www/includes/easyparliament/searchlog.php Outdated Show resolved Hide resolved
@ajparsons ajparsons merged commit e018ad4 into master Oct 7, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants