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

Refactor class names #98

Merged

Conversation

marcustw
Copy link

Refactor class names

@codecov-io
Copy link

codecov-io commented Oct 10, 2020

Codecov Report

Merging #98 into master will not change coverage.
The diff coverage is 78.01%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #98   +/-   ##
=========================================
  Coverage     75.95%   75.95%           
  Complexity      719      719           
=========================================
  Files           109      109           
  Lines          2071     2071           
  Branches        225      225           
=========================================
  Hits           1573     1573           
  Misses          444      444           
  Partials         54       54           
Impacted Files Coverage Δ Complexity Δ
src/main/java/atas/MainApp.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
src/main/java/atas/commons/core/Messages.java 75.00% <ø> (ø) 2.00 <0.00> (ø)
src/main/java/atas/logic/parser/ParserUtil.java 97.67% <ø> (ø) 17.00 <0.00> (ø)
...rc/main/java/atas/model/attendance/Attributes.java 85.71% <ø> (ø) 11.00 <0.00> (ø)
src/main/java/atas/model/student/Email.java 80.00% <ø> (ø) 6.00 <0.00> (?)
...rc/main/java/atas/model/student/Matriculation.java 80.00% <ø> (ø) 6.00 <0.00> (?)
src/main/java/atas/model/student/Name.java 80.00% <ø> (ø) 6.00 <0.00> (?)
src/main/java/atas/model/tag/Tag.java 80.00% <ø> (ø) 5.00 <0.00> (ø)
src/main/java/atas/model/util/SampleDataUtil.java 25.00% <0.00%> (ø) 1.00 <0.00> (ø)
.../main/java/atas/storage/JsonAdaptedAttributes.java 64.00% <ø> (ø) 10.00 <0.00> (ø)
... and 41 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d567fea...effdabf. Read the comment docs.

@erisjacey erisjacey added this to the v1.2.1 milestone Oct 12, 2020
Copy link

@nweiyue nweiyue left a comment

Choose a reason for hiding this comment

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

LGTM! Just some nits.

@@ -25,7 +25,7 @@ title: Developer Guide
* [Glossary](#glossary)
* [**Appendix: Instructions for manual testing**](#appendix_manual_testing)
* [Launch and shutdown](#launch_shutdown)
* [Deleting a person](#deleting_a_person)
* [Deleting a student](#deleting_a_studentn)
Copy link

Choose a reason for hiding this comment

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

Should "studentn" be "student instead?

@@ -5,7 +5,7 @@ title: "Tutorial: Adding a command"

Let's walk you through the implementation of a new command — `remark`.

This command allows users of the AddressBook application to add optional remarks to people in their address book and edit it if required. The command should have the following format:
This command allows users of the StudentList application to add optional remarks to people in their student list and edit it if required. The command should have the following format:
Copy link

Choose a reason for hiding this comment

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

Should people be "student' instead?

model.setPerson(personToEdit, editedPerson);
model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);
model.setStudent(studentToEdit, editedStudent);
model.updateFilteredStudentList(PREDICATE_SHOW_ALL_PERSONS);
Copy link

Choose a reason for hiding this comment

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

Should the constant messages be renamed as well? I've noticed this issue in other places as well.

src/main/java/atas/storage/AtasStorage.java Outdated Show resolved Hide resolved
src/main/java/atas/storage/AtasStorage.java Outdated Show resolved Hide resolved
src/main/java/atas/storage/JsonAtasStorage.java Outdated Show resolved Hide resolved
src/main/java/atas/storage/StorageManager.java Outdated Show resolved Hide resolved
…ass-names

# Conflicts:
#	src/test/java/atas/logic/commands/sessionlist/EditSessionCommandTest.java
#	src/test/java/atas/logic/commands/sessionlist/session/ParticipateCommandTest.java
#	src/test/java/atas/logic/commands/sessionlist/session/PresenceCommandTest.java
#	src/test/java/atas/logic/commands/studentlist/DeleteSessionCommandTest.java
#	src/test/java/atas/logic/parser/AtasParserTest.java
#	src/test/java/atas/logic/parser/ParserUtilTest.java
@@ -19,7 +19,7 @@ activate model MODEL_COLOR
model -[MODEL_COLOR]-> logic
deactivate model

logic -[LOGIC_COLOR]> storage : saveAddressBook(addressBook)
logic -[LOGIC_COLOR]> storage : saveAddressBook(studentList)

Choose a reason for hiding this comment

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

Should this be something like saveStudentList?

@@ -180,7 +180,7 @@ Recall from the User Guide that the `edit` command has the format: `edit INDEX [
* {@code JsonSerializableAddressBook}.
*/
public JsonSerializableAddressBook(ReadOnlyAddressBook source) {

Choose a reason for hiding this comment

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

Maybe change this to JsonSerializableStudentList and correspondingly ReadOnlyStudentList?

src/main/java/atas/model/UserPrefs.java Show resolved Hide resolved
src/main/java/atas/storage/StorageManager.java Outdated Show resolved Hide resolved
src/test/java/atas/logic/LogicManagerTest.java Outdated Show resolved Hide resolved
Copy link

@erisjacey erisjacey left a comment

Choose a reason for hiding this comment

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

LGTM!

@marcustw marcustw merged commit b092c4d into AY2021S1-CS2103T-W16-4:master Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants