Add mutation for createRun#75
Conversation
There was a problem hiding this comment.
should we also get presigned get request?
@sbartsa I believe you highlighted that we might need it in testerloop-cli is this still correct?
dlawrynowicz
left a comment
There was a problem hiding this comment.
I think we need to generate runID server side
There was a problem hiding this comment.
I think this mutation should return runID (uuid v4) so it should not be a parameter here.
There was a problem hiding this comment.
will be good to add eslint, not to reformat all files based on user local IDE config. looks like we changed from 2 to 4 spaces
There was a problem hiding this comment.
I think the standard is actually 4 spaces for us, but this file was erroneously on 2 spaces still... but yes ESLint would be helpful!
Yep fair enough - thought it was generated on CLI tool side, but that should be simple enough to implement. As discussed will park this until DB is up and running though. |
|
Changes made in line with discussions and addressing ticket #427: https://trello.com/c/EgAaSeJu/427-build-new-mutation-to-register-new-run-with-graphql-api
ValidationThis directory was created by calling the mutation using a valid This was created using the Invalid requests e.g. missing S3 details, incorrect API key or in-active API key throw appropriate error responses. |
There was a problem hiding this comment.
I think we should make sure that s3Config was not provided here, otherwise we can be in situation that we checked DB we have s3Config, but we are going to use data from s3Config because of those lines
https://github.com/testerloop/testerloop-server/pull/75/files#diff-b7409741fd2ee242c3d3d2e7bf257d72539f5eb8a57889bc1026af19326eb8d5R36
https://github.com/testerloop/testerloop-server/pull/75/files#diff-b7409741fd2ee242c3d3d2e7bf257d72539f5eb8a57889bc1026af19326eb8d5R38
There was a problem hiding this comment.
done - and refactored the api key handling into a util since we'll probably use it elsewhere
dlawrynowicz
left a comment
There was a problem hiding this comment.
Left small comments, looks good!
Mutationtype to schema, along withUploadInfoandFieldtypescreatePresignedPosttoS3ServicedatasourceforcreateRunMutation.createRunresolverThe directory here: https://s3.console.aws.amazon.com/s3/buckets/otf-lambda-results?prefix=testClient2/®ion=eu-west-3 was added through the
testerloop-servergraphQL API, using one call, and one link, to upload multiple files.