Skip to content
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

Merged
merged 12 commits into from
Nov 13, 2023

Conversation

raydenlim
Copy link

No description provided.

@raydenlim raydenlim added priority.High Must do severity.High A flaw that affects most users and causes major problems for users type.Documentation Documentation labels Nov 13, 2023
@raydenlim raydenlim added this to the v1.4 milestone Nov 13, 2023
@raydenlim raydenlim self-assigned this Nov 13, 2023
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6f53b7d) 81.35% compared to head (5563b4b) 81.35%.
Report is 11 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

Copy link

@Originalidk Originalidk left a 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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!


* 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}*

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will delete that :)

Copy link

@ldinghan ldinghan left a 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.

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

@@ -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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to StudentSet

* 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.

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


* 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:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing con

* 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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comma

@@ -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**

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.

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


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)

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

* 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.

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?


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.

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will remove this

@raydenlim raydenlim merged commit ced73a7 into AY2324S1-CS2103T-T15-1:master Nov 13, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.High Must do severity.High A flaw that affects most users and causes major problems for users type.Documentation Documentation
Projects
Status: ✅ Done
3 participants