Repository navigation
Fix the 0.2.28 release review findings - #426
Merged
Merged
Conversation
Release review of #424: the embed's and the dataset page's "no recording matches" notices quoted the raw ?view= value, so anyone writing a link (or framing the embed) could put their own sentence on a nemar.org page. displayableViewParam quotes values shaped like entity strings, filenames or BIDS paths and says "a recording" otherwise, the same guard displayableDatasetId gives the path id. Tested: recording-nav tests (90 passed), including real view values and free-text refusals.
Release review of #424: embedCallPoint ran outside countEmbedCall's try. No input found makes it throw, but a counter must never break the response it counts, so building the point now sits inside the same catch as the write, and the log names the dataset when there is one. Tested: middleware tests (83 passed).
- the private handoff's 501 keys on the API base, not production; - the page's own responses carry no-store/no-referrer/noindex, a cross-host redirect only no-store; - add the shared viewer session (#415) and the ?theme= cache key; - add the ?view= quoting fix.
Deploying nemar-website with
|
| Latest commit: |
fc5652c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://88273685.nemar-website.pages.dev |
| Branch Preview URL: | https://fix-release-0-2-28-review.nemar-website.pages.dev |
Re-review of #426: the embed's unknown-version note (and its log) quoted the raw ?v= value, the same echo #426 closed for ?view=. displayableVersion admits version tokens such as v1.0.1, and anything else reads "That version". displayableViewParam now trims, as parseViewSpec does, and says what it can and cannot rule out. The changelog says where #415's code moved from, and ADR 0024 and the flag comment describe the widened catch. Tested: lint, typecheck, unit tests.
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Findings from the release review of #424, the whole 0.2.28 diff, before promotion.
?view=quoting (28ecbad). The dataset page's and the embed's "no recording matches" notice quoted the raw?view=value, so anyone writing a link (or framing the embed) could put their own sentence on a nemar.org page.displayableViewParam(recording-nav.ts) quotes values shaped like entity strings, filenames or BIDS paths ([A-Za-z0-9._/-]{1,120}) and says "a recording" otherwise. This is the same guarddisplayableDatasetIdgives the path id. Tests cover real view values and free-text refusals.a58c94b). No input was found that makesembedCallPointthrow, but a counter must never break the response it counts. The log names the dataset when there is one, and the test assertion follows the new text.8a72d70):no-store,no-referrerandnoindex;?theme=cache key;?view=fix.Not changed, noted on #424:
private.nemar.orgdoes not resolve yet, and nothing links to the handoff page.Tests
bun run lint,bun run typecheck(0 errors),bun run test(2991 passed)