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

914 [Feature] - "Add remaining CRUD endpoints to SST" #943

Merged

Conversation

alantao912
Copy link
Contributor

@alantao912 alantao912 commented Sep 3, 2023

Added remaining trainspace CRUD endpoints to SST

What user problem are we solving?
Trainspace creation, deletion, management, and deletion of user uploaded datset.

What solution does this PR provide?
Allowing users to create new, retrieve specific, retrieve all, delete specific trainspace, and delete specific user uploaded dataset using AWS Lambda.

Testing Methodology
Tested API endpoints on locally with postman using a developer account.

Created new trainspace, retrieved it, created several new trainspaces, retrieved all, deleted trainspace, attempted (and successfully failed) to retrieve previously deleted trainspace, and deleted user uploaded data successfully.

Any other considerations

  • More thorough testing may be needed for deleting datasets for S3 buckets, haven't checked false negative case. No exceptions were thrown however.
  • May need to improve exception messages, and exception detection.

@alantao912
Copy link
Contributor Author

Sept 23rd. Latest

@alantao912 alantao912 changed the title 914 feature add the rest of the crud endpoints to sst 914 [Feature] - "Add remaining CRUD endpoints to SST" Sep 22, 2023
Copy link
Member

@karkir0003 karkir0003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks good to me. left a comment

Copy link
Member

@karkir0003 karkir0003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, can you attach a screen recording to show that the api endpoint works and data is updated on trainspace dynamodb correctly?

@alantao912
Copy link
Contributor Author

also, can you attach a screen recording to show that the api endpoint works and data is updated on trainspace dynamodb correctly?

https://youtu.be/aMiK-I8cpqs

Copy link
Member

@karkir0003 karkir0003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for the awesome work on this. @dwu359 will review your pr and leave his comments.

@alantao912 alantao912 requested a review from a team as a code owner September 24, 2023 18:24
Copy link
Member

@karkir0003 karkir0003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added another comment

Copy link
Contributor

@dwu359 dwu359 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks better

Copy link
Contributor

@dwu359 dwu359 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor changes before I do a full review. Also rename these files to be consistent with the rest of the sst code:

  • create_image_trainspace -> create_image
  • create_tabular_trainspace -> create_tabular
  • delete_trainspace -> delete
  • get_all_trainspace -> get_all

@farisdurrani
Copy link
Member

You're quite behind the nextjs branch. Just fix the conflicts and you should be good to go 👍 @alantao912

Copy link

sonarcloud bot commented Nov 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@alantao912 alantao912 added this pull request to the merge queue Nov 11, 2023
Merged via the queue into nextjs with commit 35b6972 Nov 11, 2023
5 checks passed
@alantao912 alantao912 deleted the 914-feature-add-the-rest-of-the-crud-endpoints-to-sst branch November 11, 2023 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add the Rest of the CRUD Endpoints to SST
4 participants