Skip to content

Register vcell-su download-vcml subcommand and resolve users by id#1675

Open
jcschaff wants to merge 1 commit intomasterfrom
admin-download-vcml-by-userid
Open

Register vcell-su download-vcml subcommand and resolve users by id#1675
jcschaff wants to merge 1 commit intomasterfrom
admin-download-vcml-by-userid

Conversation

@jcschaff
Copy link
Copy Markdown
Member

@jcschaff jcschaff commented May 5, 2026

Summary

  • DatabaseCommand (the download-vcml admin subcommand for fetching cached VCML directly from the database) existed in vcell-admin/.../tools/DatabaseCommand.java but was never wired into the AdminCLI subcommand list, so vcell-su download-vcml was unreachable. This adds it.
  • Adds a --userid <name> option that resolves the User key via AdminDBTopLevel.getUser(...), so admins can fetch private biomodels by username alone instead of needing the userid:userkey pair. The existing --user userid:key option still works.

Why

Used during investigation of two biomodels failing to load from the primary Oracle DB. The existing tooling required the user-key (a numeric internal id), which we don't have for arbitrary users. With --userid, an admin can fetch any private biomodel by --biomodel-id <id> --userid <name>.

Test plan

  • mvn -pl vcell-admin -am compile -DskipTests clean
  • vcell-su -h lists download-vcml as a subcommand
  • vcell-su download-vcml --biomodel-id=<id> --userid=<name> -o <dir> --regenerateXML=false --publishedOnly=false retrieves the cached VCML for a private biomodel
  • Verify the --user userid:key form still works (regression check)

🤖 Generated with Claude Code

DatabaseCommand existed but was never wired into the AdminCLI subcommand
list, so 'vcell-su download-vcml' was unreachable. Register it.

Add a --userid option that resolves the User key via AdminDBTopLevel,
so admins can fetch private biomodels by username alone instead of
needing the userid:userkey pair.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant