Skip to content

Update readme for hreader response - #13

Merged
imagekitio merged 103 commits into
imagekit-developer:devfrom
KhushbooMer:update-readme-for-hreader-response
Jul 8, 2022
Merged

Update readme for hreader response#13
imagekitio merged 103 commits into
imagekit-developer:devfrom
KhushbooMer:update-readme-for-hreader-response

Conversation

@KhushbooMer

Copy link
Copy Markdown
Contributor

No description provided.

@KhushbooMer
KhushbooMer changed the base branch from master to dev May 27, 2022 04:34
@lgtm-com

lgtm-com Bot commented May 27, 2022

Copy link
Copy Markdown

This pull request introduces 1 alert when merging 8e063f3 into e270701 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed

@imagekitio imagekitio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same for getFileList, only one successful test case is present. No edge cases. We need to have basic error handling test cases for all methods.

@imagekitio imagekitio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Split this huge file imagekit-sdk/src/test/java/io/imagekit/sdk/ImageKitTest.java into separate small files so that it is easy to review test suit. Create separate file names e.g. upload.java, manage->file.java etc. See node.js structure
image

@imagekitio imagekitio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One API missing https://docs.imagekit.io/api-reference/media-api/restore-file-version. Update readme and test cases as well.

server.start();
RestClient.API_BASE_URL = server.url("/").toString();
Map<String, String> options = new HashMap<>();
options.put("limit", "" + 1);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Other parameters are not included. Also if the user passes tags as an array, will it be converted into a comma-separated string by SDK. All this needs to be asserted in test cases.

Comment thread imagekit-sdk/src/test/java/io/imagekit/sdk/ImageKitTest.java Outdated
Comment thread imagekit-sdk/src/test/java/io/imagekit/sdk/ImageKitTest.java Outdated
Comment thread imagekit-sdk/src/test/java/io/imagekit/sdk/ImageKitTest.java Outdated
Comment thread imagekit-sdk/src/test/java/io/imagekit/sdk/ImageKitTest.java Outdated
Comment thread imagekit-sdk/src/test/java/io/imagekit/sdk/ImageKitTest.java Outdated
Comment thread imagekit-sdk/src/test/java/io/imagekit/sdk/ImageKitTest.java Outdated
Comment thread imagekit-sdk/src/test/java/io/imagekit/sdk/ImageKitTest.java Outdated
Comment thread README.md
@imagekitio
imagekitio merged commit ddd8617 into imagekit-developer:dev Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants