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

Edit applicant entry #88

Conversation

CelestineTan03
Copy link

Closes #20

@CelestineTan03 CelestineTan03 added this to the v1.2b milestone Oct 18, 2023
@netlify
Copy link

netlify bot commented Oct 18, 2023

Deploy Preview for shiny-daffodil-45f25f canceled.

Name Link
🔨 Latest commit f822143
🔍 Latest deploy log https://app.netlify.com/sites/shiny-daffodil-45f25f/deploys/652fe6469e6ae50008e8541b

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #88 (f822143) into master (2fffdfb) will increase coverage by 0.13%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #88      +/-   ##
============================================
+ Coverage     73.97%   74.11%   +0.13%     
- Complexity      452      458       +6     
============================================
  Files            77       77              
  Lines          1483     1491       +8     
  Branches        139      141       +2     
============================================
+ Hits           1097     1105       +8     
  Misses          351      351              
  Partials         35       35              
Files Coverage Δ
...va/seedu/staffsnap/logic/commands/EditCommand.java 97.53% <100.00%> (+0.06%) ⬆️
...main/java/seedu/staffsnap/model/ApplicantBook.java 84.37% <100.00%> (+1.04%) ⬆️
src/main/java/seedu/staffsnap/model/Model.java 100.00% <ø> (ø)
.../main/java/seedu/staffsnap/model/ModelManager.java 100.00% <100.00%> (ø)
...staffsnap/model/applicant/UniqueApplicantList.java 79.31% <100.00%> (+0.73%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link

@craigtonlian craigtonlian left a comment

Choose a reason for hiding this comment

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

Lgtm 😄

Minor typo to fix, but the other test cases look great. Thanks for increasing our coverage!

@@ -78,10 +78,17 @@ public CommandResult execute(Model model) throws CommandException {
Applicant applicantToEdit = lastShownList.get(index.getZeroBased());
Applicant editedApplicant = createEditedApplicant(applicantToEdit, editApplicantDescriptor);

// Check if edited applicant has the identity as another existing applicant

Choose a reason for hiding this comment

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

Did you mean "if edited applicant has the same identity as another applicant"?

requireNonNull(applicant);
return applicants.numberOfDuplicates(applicant) > 1;
}

Choose a reason for hiding this comment

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

This duplicate check seems necessary due to the way we are defining identity of applicants. Kudos for spotting this bug! 🎉

Copy link

@AustinHuang1203 AustinHuang1203 left a comment

Choose a reason for hiding this comment

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

lgtm

@AustinHuang1203 AustinHuang1203 merged commit 7cfd650 into AY2324S1-CS2103T-W08-1:master Oct 19, 2023
9 checks passed
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.

Edit applicant entry details
3 participants