You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d70ca2a
Browse filesBrowse the repository at this point in the historyBrowse files
Defer a view's whole-result-set queries until they can be seen (#445)
* Defer a view's whole-result-set queries until they can be seen
Related-results discovery and the view-container lookup both run over a
view's whole result set, and every view sent both on every load. Neither
shows anything until asked: the pivot chips sit in a bar the card draws
collapsed, and the container only becomes a Create button for an agent
who could create there.
- ldh:render-view discovers only while the view's pivot bar is open, and
caches the focus variable and property labels beside the query, endpoint
and results it already keeps
- a tb-controls rule in view.xsl runs the block's toggle, then discovers
for every pivot bar it left open, from the cache
- ldh:ViewContainer is asked only when the view names a class to construct
and an agent is signed in, with Write on this document for a forward view
Driven on the local LTLOD stack with Playwright (develop vs this branch,
SEF served through page.route): anonymous loads send neither query, the
controls toggle discovers once with the same pills per view as develop,
and the owner still gets all five Create buttons on persons/7242/. That
page's store goes quiet at 2.8 s instead of 15.7 s, the homepage at 2.5 s
instead of 3.6 s.
deferred-queries.spec asserts the deferral against the ui-tests fixtures;
it has not been run yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Related-results discovery shows the progress cursor while it runs
Discovery now runs only once the pivot bar is opened, and the bar stays
hidden until its first pill arrives, so nothing showed that the request
was underway. It sets the busy cursor before the request and resets it
in the chain's finally, the way the facet, pager, sort and pivot queries
already do. Reopening a bar over the same result set sends no request
and sets no cursor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
<xsl:iftest="$initial-load and exists($create-block/@data-for-class) and exists($acl:agent) and (exists($create-block/@data-inverse) or $acl-modes = '&acl;Write')">
<!-- resolves the view's client-side cache entry: block-hosted views are keyed by the host block's @about, modal-hosted views (geo/latest/search/class instances) by the container's @id -->
0 commit comments