forked from AY2324S1-CS2103T-T09-2/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Branch-Documentation' of https://github.com/Mahidharah/tp…
… into Branch-Documentation * 'Branch-Documentation' of https://github.com/Mahidharah/tp: (36 commits) fix checkstyles fix test cases Undo Redo Command test cases Fix failing test Fix import checkstyle issues Fix checkstyle issues VersionedAddressBook test cases Update DeveloperRoles.txt Update ClientRoles.txt Add tests for edit project command and mark/unmark commands delete client and developer roles test cases add-client role and add developer role tests Write tests for edit commands fix CI fix checkstyles fix CI Add use cases and planned enhancements fix checkstyles Add and delete role's developer guide and user stories Undo/Redo feature DG ... # Conflicts: # DeveloperRoles.txt # docs/UserGuide.md
- Loading branch information
Showing
83 changed files
with
3,567 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
Frontend Developer | ||
Backend Developer | ||
Developer | ||
r/ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
@startuml | ||
'https://plantuml.com/sequence-diagram | ||
|
||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant "d :AddDeveloperRoleCommandParser" as AddDeveloperRoleCommandParser LOGIC_COLOR | ||
participant "d :AddDeveloperRoleCommand" as AddDeveloperRoleCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":VersionedAddressBook" as VersionedAddressBook MODEL_COLOR | ||
participant ":DeveloperRoles" as DeveloperRoles MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("add-developer-role Tester") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("add-developer-role Tester") | ||
activate AddressBookParser | ||
|
||
create AddDeveloperRoleCommandParser | ||
AddressBookParser -> AddDeveloperRoleCommandParser | ||
activate AddDeveloperRoleCommandParser | ||
|
||
AddDeveloperRoleCommandParser --> AddressBookParser | ||
deactivate AddDeveloperRoleCommandParser | ||
|
||
AddressBookParser -> AddDeveloperRoleCommandParser : parse("Tester") | ||
activate AddDeveloperRoleCommandParser | ||
|
||
create AddDeveloperRoleCommand | ||
AddDeveloperRoleCommandParser -> AddDeveloperRoleCommand | ||
activate AddDeveloperRoleCommand | ||
|
||
AddDeveloperRoleCommand --> AddDeveloperRoleCommandParser | ||
deactivate AddDeveloperRoleCommand | ||
|
||
AddDeveloperRoleCommandParser --> AddressBookParser | ||
deactivate AddDeveloperRoleCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> AddDeveloperRoleCommand : execute() | ||
activate AddDeveloperRoleCommand | ||
|
||
AddDeveloperRoleCommand -> DeveloperRoles : isValidRole("Tester") | ||
activate DeveloperRoles | ||
|
||
DeveloperRoles --> AddDeveloperRoleCommand : boolean true | ||
deactivate DeveloperRoles | ||
|
||
AddDeveloperRoleCommand -> DeveloperRoles : addDeveloperRole(new DeveloperRoles("Tester)) | ||
activate DeveloperRoles | ||
|
||
DeveloperRoles -> DeveloperRoles : saveDeveloperRoles() | ||
DeveloperRoles --> AddDeveloperRoleCommand | ||
|
||
AddDeveloperRoleCommand -> Model : commitAddressBook(model, successMessage, TabIndex) | ||
activate Model | ||
|
||
Model -> VersionedAddressBook : commit() | ||
activate VersionedAddressBook | ||
|
||
VersionedAddressBook --> Model | ||
deactivate VersionedAddressBook | ||
|
||
Model --> AddDeveloperRoleCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
AddDeveloperRoleCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> AddDeveloperRoleCommand | ||
deactivate CommandResult | ||
|
||
AddDeveloperRoleCommand --> LogicManager : result | ||
deactivate AddDeveloperRoleCommand | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
@startuml | ||
'https://plantuml.com/sequence-diagram | ||
|
||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant "d :DeleteDeveloperRoleCommandParser" as DeleteDeveloperRoleCommandParser LOGIC_COLOR | ||
participant "d :DeleteDeveloperRoleCommand" as DeleteDeveloperRoleCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":VersionedAddressBook" as VersionedAddressBook MODEL_COLOR | ||
participant ":DeveloperRoles" as DeveloperRoles MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("delete-developer-role Tester") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("delete-developer-role Tester") | ||
activate AddressBookParser | ||
|
||
create DeleteDeveloperRoleCommandParser | ||
AddressBookParser -> DeleteDeveloperRoleCommandParser | ||
activate DeleteDeveloperRoleCommandParser | ||
|
||
DeleteDeveloperRoleCommandParser --> AddressBookParser | ||
deactivate DeleteDeveloperRoleCommandParser | ||
|
||
AddressBookParser -> DeleteDeveloperRoleCommandParser : parse("Tester") | ||
activate DeleteDeveloperRoleCommandParser | ||
|
||
create DeleteDeveloperRoleCommand | ||
DeleteDeveloperRoleCommandParser -> DeleteDeveloperRoleCommand | ||
activate DeleteDeveloperRoleCommand | ||
|
||
DeleteDeveloperRoleCommand --> DeleteDeveloperRoleCommandParser | ||
deactivate DeleteDeveloperRoleCommand | ||
|
||
DeleteDeveloperRoleCommandParser --> AddressBookParser | ||
deactivate DeleteDeveloperRoleCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> DeleteDeveloperRoleCommand : execute() | ||
activate DeleteDeveloperRoleCommand | ||
|
||
DeleteDeveloperRoleCommand -> DeveloperRoles : isRemovableRole("Tester") | ||
activate DeveloperRoles | ||
|
||
DeveloperRoles --> DeleteDeveloperRoleCommand : boolean true | ||
deactivate DeveloperRoles | ||
|
||
DeleteDeveloperRoleCommand -> DeveloperRoles : deleteDeveloperRole(new DeveloperRoles("Tester)) | ||
activate DeveloperRoles | ||
|
||
DeveloperRoles -> DeveloperRoles : saveDeveloperRoles() | ||
DeveloperRoles --> DeleteDeveloperRoleCommand | ||
|
||
DeleteDeveloperRoleCommand -> Model : commitAddressBook(model, successMessage, TabIndex) | ||
activate Model | ||
|
||
Model -> VersionedAddressBook : commit() | ||
activate VersionedAddressBook | ||
|
||
VersionedAddressBook --> Model | ||
deactivate VersionedAddressBook | ||
|
||
Model --> DeleteDeveloperRoleCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
DeleteDeveloperRoleCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> DeleteDeveloperRoleCommand | ||
deactivate CommandResult | ||
|
||
DeleteDeveloperRoleCommand --> LogicManager : result | ||
deactivate DeleteDeveloperRoleCommand | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":FindCommandParser" as FindCommandParser LOGIC_COLOR | ||
participant "d:FindCommand" as FindCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("find-developer n/Alice") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("find-developer n/Alice") | ||
activate AddressBookParser | ||
|
||
create FindCommandParser | ||
AddressBookParser -> FindCommandParser | ||
activate FindCommandParser | ||
|
||
FindCommandParser --> AddressBookParser | ||
deactivate FindCommandParser | ||
|
||
AddressBookParser -> FindCommandParser : parse("Alice") | ||
activate FindCommandParser | ||
|
||
create FindCommand | ||
FindCommandParser -> FindCommand | ||
activate FindCommand | ||
|
||
FindCommand --> FindCommandParser : d | ||
deactivate FindCommand | ||
|
||
FindCommandParser --> AddressBookParser : d | ||
deactivate FindCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
FindCommandParser -[hidden]-> AddressBookParser | ||
destroy FindCommandParser | ||
|
||
AddressBookParser --> LogicManager : d | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> FindCommand : execute() | ||
activate FindCommand | ||
|
||
FindCommand -> Model : FindDeveloper(1) | ||
activate Model | ||
|
||
Model --> FindCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
FindCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> FindCommand | ||
deactivate CommandResult | ||
|
||
FindCommand --> LogicManager : result | ||
deactivate FindCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant "d :ListDeveloperCommand" as ListDeveloperCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("list-developer") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("list-developer") | ||
activate AddressBookParser | ||
|
||
create ListDeveloperCommand | ||
AddressBookParser -> ListDeveloperCommand | ||
activate ListDeveloperCommand | ||
|
||
ListDeveloperCommand --> AddressBookParser : d | ||
deactivate ListDeveloperCommand | ||
|
||
AddressBookParser --> LogicManager : d | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> ListDeveloperCommand : execute() | ||
activate ListDeveloperCommand | ||
|
||
ListDeveloperCommand -> Model : updateFilteredDeveloperList(PREDICATE_SHOW_ALL_DEVELOPERS) | ||
activate Model | ||
|
||
Model --> ListDeveloperCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
ListDeveloperCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> ListDeveloperCommand | ||
deactivate CommandResult | ||
|
||
ListDeveloperCommand --> LogicManager : result | ||
deactivate ListDeveloperCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
|
||
@enduml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@startuml | ||
'https://plantuml.com/activity-diagram-beta | ||
|
||
start | ||
:undo | ||
:new page; | ||
if (Page.onSecurityCheck) then (true) | ||
:Page.onInit(); | ||
if (isForward?) then (no) | ||
:Process controls; | ||
if (continue processing?) then (no) | ||
stop | ||
endif | ||
|
||
if (isPost?) then (yes) | ||
:Page.onPost(); | ||
else (no) | ||
:Page.onGet(); | ||
endif | ||
:Page.onRender(); | ||
endif | ||
else (false) | ||
endif | ||
|
||
if (do redirect?) then (yes) | ||
:redirect process; | ||
else | ||
if (do forward?) then (yes) | ||
:Forward request; | ||
else (no) | ||
:Render page template; | ||
endif | ||
endif | ||
|
||
stop | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@startuml | ||
'https://plantuml.com/activity-diagram-beta | ||
|
||
start | ||
:get the full developer list; | ||
|
||
if (check is any developer using this role) then (there are developers using this role) | ||
:throw developer still using error; | ||
stop | ||
endif | ||
if (check is this role one of the pre-defined roles) then (is pre-defined role) | ||
:throw cannot be deleted error; | ||
stop | ||
endif | ||
if (check is this role in the list of existing roles) then (role does not exist) | ||
:throw role does not exist error; | ||
stop | ||
endif | ||
:delete role from existing list; | ||
stop | ||
|
||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.