Commit 8a174c5
committed
fix(engine): correctly set prune confirmation message in setRunningPhase
setRunningPhase was overwriting the message when it receives an empty
list of tasks while we were setting the message before setRunningPhase
was called which broke the prune confirmation message since commit
95d19f2.
This moves the message logic in setRunningPhase with the rest of the message
logic and remove the tasks filtering when the sync is pending to allow
retrieving the pruning tasks and construct the message indicating to
wait for pruning confirmation.
Also add a unit test covering this recently broken behavior
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@ledger.fr>1 parent e8539be commit 8a174c5
2 files changed
Lines changed: 49 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
400 | 420 | | |
401 | 421 | | |
402 | 422 | | |
| |||
1487 | 1507 | | |
1488 | 1508 | | |
1489 | 1509 | | |
1490 | | - | |
1491 | 1510 | | |
1492 | 1511 | | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
| 1512 | + | |
| 1513 | + | |
1501 | 1514 | | |
1502 | | - | |
1503 | | - | |
1504 | 1515 | | |
1505 | 1516 | | |
1506 | 1517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
853 | 880 | | |
854 | 881 | | |
855 | 882 | | |
| |||
0 commit comments