bounswe / bounswe2023group1

Disaster Response Platform, Software Development
8 stars 2 forks source link

Create Sequence Diagram: Profile Register - Verification #144

Closed kubraaksux closed 1 year ago

kubraaksux commented 1 year ago

Creating a sequence diagram using plantUML for an admin reviewing applications as per #117.

@startuml actor User participant Profile database Database

User -> Profile: register(username, password, email) Profile -> Database: addUser(username, password, email)

alt successful case

Database -> Profile: isUserAdded (boolean):
Profile -> User: verification_code
User -> Profile: verifyEmail(verification_code)
Profile -> Database: updateUserStatus(username, verified)

Database -> Profile: isUserStatusUpdated (boolean):
Profile -> User: boolean (verification successful)

else some kind of failure

    Profile -> User: boolean (verification failed)

else Another type of failure

Profile -> User: boolean (registration unsuccessful)

end @enduml

kubraaksux commented 1 year ago

seqq1

ilgazer commented 1 year ago

Nice work! I think the only slight change this needs is adding the stickman symbol to the actor. You can do that by simply saying actor user immediately after the @startuml. Also, were we supposed to have the database interactions for this milestone? We didn't have a database in our UML diagram so I made my diagrams without a database.

kubraaksux commented 1 year ago

I first made my diagrams without database, then @GulbeycanCagri commented on that about it is better with database and our slides have that database view. So I changed it.

kubraaksux commented 1 year ago

seqqqqqq1

kubraaksux commented 1 year ago

@ilgazer thank you for your comments. This is the final version of my sequence diagram

ilgazer commented 1 year ago

Ok perfect, this looks correct :)