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

Import from CSV automatically select JSON in Compass for Windows 1.21.2

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • Affects Version/s: None
    • Component/s: Import/Export
    • None
    • Not Needed

      Looks like that is how Electron's openFileDialog behaves (just reproduced it with Electron Fiddle on Windows). When there is a list of supported types (All, CSV, JSON in our case) for some reason on Windows it defaults to JSON and there doesn't seem to be a way to affect that or to explicitly se a default.

      Not tying the file selection dialog to the type that was selected in the UI was a design choice. In fact, even if you don't select the type in the UI but just select a file (file selection comes first in the import dialog) the type will be detected automatically.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ivan.grigolon@mongodb.com Ivan Grigolon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: