superseriousbusiness / gotosocial

Fast, fun, small ActivityPub server.
https://docs.gotosocial.org
GNU Affero General Public License v3.0
3.7k stars 316 forks source link

[chore] make csv export ordering determinate #3318

Closed tsmethurst closed 1 week ago

tsmethurst commented 1 week ago

Description

If this is a code change, please include a summary of what you've coded, and link to the issue(s) it closes/implements.

If this is a documentation change, please briefly describe what you've changed and why.

This pull request ensures that the sort order of exported CSVs is determinate. We were running into some periodically failing tests with list exports, which this fixes. Also has the benefit of making CSV exports a bit easier to read through.

Checklist

Please put an x inside each checkbox to indicate that you've read and followed it: [ ] -> [x]

If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want).