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

Adding Fields to csv export does not seem to work

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.29.5
    • Component/s: Import/Export
    • Labels:
      None
    • Environment:
      MacOS 11.6.1
    • 3
    • Not Needed
    • Iteration Seoul

      Problem Statement/Rationale

      Additional fields beyond those presented from sample data do not show up in a csv export.

      Steps to Reproduce

      Select a collection that has fields that do not show up in the sample, then from Collection->Export Collection, add these fields and select csv as the target and export the collection 

      Expected Results

      The exported csv file should contain the new fields.

      Actual Results

      The exported csv file only contains the sample fields.

      Additional Notes

      I found this in the log file:

      {"t":{"$date":"2021-12-13T16:06:54.707Z"},"s":"I","c":"COMPASS-IMPORT-EXPORT-UI","id":1001000083,"ctx":"Export","msg":"Start reading from collection","attr":{"ns":"scorebird_customer.raw_game_ticks","numDocsToExport":5374,"spec":{"filter":{"game_id":"game:2622a905-cc90-472e-8cda-18973392bf2f"}},"projection":{"src":1,"state.Time":1,"state.collected_at":1,"state.ts":1,"ts":1,"state.Quarter":1,"state.Home":1,"state.Away":1}}} {"t":{"$date":"2021-12-13T16:06:54.721Z"},"s":"I","c":"COMPASS-IMPORT-EXPORT-UI","id":1001000084,"ctx":"Export","msg":"Start writing to file","attr":{"ns":"scorebird_customer.raw_game_ticks","fileType":"csv","fileName":"/Users/bappelt/Desktop/raw_game_ticksgame-2622a905-cc90-472e-8cda-18973392bf2f .csv","fields":["_id","game_id","src","state.Time","state.collected_at","state.device_serial","state.ts","ts","use_watcher"]}}

      Note that the added fields are state.Home and state.Away, they are listed in the field names of `Start reading from collection` message but are missing from the `Start writing to file` message.

            Assignee:
            Unassigned Unassigned
            Reporter:
            byron.appelt@gmail.com Byron Appelt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: