HomePhorge

Convert tokens given to use SearchEngine

Description

Convert tokens given to use SearchEngine

Summary:
Now the page /token/given/ allows to sort tokens by newest (default) and oldest.
The default sort is unchanged.

The given tokens are also now easily usable into any Dashboard.

This introduces creative space to add future filters.

refs T15988

Test Plan:
Tested that /token/ still renders fine.

Order by Creation (Newest First): it works.

Order by Creation (Oldest First): it works.

Activate the DarkConsole's top bar and open the tab Services to inspect the generated queries, that are like this, and not anything alien,
accordingly to the current "order by":

SELECT * FROM `token_given`      ORDER BY `id` DESC LIMIT 101
SELECT * FROM `token_given`      ORDER BY `id` ASC LIMIT 101

Test the page /token/given/ as logged-out: it the Tokens app is configured as public, it still works like before.

From the page /token/given/ order by "Creation (oldest first)", use Use ResultsAdd Dashboard and see that it works.

From the same Dashboard: Create PanelQuery Panel and select "Tokens Given" with Limit=1 and title "Most Recent Tokenzzz" and see that it works as expected.

Visit the Leader Board page at /token/leaders/: it still works like before.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15988

Differential Revision: https://we.phorge.it/D25863

Details

Provenance
Taavi VäänänenAuthored on Feb 5 2025, 9:24 AM
themackabuPushed on Tue, Mar 25, 8:07 PM
Parents
rP6b6c3c84d1a8: Replace some Phabricator references in PhabricatorStartup.php on comments and…
Branches
Unknown
Tags
Unknown

Event Timeline