Skip to content

Add --sandbox flag to 'admin publish approve' command #83

Closed

Description

@neuromechanist

Problem

The nemar admin publish approve command creates a concept DOI in step 4 of the publication orchestrator, but it doesn't have a --sandbox flag to test the workflow on Zenodo sandbox.

Current Behavior

  • nemar admin doi create has --sandbox flag ✅
  • nemar admin publish approve does NOT have --sandbox flag ❌
  • The approve command hardcodes false for sandbox at line 2017 in backend/src/routes/admin.ts

Expected Behavior

Should be able to run the full publication workflow on sandbox:

nemar admin publish approve nm099999 --sandbox

This would test:

  1. CI check
  2. Make repo public
  3. Tag protection
  4. DOI creation (on sandbox)
  5. S3 Object Lock
  6. Email notification

Files to Modify

CLI (src/commands/admin.ts)

Line 969: Add --sandbox option

Backend Schema (backend/src/routes/admin.ts)

Line 1720-1722: Add sandbox field

Backend DOI Step (backend/src/routes/admin.ts)

Line 1989 & 2017: Use sandbox parameter

API Client (src/lib/api.ts)

Line 957-969: Add sandbox parameter

Testing

nemar admin publish approve nm099999 --sandbox

Priority

High - Prevents testing full publication workflow before running on production.

Activity

  1. added
    bug
    on Jan 28, 2026
  2. added 2 commits that reference this issue on Jan 28, 2026
    e28ea9a
    40aa45d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions