Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4943

Embedded shell shows wrong version when using version() command

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 3
    • Not Needed

      Problem Statement/Rationale

      Executing version() command in embedded shell in Compass always prints 0.0.0-dev.0 as a version

      Steps to Reproduce

      • Start Compass and connect to anything
      • Open embedded shell
      • Run version() command in the shell

      Expected Results

      Displayed version matches embedded shell version (visible in shell info modal)

      Actual Results

      It shows 0.0.0-dev.0

      Additional Notes

      node-runtime-worker-thread is bundled with webpack before version numbers are updated in the package.json during publishing so it probably bundles package.json of shell-api with default dev version number and this is where the root cause of the issue is

            Assignee:
            Unassigned Unassigned
            Reporter:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: