Feature: Export reports as files in the language of the requester
Description
A report can now be exported as CSV or XLSX. The export is requested through the API, generated in the background and announced by its status; the file can be downloaded by its requester for 24 hours.
The file is written in the saved language of the requester, not the language of the browser. German files use a semicolon and a decimal comma, English files a comma and a decimal point; both start with a byte order mark. Durations are hours with two decimals, and XLSX files hold numbers and dates as typed cells. A text starting with a formula character gets an apostrophe, so a spreadsheet never runs it.
The rows are those the requester may see when the file is written. A requester who has lost access by then gets a failed export and no file, and a requester who loses access later can no longer download. The request and every download are kept in the change history, which outlives the file. An export holds at most 500000 rows.
Impact
Exports are written to var/ and deleted every
hour once their 24 hours have passed. The directory must be writable
by the web server and the workers, and the bulk queue async_
must be consumed.