Philipp Wolfer
adfe3f5771
Use the transfer context also for the progress bars
2025-05-22 11:51:52 +02:00
Philipp Wolfer
3b545a0fd6
Prepare using a context for export / import
...
This will allow cancelling the export if the import fails
before the export finished.
For now the context isn't passed on to the actual export functions,
hence there is not yet any cancellation happening.
2025-05-22 11:51:51 +02:00
Philipp Wolfer
a87c42059f
Use a WaitGroup to wait for both export and import goroutine to finish
2025-05-05 17:49:44 +02:00
Philipp Wolfer
b8e6ccffdb
Initial implementation of unified export/import progress
...
Both export and import progress get updated over a unified channel.
Most importantly this allows updating the import total from latest
export results.
2025-05-05 11:38:29 +02:00
Philipp Wolfer
1f48abc284
Fixed timestamp displayed after import not being the updated one
2025-05-04 15:18:14 +02:00
Philipp Wolfer
55ac41b147
If import fails still save the last reported timestamp
...
This allows continuing a partially failed import run.
2025-05-04 11:53:46 +02:00
Philipp Wolfer
9480c69cbb
Handle wait group for progress bar centrally
...
This does not need to be exposed and caller only
needs to wait for the Progress instance.
2025-05-04 11:53:35 +02:00
Philipp Wolfer
c305b6c7e3
Simplify timestamp comparisons
2025-05-01 12:27:24 +02:00
Philipp Wolfer
a5442b477e
Sync translations with new strings
2025-04-29 16:06:13 +02:00
Philipp Wolfer
84443d0e69
Close export progress in export goroutine
...
Fixes crash in case of importer exiting prematurely
2024-01-15 08:21:38 +01:00
Philipp Wolfer
8a2ddb7772
Replaced ImportResult.ImportErrors with ImportResult.ImportLog
2024-01-15 08:00:17 +01:00
Philipp Wolfer
01380bd730
listenbrainz: localize duplicate listen message
2024-01-14 22:09:12 +01:00
Philipp Wolfer
be1cfdac9e
allow datetime string as --timestamp parameter
2023-12-10 16:15:09 +01:00
Philipp Wolfer
c4587b80af
Introduce models.Entity type
2023-12-10 14:24:06 +01:00
Philipp Wolfer
5755ccef01
Do not apply locale formatting to Unix timestamps
2023-12-09 22:39:08 +01:00
Philipp Wolfer
1698568d0e
Fixed crash with invalid target config name in beam commands
2023-12-09 22:29:15 +01:00
Philipp Wolfer
e7d596b4e0
Allow specifying --timestamp 0
2023-12-09 18:56:23 +01:00
Philipp Wolfer
2307e6247b
Even on error the last import timestamp should be set to the previous timestamp
2023-12-09 18:41:53 +01:00
Philipp Wolfer
a41318d822
Basic i18n setup
2023-12-09 11:46:32 +01:00
Philipp Wolfer
20f1732858
Use positional arguments for source and target in beam commands
2023-12-08 17:59:37 +01:00
Philipp Wolfer
9c363cc06d
Use config.ServiceConfig across API
2023-12-07 23:55:20 +01:00
Philipp Wolfer
a9e07915ce
Transfer command refactoring
...
Make transfer command processing even more modular
2023-12-05 08:24:42 +01:00