89d738beff2c63765e2b6b4bc89412c621246b33 max Thu Sep 3 12:25:02 2026 -0700 snapshotSession: rename the snapshot "reaper" to "cleaner" Renames the snapshotReaper utility to snapshotCleaner and drops the word "reap" from the API and comments (snapshotReapAnon -> snapshotCleanAnon, and the doc/usage text now say clean/cleaned/cleaner). No behavior change. refs #38197 diff --git src/hg/js/hgBlat.js src/hg/js/hgBlat.js index b6c5b57992c..a4367586a6b 100644 --- src/hg/js/hgBlat.js +++ src/hg/js/hgBlat.js @@ -303,31 +303,31 @@ inp.value = url; inp.focus(); inp.select(); $('#blatShareCopy').on('click', function() { inp.select(); if (navigator.clipboard) { navigator.clipboard.writeText(url); } else { document.execCommand('copy'); } this.textContent = 'Copied'; }); } function blatShareLink() { // Create (or reveal) a durable share link. It is backed by a lightweight "snapshot" session that // stores only db + the results bigPsl - not the whole cart - under a server-generated unique name // (see lib/snapshotSession.c). hgBlat's ?u=&s= reopen (doShareReopen) rebuilds the results table - // from that bigPsl. The token generation, uniqueness and reaping are shared with hgc and the + // from that bigPsl. The token generation, uniqueness and cleanup are shared with hgc and the // top-right "Share a link". var box = document.getElementById('gbShareBox'); if (!box) { return; } if (box.style.display === 'flex') { box.style.display = 'none'; return; } // toggle off // Already viewing a shared session link: the current URL is itself the shareable link. if (/[?&]s=/.test(window.location.search)) { blatShowShareBox(box, window.location.href); return; } // Already created one this page view: reuse it rather than creating another session. if (blatShareCachedUrl) { blatShowShareBox(box, blatShareCachedUrl); return; } var cfg = hgBlatData.config; blatShowShareBox(box, null); // "Creating linkā¦" var body = 'hgsid=' + encodeURIComponent(cfg.hgsid || '') + '&hgS_doSaveSessionJson=1&hgS_shareAnon=1&hgS_snapshotType=blat'; fetch('../cgi-bin/hgSession', {method: 'POST', credentials: 'same-origin',