Commit f29a687
Arsen P
Enhance transaction management in Kobo asset import
- Updated `import_asset` to ensure each submission is processed in its own transaction, allowing for partial success and rollback of only failed submissions.
- Added detailed comments to clarify transaction handling and watermark persistence for recovery.
- Introduced a new test to verify that earlier submissions remain intact when a later submission fails, ensuring data integrity during import processes.
These changes improve the robustness of the import functionality and enhance error handling in the Kobo sync process.1 parent 1c94ade commit f29a687
File tree
2 files changed
+88
-6
lines changed- src/country_workspace/contrib/kobo
- tests/contrib/kobo
2 files changed
+88
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
| 297 | + | |
296 | 298 | | |
297 | 299 | | |
298 | 300 | | |
| |||
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
| 324 | + | |
| 325 | + | |
322 | 326 | | |
323 | 327 | | |
324 | 328 | | |
| |||
347 | 351 | | |
348 | 352 | | |
349 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
350 | 367 | | |
351 | 368 | | |
| 369 | + | |
352 | 370 | | |
353 | 371 | | |
354 | 372 | | |
| |||
381 | 399 | | |
382 | 400 | | |
383 | 401 | | |
384 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
385 | 405 | | |
386 | 406 | | |
387 | 407 | | |
388 | 408 | | |
389 | 409 | | |
390 | 410 | | |
391 | | - | |
392 | | - | |
| 411 | + | |
| 412 | + | |
393 | 413 | | |
394 | | - | |
| 414 | + | |
395 | 415 | | |
396 | 416 | | |
397 | 417 | | |
398 | 418 | | |
399 | 419 | | |
400 | 420 | | |
401 | 421 | | |
402 | | - | |
| 422 | + | |
| 423 | + | |
403 | 424 | | |
404 | 425 | | |
405 | 426 | | |
| |||
417 | 438 | | |
418 | 439 | | |
419 | 440 | | |
420 | | - | |
| 441 | + | |
421 | 442 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
392 | 394 | | |
393 | 395 | | |
394 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
395 | 456 | | |
396 | 457 | | |
397 | 458 | | |
| |||
0 commit comments