From a9a3b7a7d8dd12f7cfaec5de24bab7198f8e9c20 Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 9 Dec 2022 15:22:02 +0100 Subject: [PATCH] feat(challenge11): add readme to challenge 11 --- README.md | 11 ++++++++--- apps/rxjs-pipe-bug/README.md | 24 +++++++++++++++--------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5c70415..f1e987f 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,14 @@ This goal of this project is to help you get better at Angular and NgRx by resol Directive enhancement crud application permissions -pipe easy -wrapFn pipe -utilities pipe +pipe easy +wrapFn pipe +utilities pipe + +
+RxJs + +Bug rxjs chaining operators
NgRx diff --git a/apps/rxjs-pipe-bug/README.md b/apps/rxjs-pipe-bug/README.md index 4b02cdf..2a7e512 100644 --- a/apps/rxjs-pipe-bug/README.md +++ b/apps/rxjs-pipe-bug/README.md @@ -1,18 +1,26 @@ -

Rxjs pipe bug

+

BUG: RxJs chaining operators

> Author: Thomas Laforge - +Let's dive inside the wonderful word of RxJs. -### Information +This challenge is inspired by a real-life example. -### Statement +### Presentation of the challenge -### Step 1 +#### User Story -### Step 2 +We need a button for each `Topic`. When we click on it, we delete all objects with this `Topic` in our database _(Fake DB in our case)_. Finally we display **All [topic] have been deleted** is everything was deleted successfully or **Error: deletion of some [topic] failed** if some deletions failed -### Constraints: +#### Constraints: + +We can only pass one object to our DB for deletion at the time. The DB will respond true if the data was successfully deleted and false otherwise. + +### What you need to do + +The QA team reports a **bug**. The UI shows **All [topic] have been deleted** all the time, even if some deletions fail. + +👉 Spot the bug and correct it. ### Submitting your work @@ -24,8 +32,6 @@ 6. Commit your work 7. Submit a PR with a title beginning with **Answer:11** that I will review and other dev can review. - - Rxjs pipe bug