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

Added Undo Feature #191

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Conversation

AryanG01
Copy link

@AryanG01 AryanG01 commented Nov 2, 2023

Undo Functionality

Undo Command (UndoCommand)

  • Implemented a new command to revert the last deletion of bookings.
  • When executed, the command adds previously deleted bookings back to the system.

Delete Command (DeleteCommand)

  • Modified to keep track of the last deletions and store them for possible undo operations.
  • Added the deleted bookings to a list for undo functionality.

ModelManager (ModelManager) - Implementation of Undo Mechanism

  • Maintained a list (deletedBookings) to store deleted bookings.
  • Implemented methods (addToDeletedBookings, undoDeletion) to add deleted bookings to the list and perform undo operations.

@AryanG01 AryanG01 added this to the v1.3 milestone Nov 2, 2023
@AryanG01 AryanG01 merged commit 229e51c into AY2324S1-CS2103T-F10-1:master Nov 2, 2023
3 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.

1 participant