Conversation
Adityya-K
left a comment
There was a problem hiding this comment.
I have reviewed the backend, another lead will review the front end! Great first push, just some changes with error logging, unnecessary overhead and reused functionality
backend/api/endpoints/command.py
Outdated
| else: | ||
| db.delete(item_to_delete) | ||
| db.commit() | ||
| query = select(Command) |
There was a problem hiding this comment.
This seems like repeated functionality, you can use the get_commands() function here!
| end_time = time.perf_counter() | ||
| execution_time = end_time - start_time | ||
|
|
||
| logger_setup() |
There was a problem hiding this comment.
We shouldn't be calling these functions on every dispatch since we are just starting and opening the logger over and over again which is unnecessary overhead.
| """ | ||
| # TODO: (Member) Implement this method | ||
| num_values = 0 | ||
| if self.params != None: |
There was a problem hiding this comment.
Try making these ValueError more descriptive by adding a message string within brackets ValueError("Something went wrong") (of course, make the message descriptive)
Adityya-K
left a comment
There was a problem hiding this comment.
LGTM! Not closing, in case the frontend is reviewed.
Purpose
Completed the GS on-boarding task. Include a screenshot of the front-end of the application.
New Changes
Backend
Frontend
Testing