diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index d9cc63ab93f..555cf92685c 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -548,6 +548,32 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli Use case resumes at step 2. +**Use case: UC04 - Filtering interviews by date** + +**MSS** + +1. User requests to list interviews +2. System shows a list of interviews +3. User requests to filter interview by a specified date +4. System updates the list to only display interviews that match the specified date + + Use case ends. + +**Extensions** + + +* 3a. The given date is invalid. + + * 3a1. Tether shows an error message. + + Use case resumes at step 2. +* 3b. There are no interviews on the specified date. + + * 3b1. Tether shows a no interviews found message. + + Use case resumes at step 2. + + *{More to be added}* ### Non-Functional Requirements @@ -694,6 +720,18 @@ testers are expected to do more *exploratory* testing. 3. Close and launch Tether again.
Expected: New data file created at `data/addressbook.json` containing some sample data. +### Filtering interviews by date + +1. Filtering interviews by date + + 1. Prerequisites: Tether already contains multiple interviews in the list, specifically there exists multiple interviews with date `2024-05-05` and there is no existing interview with date `2024-06-06`. Additionally, ensure that the original interview list is displayed by using the `list_interviews` command. + + 2. Test case: `filter_interviews_by_date 2024-05-05`
+ Expected: Interviews with date `2024-05-05` is displayed on the list. + + 3. Test case: `filter_interviews_by_date 2024-06-06`
+ Expected: A message indicating that no interviews are found is displayed, and the displayed interview list does not change. + ## **Appendix: Planned Enhancements** **Team Size**: 5 members
diff --git a/docs/UserGuide.md b/docs/UserGuide.md index ce9322fbcb0..9dde48a219d 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -356,6 +356,7 @@ To view your full interview schedule again, simply use the `list_interviews` com **Notes** * If there are no interviews with the given date, Tether will simply inform you that there are no interviews found and the displayed list will remain unchanged. +* If you want to apply filters one-after-the-other seamlessly, you will have to do this manually. For example, after applying `filter_interviews_by_date 2024-05-05`, and if there exists interviews on that date, you will need to `list_interviews` again before applying `filter_interviews_by_date 2024-06-06`. ### Deleting a Person: