QA Assessment (#2) - #3
Open
moonyc wants to merge 1 commit into
Open
Conversation
* QA Assessment * Add GH Action
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Notes:
127.0.0.1tolocalhostinserver.js::corsOptions)transaction.controller.js::createneeds anisNaN(req.body.amount)checkThe Case Study has been approached with a focus on the Transactions API, the ratio being: executing transactions coherently is the core of a bank system simulation.
A transaction consists of a work unit comprising multiple database operations.
All the operations in its body must run successfully, or the transaction will fail and roll back.
When a transaction fails, the state of the database should remain unaffected. The DB state is bound to be valid and unavoidably consistent.
Concurrent transactions should never affect each other, and the data written by a successful transaction must be recorded in persistent storage.
The Transactions API has been tested with these principles in mind.
Below are a couple of particularly problematic bugs:
(N.B.: a green check mark means "done", not "success")
Backend ✅🚀😼🫡
/users ✅🚀😼
Create User - POST /users ✅😼
List Users - GET /users ✅😼
Find User - GET /users/{id} ✅😼
Top up Account - PUT /users/{id} ✅😼
Delete User - DELETE /users/{id} ✅😼
/transactions ✅🚀😼
List Transactions - GET /transactions ✅😼
List User Transactions - GET /transactions/{userId}
ordered by createdAt ✅
Create Transaction - POST /transactions ✅😼
Frontend ✅🚀😼🫡
/users (homepage) ✅😼
/users/{id} ✅😼
/create ✅😼
string ? amount = 0 ✅
/transfer/{id} ✅😼