-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: 1.29.5
-
Component/s: Import/Export
-
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.
- duplicates
-
COMPASS-4971 CSV export omits explicitly included fields
- Closed