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

API-16: Support for FS style upload workflow #34

Merged
merged 12 commits into from Dec 29, 2020
Merged

Conversation

Arpit-Sharma-USC
Copy link
Contributor

  • logic to support new FS api based file upload
  • prune amazon s3 logic

JIRA

- new fs upload workflow
- remove old aws s3 dependencies
- tests
@Arpit-Sharma-USC Arpit-Sharma-USC marked this pull request as draft December 10, 2020 16:44
@Arpit-Sharma-USC Arpit-Sharma-USC marked this pull request as ready for review December 14, 2020 12:55
src/Bynder/Api/Impl/AbstractRequestHandler.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/AbstractRequestHandler.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/AbstractRequestHandler.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/OAuth2/RequestHandler.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/PermanentTokens/RequestHandler.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/PermanentTokens/RequestHandler.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/OAuth2/RequestHandler.php Outdated Show resolved Hide resolved
-get ride of state variables
- cleanup RequestHandler
- format tests
src/Bynder/Api/Impl/AbstractRequestHandler.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/AbstractRequestHandler.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/OAuth2/RequestHandler.php Outdated Show resolved Hide resolved
- remove fileID and correlationId return from uploadFile
- clean up doc comments
- clean up fileSha256 usage
-revert AbstractRequestHandler (no raw response needed anymore)
- add brandId non-null check
- test for invalid brandId
- clean the header updation a little
Copy link

@githuib githuib left a comment

Choose a reason for hiding this comment

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

Nice work! Have some comments still mainly regarding the save media calls.

src/Bynder/Api/Impl/Upload/FileUploader.php Outdated Show resolved Hide resolved
tests/AssetBank/FileUploaderTest.php Show resolved Hide resolved
tests/AssetBank/FileUploaderTest.php Outdated Show resolved Hide resolved
tests/AssetBank/FileUploaderTest.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/Upload/FileUploader.php Outdated Show resolved Hide resolved
- change filePath from a request param to a method param
- recycle code in tests
- fix saveMediaAsync for mediaId and brandId
- fix tests per the changes
- update sample and readme with new uploadFileAsync usage
Copy link

@githuib githuib 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! Just some comments on things that can or should be left out.

src/Bynder/Api/Impl/Upload/FileUploader.php Outdated Show resolved Hide resolved
src/Bynder/Api/Impl/Upload/FileUploader.php Outdated Show resolved Hide resolved
@Arpit-Sharma-USC
Copy link
Contributor Author

Looks good! Just some comments on things that can or should be left out.

Awesome thanks for the review 😄

- prune upload intent for sdks
- remove server-ignored form_params
@Arpit-Sharma-USC Arpit-Sharma-USC changed the base branch from master to FS_upload_dev December 29, 2020 10:44
@Arpit-Sharma-USC Arpit-Sharma-USC merged commit cc24f66 into FS_upload_dev Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants