-
Notifications
You must be signed in to change notification settings - Fork 1
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
GET/ PATCH/ DELETE/ for stickers #184
Conversation
path: | ||
id: true | ||
cors: true | ||
authorizer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want this one public
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove everything under authorizer? Do any of the other services do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, here's an example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wanted to be clear, do we want stickerGet to be public, or do we want stickerCreate to be public (like registrationPost is), or both? I'm going to try and wrap this ticket up.
expect(response.statusCode).to.be.equal(200); | ||
|
||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After we implement the s3 functions, we will need the tests to confirm that the appropriate functions were run (e.g. we would want the sticker delete
function to run the s3 delete
function, and check that the correct url was deleted)
lib/s3ImageUpload.js
Outdated
} | ||
|
||
let imageData = body.image; | ||
if (body.image.substr(0, 7) === 'base64,') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just to check if the image is encoded in base64? is this a reliable way to check that? And what would happen if its a different encoding?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This If statement just cleans up the input if the string starts with 'base64,'. Also, I think we're just going to make the assumption that the image needs to be encoded in base64 when it is uploaded and transmitted.
TODO:
|
Closing stale PRs in |
🎟️ Ticket(s):
Closes #135, #136, #137
👷 Changes:
💭 Notes:
Any additional things to take into consideration.
Wait! Before you merge, have you checked the following: