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

issue-14: fixed minor bugs found when testing #15

Merged

Conversation

IslaL
Copy link
Contributor

@IslaL IslaL commented Mar 28, 2024

Fixed bugs found when testing with new test suites. Descriptions of each bug is in: #14

Bugs found in OncDelivery will be fixed together later with download issue

@IslaL IslaL added the bug Something isn't working label Mar 28, 2024
@IslaL IslaL self-assigned this Mar 28, 2024
@@ -101,31 +99,43 @@
this.fileSize = strlength(response.Body.Data);
end
%save_as_file doesn't work properly! Use urlwrite instead
[~, saveResult] = urlwrite(uri.EncodedURI,fullfile(outPath, filename));
%saveResult = util.save_as_file(response, outPath, filename, overwrite);
%[~, saveResult] = urlwrite(uri.EncodedURI,fullfile(outPath, filename));

Choose a reason for hiding this comment

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

You can remove this commented code

this.status = 777;
end
elseif s == 202
% Still processing, wait and retry
log.printResponse(jsondecode(response.Body.Data));
%log.printResponse(response.Body.Data);

Choose a reason for hiding this comment

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

And this commented code

[~, saveResult] = urlwrite(uri.EncodedURI,fullfile(outPath, filename));
%saveResult = util.save_as_file(response, outPath, filename, overwrite);
%[~, saveResult] = urlwrite(uri.EncodedURI,fullfile(outPath, filename));
% neither urlwrite nor save_as_file works properly, use websave

Choose a reason for hiding this comment

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

Can you update this comment to make it in line with the comment on line 101?

101 says to use urlwrite, then this says not to use urlwrite

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! I forgot the commented lines

@IslaL IslaL requested a review from KristenMeyerONC April 9, 2024 22:57
@IslaL IslaL merged commit b2901d0 into release-staging-24.03 Apr 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants