Skip to content

set-default-session does not work since 2.10.2 #4434

@heavywatal

Description

@heavywatal

Describe the bug

I have been using jbrowse set-default-session with --view and --tracks options. Unfortunately they were removed in 2.10.2. The removal was announced as a bug fix, but actually that was a breaking change in the existing API, which I think deserves at least a minor version bump. Anyway, now I am struggling to build a new pipeline to setup a new session via CLI in newer versions. The first attempt was to simply remove --view and --tracks options from the command, but the command resulted in an error "Error: Please either provide a default session file". It does not make sense.

To Reproduce

  1. Create a new config: jbrowse create ...
  2. Add an assembly and tracks to the target config: jbrowse add-assembly ...; jbrowse add-track ...
  3. Try to create a default session to the target config: jbrowse set-default-session ...

Expected behavior

A default session can be created with a view and tracks. Even though the previous behavior of set-default-session was not perfect as stated in #2708 and #4146, it was much better than "not provided at all".

Screenshots

Version:

  • @jbrowse/cli 2.10.1: OK
  • @jbrowse/cli 2.10.2: NG
  • @jbrowse/cli 2.11.2: NG

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions