-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Branch DG usecases #327
Branch DG usecases #327
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #327 +/- ##
=========================================
Coverage 81.35% 81.35%
Complexity 1483 1483
=========================================
Files 190 190
Lines 4709 4709
Branches 513 513
=========================================
Hits 3831 3831
Misses 723 723
Partials 155 155 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than a small nit, LGTM!
@@ -688,7 +682,7 @@ Below is the sequence diagram outlining the execution of `EditGradeCommand`. | |||
|
|||
|
|||
Step 1: | |||
The `LogicManager` invokes `ViewAssignmentsCommand::execute`, which in turn calls `Model::getFilteredPersonList` and `List<Person>::get` to get the specified Student. | |||
The `LogicManager` invokes `EditGradeCommand::execute`, which in turn calls `Model::getFilteredPersonList` and `List<Person>::get` to get the specified Student. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
docs/DeveloperGuide.md
Outdated
|
||
* 3g1. F.A.K.E.J.A.R.V.I.S. shows an error message. | ||
|
||
Use case resumes at step 2. | ||
|
||
|
||
*{More to be added}* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit, but think we could remove this already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, will delete that :)
# Conflicts: # docs/DeveloperGuide.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits to fix before we can merge this
@@ -173,7 +173,8 @@ Below is a class diagram describing the implementation of `Session` and its resp | |||
|
|||
**Alternative 1 (current choice):** The `CreateSession` feature takes in arguments of varying number of student names. | |||
- Pros:This choice offers a high degree of flexibility when it comes to adding students to a session. You can add any number of students when creating a session, which is essential for accommodating different class sizes and situations. | |||
**Alternative 2:** An alternative design could involve creating two separate constructor methods within the `CreateSession` class. One constructor would be responsible for adding a student to an existing `SessionStudents`, and the other would take an entire `SessionStudents` object as an argument. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should now be StudentSet
after refactoring by wesley
docs/DeveloperGuide.md
Outdated
@@ -173,7 +173,8 @@ Below is a class diagram describing the implementation of `Session` and its resp | |||
|
|||
**Alternative 1 (current choice):** The `CreateSession` feature takes in arguments of varying number of student names. | |||
- Pros:This choice offers a high degree of flexibility when it comes to adding students to a session. You can add any number of students when creating a session, which is essential for accommodating different class sizes and situations. | |||
**Alternative 2:** An alternative design could involve creating two separate constructor methods within the `CreateSession` class. One constructor would be responsible for adding a student to an existing `SessionStudents`, and the other would take an entire `SessionStudents` object as an argument. | |||
|
|||
**Alternative 2:** An alternative design could involve creating two separate constructor methods within the `CreateSession` class. One constructor would be responsible for adding a student to an existing `SessionStudents`, and the other would take an entire `SessionStudents` object as an argument. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to StudentSet
docs/DeveloperGuide.md
Outdated
* Pros: | ||
* Decoupling: Details of interactions between the models are abstracted away. | ||
* Cons: | ||
* Overkill: For a small project like F.A.K.E.J.A.R.V.I.S. this approach may be over-engineered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to remove this part or rephrase a bit to make it look more professional
docs/DeveloperGuide.md
Outdated
|
||
* Cons: | ||
* Resource Intensive: Any edits to the Score(s) of a Graded Test will create new `Person` instances, this may be resource-intensive when done in large-scale. | ||
* Limited Extensibility: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing con
docs/DeveloperGuide.md
Outdated
* Reduce redundancy: Avoids creating new instance for every change to an Object. | ||
* Cons: | ||
* Mutable Objects: Causes the `Person` object to no longer be immutable, giving rise to potential bugs or complications during the integration process. | ||
* Testing/Maintenance Challenges: Requires extra attention when making test cases, to prevent unintended side effects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comma
docs/DeveloperGuide.md
Outdated
@@ -1284,7 +1354,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli | |||
Use case ends. | |||
|
|||
|
|||
**Use case: Adding a student to a consultation** | |||
**Use case 15: Adding a student to a consultation** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to base form i.e. "Add a "
|
||
* 3g. The given score is invalid. | ||
|
||
* 3g1. F.A.K.E.J.A.R.V.I.S. shows an error message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how 3f differs from 3g
docs/DeveloperGuide.md
Outdated
|
||
2. **Phone Number Validation** | ||
* Current Implementation: Currently, any number that is longer than 3 digits are considered valid. It doesn't allow for special characters too. | ||
* Enhancement: Introduce a validation mechanism for phone numbers to ensure that entered phone numbers adhere to a specified format. (e.g SG phone number starts with 8 or 9 and have) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
starts with 8 or 9 and have.... incomplete sentence
docs/DeveloperGuide.md
Outdated
* Enhancement: Implement the functionality to convert data to and from CSV files, enabling users to conveniently import/export data without manual editing. | ||
* Reason: To enhance user convenience and data interchangeability, allowing for seamless integration with external applications that support CSV formats. | ||
* Suggested Fixes: | ||
* Have a `convertCsvToJson` and `convertJsonToCsv` method to convert the files accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think instead of "convert", possibly just abstract out the conversion and just allow users to download either json or csv files?
docs/DeveloperGuide.md
Outdated
|
||
8. **Dynamic Session Number** | ||
* Current Implementation: Session numbers are immutable. (e.g a Session 5 will remain as Session 5 even though Sessions 1-4 are deleted) | ||
* Enhancement: Make the session number dynamic, updating automatically to reflect the current session number even after deleting previous sessions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think no. The idea behind having static session numbers is that it differs from the other features in a sense that each session is labelled a certain session number, rather than by indexing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, will remove this
No description provided.