[COMPASS-5363] Adding Fields to csv export does not seem to work Created: 13/Dec/21  Updated: 15/Dec/21  Resolved: 15/Dec/21

Status: Closed
Project: Compass
Component/s: Import/Export
Affects Version/s: 1.29.5
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Byron Appelt Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MacOS 11.6.1


Issue Links:
Duplicate
duplicates COMPASS-4971 CSV export omits explicitly included ... Closed
Story Points: 3
Documentation Changes: Not Needed
Sprint: Iteration Seoul

 Description   

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.


Generated at Wed Feb 07 22:39:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.