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

fix edit sequence diagram #207

Merged

Conversation

seadragon2000341
Copy link

  • cr returned
  • updateselectedinternship

@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (a32aed4) 79.55% compared to head (64d1d15) 79.55%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #207   +/-   ##
=========================================
  Coverage     79.55%   79.55%           
+ Complexity      598      596    -2     
=========================================
  Files            80       80           
  Lines          1707     1707           
  Branches        192      188    -4     
=========================================
  Hits           1358     1358           
  Misses          292      292           
  Partials         57       57           

see 5 files with indirect coverage changes

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@potty10
Copy link

potty10 commented Apr 7, 2023

Thanks for the edit. Should there be a method call here?

image

@seadragon2000341
Copy link
Author

Thanks for the edit. Should there be a method call here?

image

Im not too sure about this actually. Because the method call is createEditedInternship(internshipToEdit, EditInternshipDescriptor) so it dosent actually go into EditInternshipDescriptor via the method call

@eugenetangkj
Copy link

@seadragon2000341

The createEditedInternship(internshipToEdit, EditInternshipDescriptor) is a static method of the class EditCommand, so I believe it should be making a call to the class EditCommand instead of an object of EditInternshipDescriptor.

Referring to the tutorial notes, it should look something like this:
image

Does it make more sense if we amend it as such?

@seadragon2000341
Copy link
Author

@eugenetangkj @potty10

Ive changed to this image!

  • edit command calls its own method (create edited internship)
  • edit internshipdescriptor gets destroyed when edit command is destroyed (since editinternshipdescriptor is aprt of edit command)
    image

@eugenetangkj
Copy link

Thanks for the effort! Looks great to merge 👍

@eugenetangkj eugenetangkj merged commit 676f800 into AY2223S2-CS2103T-T14-3:master Apr 10, 2023
@eugenetangkj eugenetangkj added documentation Improvements or additions to documentation Type.Bug priority.High labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation priority.High Type.Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants