Commit cea2299
committed
feat: improve error handling and lifecycle management in Backends and LifecycleHooks services
- Enhanced error handling in BackendsService by utilizing a new function to format worker result error messages, improving clarity in BadRequestException responses.
- Updated IdentitiesCrudController to retrieve the updated identity after lifecycle changes, ensuring accurate data representation.
- Modified LifecycleHooksService to implement rollback logic on backend failures during lifecycle updates, enhancing reliability and consistency in identity state management.
- Added a new method in the web UI to extract and display lifecycle error messages, improving user feedback during lifecycle transitions.1 parent 5d948b3 commit cea2299
6 files changed
Lines changed: 130 additions & 16 deletions
File tree
- apps
- api
- src
- core/backends
- _functions
- management
- identities
- lifecycle
- tests/unit/core/backends
- web/src/pages/identities/table/[_id]
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
672 | 673 | | |
673 | 674 | | |
674 | 675 | | |
| 676 | + | |
| 677 | + | |
675 | 678 | | |
676 | 679 | | |
| 680 | + | |
677 | 681 | | |
678 | | - | |
| 682 | + | |
679 | 683 | | |
680 | 684 | | |
681 | 685 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
373 | 375 | | |
374 | 376 | | |
375 | 377 | | |
| |||
Lines changed: 60 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
518 | 540 | | |
519 | 541 | | |
520 | 542 | | |
521 | 543 | | |
522 | 544 | | |
523 | 545 | | |
| 546 | + | |
524 | 547 | | |
525 | 548 | | |
526 | 549 | | |
| |||
529 | 552 | | |
530 | 553 | | |
531 | 554 | | |
| 555 | + | |
532 | 556 | | |
533 | | - | |
| 557 | + | |
534 | 558 | | |
535 | 559 | | |
536 | 560 | | |
537 | 561 | | |
| 562 | + | |
538 | 563 | | |
539 | | - | |
540 | 564 | | |
541 | 565 | | |
542 | 566 | | |
| |||
551 | 575 | | |
552 | 576 | | |
553 | 577 | | |
554 | | - | |
| 578 | + | |
555 | 579 | | |
556 | 580 | | |
557 | 581 | | |
| |||
570 | 594 | | |
571 | 595 | | |
572 | 596 | | |
573 | | - | |
574 | | - | |
| 597 | + | |
| 598 | + | |
575 | 599 | | |
576 | 600 | | |
577 | 601 | | |
| |||
580 | 604 | | |
581 | 605 | | |
582 | 606 | | |
583 | | - | |
| 607 | + | |
584 | 608 | | |
585 | 609 | | |
586 | 610 | | |
587 | 611 | | |
588 | 612 | | |
589 | 613 | | |
590 | | - | |
591 | | - | |
592 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
593 | 628 | | |
594 | 629 | | |
595 | 630 | | |
| |||
602 | 637 | | |
603 | 638 | | |
604 | 639 | | |
605 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
606 | 654 | | |
607 | 655 | | |
608 | 656 | | |
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
329 | 347 | | |
330 | 348 | | |
331 | 349 | | |
| |||
345 | 363 | | |
346 | 364 | | |
347 | 365 | | |
348 | | - | |
349 | 366 | | |
350 | 367 | | |
351 | | - | |
| 368 | + | |
352 | 369 | | |
353 | 370 | | |
354 | 371 | | |
355 | 372 | | |
| 373 | + | |
| 374 | + | |
356 | 375 | | |
357 | 376 | | |
358 | 377 | | |
| |||
0 commit comments