Open mmo opened 1 year ago
The problem comes from some changes in flask-resources: https://github.com/inveniosoftware/flask-resources/blob/2f74ca86df50501742b949aa397ab6d4408224b3/flask_resources/content_negotiation.py#L97 the config is store in the context request at the application start. The solution can be to have only on config with a logic in the CSVSerializer depending on the current organisation. It can be usefull than this serializer can be usable also in a cli to export the projects in csv.
Bug description:
Research projects have been customised for HEPVS, with the addition of several specific data fields that are not present in the standard version of research projects. When exporting HEPVS research projects to CSV ("Export as CSV" button), only standard fields are included in the CSV file.
This is a regression, as this feature was correctly implemented previously.
Expected behavior:
When exporting HEPVS research projects to CSV ("Export as CSV" button), all HEPVS custom data fields should be included in the CSV file.
Steps to Reproduce: