Export and restore left split events out, so moving to a new instance or
restoring a backup lost every event, its people, expenses, payments and
the links to the members' own transactions.
- Export has a "Split Expenses" option, on by default. It writes
split_events, split_participants, split_expenses, split_expense_shares
and split_payments. Like the bank sync option, it warns that the file
carries something sensitive: the events' share links, kept so the links
people already have keep working after a restore.
- split_transaction_links goes along only when transactions are exported
too, the same way sub-transactions follow their parents, so a restore
never points at transactions missing from the backup.
- Restore reads the new files after users, currencies and transactions,
in dependency order. Everything is matched by id, except the event's
currency (by name, like DCA strategies) and the linked transaction,
which is looked up across every user: restore runs as the admin, who
can't see the other members' transactions.
- Guests' usernames and password hashes are restored, so they can still
sign in through the share link.
- Attachments stay out, as transaction attachments do: they're files,
not rows.
The export and restore forms now sit on the Export and Restore page
instead of an offcanvas. Exporting shows a progress line and a toast
when the download starts; restoring splits ZIP and CSV uploads into
tabs and shows errors in the form.
- An empty export warns instead of downloading the message as a file
- Export errors show a message instead of a stuck spinner
- The download link is kept long enough for Safari to save the file
- Non-superusers get a 403 instead of a redirect loop with the login
- The asset classes CSV can be uploaded on its own
- Drop the export form's unknown investment_classes layout field
Restore asset classes before accounts and take a second pass over accounts
once categories, tags and entities exist, so their links survive a restore
into a fresh install.