Repository navigation
feat: add sandbox training requirement for uploads - #24
Merged
Merged
Conversation
- Add sandbox command (nemar sandbox, nemar sandbox status, nemar sandbox reset) - Generate placeholder BIDS dataset with random EDF for training - Gate real uploads on sandbox completion - Show sandbox status on login welcome message - Backend: Add sandbox fields to users table, sandbox routes, dataset sandbox flag - Backend: Update auth/users/datasets endpoints for sandbox support Addresses #16
Contributor
Author
PR Review SummaryIssues FoundInput Validation (High Priority)
Error Handling (Medium Priority)
Local vs Server State (Low Priority)
Strengths
Recommended Fixes
Will address these before merging to main. |
…M propagation delay
Contributor
Author
PR Review Summary (Automated)Agents Used
Critical Issues (2 found)
High Severity Issues (7 found)
Test Coverage Gaps (Priority order)
Positive Observations
Recommendation: The feature is functional and all CI checks pass. The issues identified are improvements for future iterations, not blockers for merge. Consider addressing critical issues in a follow-up PR. |
- Add regex validation for sandbox dataset_id format (xx000000) - Filter sandbox datasets from public listings - Replace empty catch blocks with proper error logging - Return warnings instead of silent failures in finalize endpoint - Abort sandbox training on upload/URL registration failures - Update test configs to include sandboxCompleted flag
Contributor
Author
Review Issues Addressed ✓The following issues from the automated review have been fixed in commit 917ad36: Critical Issues (2/2 fixed)
High Severity Issues (7/7 fixed)
Additional Fixes
All tests pass. Ready for merge. |
- Use SHA instead of run number for feature branch versions
- Only publish feature branches that have an associated PR
- Tag format: feature-{pr-number}, version: {base}-feature.{pr}.{sha}
- Skip npm publish for feature branches without PRs
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR24Version: 🤖 Updated on each push. |
11 tasks
This was referenced Jan 17, 2026
4 tasks done
This branch was previously deployed
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
Implements mandatory sandbox training before users can upload real datasets to NEMAR. This ensures users have verified their setup and are familiar with the upload workflow.
Changes
CLI Changes
nemar sandboxcommand: Run sandbox trainingnemar sandbox statuscommand: Check training completionnemar sandbox resetcommand: Reset status for re-trainingnemar dataset uploaduntil sandbox is completedBackend Changes
sandbox_completed,sandbox_completed_at,sandbox_dataset_idto users tableis_sandboxflag to datasets tablexxprefix to id_sequence for sandbox datasets (xx000XXX pattern)/sandbox/status,/sandbox/complete,/sandbox/resetendpoints/auth/loginand/users/meto include sandbox status/datasetscreation on sandbox completion for non-sandbox uploadsSandbox Training Flow
nemar sandboxs3://nemar/sandbox/xx000XXX/)sandbox_completed=trueTest plan
nemar sandboxto complete trainingnemar sandbox statusshows completionnemar dataset uploadis blocked without sandboxnemar dataset uploadworks after sandboxnemar sandbox resetand verify status is clearedMigration Required
Run
backend/src/db/migrations/0004_sandbox.sqlon the database before deploying.Closes #16