Repository navigation
Description
Description
#36989 ships the list against GET /api/v1/experiments as it exists today, computing paging, sorting, filtering, status counts and site scoping client-side — an explicit, documented interim. This issue replaces that interim with the server-side contract from #36823, and is filed together with #36989 on purpose so the interim cannot quietly become permanent. It lands whenever #36823 does; nothing else waits on it.
The URL param contract was designed to be final from day one, so this swap changes where the params are applied, not what they are called.
Scope
- Replace client-side paging / sorting / text filtering / status filtering / site filtering / status counts with the server-side parameters from Add pagination, sorting, filtering and permission checks to the Experiments list endpoint #36823 (
page,per_page,orderby,direction,filter,status,goal,siteId). - Add two new toolbar filter controls — filter by creator and filter by running date range — consuming Add pagination, sorting, filtering and permission checks to the Experiments list endpoint #36823's
created_byandrunning_from/running_toparameters. - Consume the enriched rows: real
pageTitle/pageUrl/ site in the Page column, deleting Experiments Portlet — Screen 1: portlet base + site-wide List #36989's interim client-side page lookup. - Consume the per-status counts from the API instead of counting the loaded array.
totalRecordsfrom the response body (pagination.totalEntries), not theX-Pagination-*headers.- Enable server-side filtering only against a build where Add pagination, sorting, filtering and permission checks to the Experiments list endpoint #36823's two SQL fixes are merged (
name+statusmalformed SQL;pageId+multi-status precedence).
Boundary check
Only two places should change in existing code: the data-access service and the store's load event handler. No existing component should need touching — the one enumerated exception is the two new toolbar filter controls (creator, running date range), which are new components this issue adds. If any other component needs a change, #36989's service boundary was drawn wrong — flag it in review instead of patching around it.
Acceptance Criteria
- The list issues one request per view change carrying the server-side params; no client-side slicing/sorting/filtering remains (interim utilities deleted).
- URL behavior is byte-identical for all pre-existing params: same names, same defaults-omitted rule, same deep-link restoration (the E2E deep-link spec from Experiments Portlet — E2E test suite (incl. flag-off regression of the old flow) #37006 passes unchanged). The three new params (
created_by,running_from,running_to) are additive and follow the same defaults-omitted rule. - Page column shows the enriched title/path; the interim lookup is deleted.
- Status counts come from the API and reflect the whole filtered set.
- Site scoping uses the
siteIdparam; switching site refetches. - Diff touches only the data-access service, the store load handler, the two new toolbar filter controls, and deleted interim code.
- Filter by creator works server-side via
created_by; filter by running date range works server-side viarunning_from/running_towith inclusive overlap semantics; both compose with every other filter and are reflected in counts and totals. - Jest specs updated: load handler asserts outgoing params per state.
Priority
Medium — unblocks scale, not features.
Additional Context
- Depends on: Add pagination, sorting, filtering and permission checks to the Experiments list endpoint #36823 (merged, including permission filtering) + Experiments Portlet — Screen 1: portlet base + site-wide List #36989.
- Out of scope: any visual or interaction change to the list; any endpoint change (pure consumer swap).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsFuture
Activity
github-actions commentedon Aug 27, 2026
PRs linked to this issue
4 remaining items
spec(experiments): pin the column to both surfaces, the creator param…
oidacra commentedon Sep 18, 2026
Dependency status: #36823 is not merged.
The Additional Context section reads
Depends on: #36823 (merged, including permission filtering). That parenthetical is not accurate today. Verified againstmain:ExperimentsResource.list()still accepts onlypageId,nameandstatus— nopage,per_page,orderby,direction,siteId,created_by,running_fromorrunning_to.com/dotcms/util/pagination/.ExperimentsAPIImpl.list(filter, user)still takes aUserit never applies, which is the security gap Add pagination, sorting, filtering and permission checks to the Experiments list endpoint #36823 documents.So this issue is still blocked on #36823, and the two SQL fixes it names have not landed either.
Heads-up on the two toolbar controls. Scope item 2 asks for a creator filter and a running-date-range filter. #37307 is adding both now, client-side, against the payload as it stands. When this issue is picked up they will already exist, so the work is swapping them onto the server-side parameters rather than building them.
One divergence will need a deliberate decision at that point: #37307's time filter compares the experiment's scheduled start, while #36823's
running_from/running_tocompare the running window — actual runs, or the scheduled window when the experiment never ran — with both bounds inclusive. For an experiment that has already run those answer different questions, and the change is visible to anyone who had the filter applied before the swap.The creator parameter needs no reconciliation: #37307 already names it
created_by.feat(experiments): filter the schedule by date range, not by fixed wi…
docs(experiments): say why the shared field filter is not reused here
refactor(experiments): render the listing filters through the shared bar
spec(experiments): pin the column to both surfaces, the creator param…
feat(experiments): filter the schedule by date range, not by fixed wi…
docs(experiments): say why the shared field filter is not reused here
refactor(experiments): render the listing filters through the shared bar
spec(experiments): pin the column to both surfaces, the creator param…
feat(experiments): filter the schedule by date range, not by fixed wi…
docs(experiments): say why the shared field filter is not reused here
refactor(experiments): render the listing filters through the shared bar