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

Fix iterator bug for uploading new file versions #531

Merged
merged 5 commits into from
Aug 13, 2020

Conversation

sujaygarlanka
Copy link
Contributor

Uploading a new file version, returns an iterable response. Before we added support for metadata query, we only created an iterator for iterable responses that were returned from a GET request. Once we added metadata query support, we started creating iterators for iterable responses that were returned from a POST request as well. Since uploading a new file is a POST request, a iterator is now created from its response. This is causing some issues. This simple fix will resolve the issue.

@coveralls
Copy link
Collaborator

coveralls commented Aug 11, 2020

Pull Request Test Coverage Report for Build 2485

  • 1 of 2 (50.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.06%) to 96.919%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/util/paging-iterator.js 1 2 50.0%
Totals Coverage Status
Change from base Build 2477: -0.06%
Covered Lines: 2344
Relevant Lines: 2382

💛 - Coveralls

@sujaygarlanka sujaygarlanka merged commit 69b1387 into master Aug 13, 2020
@sujaygarlanka sujaygarlanka deleted the fix-interator-uploading-files branch August 13, 2020 20:44
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.

3 participants