Repository navigation
Pass the recording's subject and task, and re-pin staging - #356
Merged
Merged
Conversation
With a Zarr copy, the dataset page now announces the first recording in its Zarr index by subject and task (OSA #477), which fill the widget's questions about the dataset. An entity the file name does not carry, or one that is not a plain label, is left out; the pinned widget ignores both fields until it is re-pinned to a build that reads them. Tested: bun run test (2414 pass), lint, typecheck; 7 single-line mutations of the new code each fail osa-dataset.test.ts.
12 tasks done
Deploying nemar-website with
|
| Latest commit: |
f88a89a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://130d74c8.nemar-website.pages.dev |
| Branch Preview URL: | https://feature-osa-dataset-facts.nemar-website.pages.dev |
Review of #356, matching osa #478: a subject or task that is not a plain label is dropped with a warning and the rest is announced, since refusing the whole value would leave the notebook button waiting on zarr. A bad id or zarr still refuses it. Long comment lines rewrapped. Tested: bun run test (2415 pass), lint, typecheck; removing the drop, or skipping the cleaning step, fails osa-dataset.test.ts.
Contributor
Author
Review responseOne Sonnet review, no correctness findings. It checked that the website's label rule and the widget's agree exactly, and that
|
Closed
6 tasks
Moves test.nemar.org's widget to osa 7092864 (osa PR #478), which reads the subject and task this branch passes, and records it in ADR 0018. Tested: SRI hash computed from the commit's file and matched against jsDelivr's bytes.
Contributor
Author
|
osa PR #478 is merged (7092864), so this PR now also moves staging's widget pin to it, with its SRI hash computed from the commit's file and matched against jsDelivr's bytes, and adds an ADR 0018 update. The facts and the widget that reads them land together. |
3 of 8 tasks
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.
Summary
The website half of OpenScience-Collective/osa#477 (osa PR #478): a dataset page with a Zarr copy now tells the widget the subject and task of the first recording in its Zarr index, so the widget's dataset questions can name a real recording ("Plot 10 seconds of sub-001's MMN recording from nm000132").
Changes
osaDatasetFacts(index)insrc/lib/osa-dataset.ts: the BIDSsub-andtask-entities of the first store's file name. The facts come from the index, not the dataset's metadata, so they always name a recording with a Zarr copy. An entity the name does not carry, or one that is not a plain label, is left out rather than guessed.announceOsaDatasetacceptssubjectandtask(^[A-Za-z0-9]{1,64}$, no prefix), the same rule as the widget'ssetDataset; an invalid one is dropped alone with a warning, as the widget does.src/pages/dataset/[id].astroadds them to the announcement once the index shows a Zarr copy.The widget pinned on staging today (osa
1a79aa8) ignores the two fields, so this is safe to merge first; they take effect when staging is re-pinned to the build with #478.Testing
bun run test: 2414 pass.bun run lint,bun run typecheck: clean.osa-dataset.test.ts: forwarding, refusal of prefixed, spaced, empty and non-string labels, and the facts from the realon008083and v3 sample indexes; 7 single-line mutations of the new code each fail it./dataset/xx099904on test.nemar.org name its first recording.