feat(challenge11): add readme to challenge 11

This commit is contained in:
thomas
2022-12-09 15:22:02 +01:00
parent b13bbc5f44
commit a9a3b7a7d8
2 changed files with 23 additions and 12 deletions

View File

@@ -28,9 +28,14 @@ This goal of this project is to help you get better at Angular and NgRx by resol
<a href="./apps/context-outlet-type/README.md"><img src="https://img.shields.io/badge/4-ContextOutlet Typed-red" alt="Directive enhancement"/></a> <a href="./apps/context-outlet-type/README.md"><img src="https://img.shields.io/badge/4-ContextOutlet Typed-red" alt="Directive enhancement"/></a>
<a href="./apps/crud/README.md"><img src="https://img.shields.io/badge/5-CRUD-green" alt="crud application"/></a> <a href="./apps/crud/README.md"><img src="https://img.shields.io/badge/5-CRUD-green" alt="crud application"/></a>
<a href="./apps/permissions/README.md"><img src="https://img.shields.io/badge/6-permissions-orange" alt="permissions"/></a> <a href="./apps/permissions/README.md"><img src="https://img.shields.io/badge/6-permissions-orange" alt="permissions"/></a>
<a href="./apps/pipe-easy/README.md"><img src="https://img.shields.io/badge/6-simple pure pipe-green" alt="pipe easy"/></a> <a href="./apps/pipe-easy/README.md"><img src="https://img.shields.io/badge/8-simple pure pipe-green" alt="pipe easy"/></a>
<a href="./apps/pipe-intermediate/README.md"><img src="https://img.shields.io/badge/6-wrapFn pipe-orange" alt="wrapFn pipe"/></a> <a href="./apps/pipe-intermediate/README.md"><img src="https://img.shields.io/badge/9-wrapFn pipe-orange" alt="wrapFn pipe"/></a>
<a href="./apps/pipe-hard/README.md"><img src="https://img.shields.io/badge/6-utilities pipe-red" alt="utilities pipe"/></a> <a href="./apps/pipe-hard/README.md"><img src="https://img.shields.io/badge/10-utilities pipe-red" alt="utilities pipe"/></a>
</br>
<img src="https://img.shields.io/badge/RxJs--gray?logo=rxjs" alt="RxJs"/>
<a href="./apps/rxjs-pipe-bug/README.md"><img src="https://img.shields.io/badge/11-BUG: chaining operators-orange" alt="Bug rxjs chaining operators"/></a>
</br> </br>
<img src="https://img.shields.io/badge/NgRx--gray" alt="NgRx"/> <img src="https://img.shields.io/badge/NgRx--gray" alt="NgRx"/>

View File

@@ -1,18 +1,26 @@
<h1>Rxjs pipe bug</h1> <h1>BUG: RxJs chaining operators</h1>
> Author: Thomas Laforge > Author: Thomas Laforge
<!-- TODO: add Information/Statement/Rules/Constraint/Steps --> 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 ### Submitting your work
@@ -24,8 +32,6 @@
6. Commit your work 6. Commit your work
7. Submit a PR with a title beginning with **Answer:11** that I will review and other dev can review. 7. Submit a PR with a title beginning with **Answer:11** that I will review and other dev can review.
<!-- TODO: add challenge number and project Name -->
<a href="https://github.com/tomalaforge/angular-challenges/pulls?q=label%3A11+label%3Aanswer"><img src="https://img.shields.io/badge/-Solutions-green" alt="Rxjs pipe bug"/></a> <a href="https://github.com/tomalaforge/angular-challenges/pulls?q=label%3A11+label%3Aanswer"><img src="https://img.shields.io/badge/-Solutions-green" alt="Rxjs pipe bug"/></a>
<!-- TODO: uncomment when done late --> <!-- TODO: uncomment when done late -->