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

Team Fix #171

Merged
merged 4 commits into from
Oct 31, 2022
Merged

Team Fix #171

merged 4 commits into from
Oct 31, 2022

Conversation

@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2022

Codecov Report

Base: 39.13% // Head: 39.07% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (7dd637c) compared to base (af503b5).
Patch coverage: 34.88% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #171      +/-   ##
============================================
- Coverage     39.13%   39.07%   -0.07%     
- Complexity      457      471      +14     
============================================
  Files           143      147       +4     
  Lines          2619     2672      +53     
  Branches        327      340      +13     
============================================
+ Hits           1025     1044      +19     
- Misses         1529     1551      +22     
- Partials         65       77      +12     
Impacted Files Coverage Δ
...a/seedu/address/logic/commands/AddTeamCommand.java 15.38% <ø> (ø)
...eedu/address/logic/commands/DeleteTeamCommand.java 8.69% <0.00%> (-1.31%) ⬇️
.../seedu/address/logic/commands/EditTeamCommand.java 16.36% <0.00%> (ø)
...a/seedu/address/logic/commands/SetTeamCommand.java 8.69% <0.00%> (-1.31%) ⬇️
...in/java/seedu/address/logic/parser/ParserUtil.java 53.84% <0.00%> (-9.80%) ⬇️
src/main/java/seedu/address/ui/TeamCard.java 0.00% <0.00%> (ø)
...rc/main/java/seedu/address/ui/TeamDetailsCard.java 0.00% <0.00%> (ø)
...edu/address/logic/parser/DescriptionConverter.java 25.00% <25.00%> (ø)
.../seedu/address/logic/parser/TeamNameConverter.java 25.00% <25.00%> (ø)
src/main/java/seedu/address/model/team/Team.java 40.21% <33.33%> (-1.62%) ⬇️
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link

@marcuspang marcuspang left a comment

Choose a reason for hiding this comment

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

Some minor nits


public static final TeamName DEFAULT_NAME = new TeamName("default");

public final String teamName;

Choose a reason for hiding this comment

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

Are we making Name class in the models folder which the Person, Team, and Task models are inheriting from?

Copy link
Author

Choose a reason for hiding this comment

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

I think better not bah, better to create custom classes for the names that Person Teams and Tasks use because they might have different validation regex

public static boolean isValidTeamDescription(String test) {
return test.matches(DESCRIPTION_VALIDATION_REGEX);
}

/**
* Returns true if both teams have the same name.

Choose a reason for hiding this comment

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

Can you rename this function to hasSameTeamName instead?

Copy link
Author

Choose a reason for hiding this comment

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

image

I think its better to leave it as isSameTeam, since Person has a isSamePerson method which defines weak equality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment