Automattic / Automattic/jetpack

Search: Support configuring the order of date histogram aggregations

Open
#8,845 3 comments 0 reactions 0 assignees View on GitHub
[Feature] Search Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

In JP Search, code / UI should support controlling the display order of Date Aggregations - sometimes you want to show dates in newest to oldest or vice versa, so the 'Filter' should support setting an `order` param (`asc|desc`) which controls that rendering.

Related code:

https://github.com/Automattic/jetpack/blob/e4477ebb9e13752a04776421351b7809039baf10/modules/search/class.jetpack-search.php#L1433-L1436

Contributor guide

Open the contributing guide

Research direction

Start in modules/search/class.jetpack-search.php at the referenced date histogram aggregation code around lines 1433-1436, then trace how the Filter configuration reaches rendering. Done means the Filter accepts an order value of asc or desc and date aggregations display in the requested order.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.