-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update DG model and delete feature #55
Update DG model and delete feature #55
Conversation
shaokiat
commented
Oct 15, 2020
- Add Delete feature in developer guide
- Update DeleteSequenceDiagram
- Update ModelClassDiagram and BetterModelClassDiagram
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally well done bro 👍🏽
just one thing i noticed, doesn't our delete command parse an index rather than the module code? or did we decide we are going to change that and i totally forgot LOL
[-> LogicManager : execute("delete 1") | ||
[-> LogicManager : execute("delete c/CS2103T") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("delete 1") | ||
activate AddressBookParser | ||
LogicManager -> GradPadParser : parseCommand("delete c/CS2103T") | ||
activate GradPadParser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think our current delete system still works with indexes, but possibly can KIV for future updates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup for now it still works with indexes but I think we are planning to change it to ModuleCode in the near future so I just change the documentation first.
# Conflicts: # docs/diagrams/DeleteSequenceDiagram.puml # docs/images/DeleteSequenceDiagram.png
Codecov Report
@@ Coverage Diff @@
## master #55 +/- ##
=========================================
Coverage 71.94% 71.94%
Complexity 377 377
=========================================
Files 69 69
Lines 1155 1155
Branches 111 111
=========================================
Hits 831 831
Misses 294 294
Partials 30 30 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM!
Also I think there's a duplicate ModelClassDiagram.png
in the root directory 🤔
docs/DeveloperGuide.md
Outdated
1. Test case: `delete 1`<br> | ||
Expected: First contact is deleted from the list. Details of the deleted contact shown in the status message. Timestamp in the status bar is updated. | ||
1. Test case: `delete CS2103T`<br> | ||
Expected: CS2103T module is deleted from 'Current Modules'. Details of the deleted module shown in the status message. Timestamp in the status bar is updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the timestamp in the status bar refer to ah?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it has got to do with the JavaFX status bar but I don't see it in the GUI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I'll remove it since its not needed.