Skip to content

Conversation

@janvanrijn
Copy link
Member

Fixed list_all function:

  • changed handling of the catched error (more restrictive)
  • changed handling of the number of results (required additional constant 'BATCH_SIZE_ORIG')
  • indicated the constant variables by capitalized naming convention (LIMIT and BATCH_SIZE_ORIG)
  • made it protected (naming convention to start with underscore)
  • added unit tests for all individual functions

@janvanrijn janvanrijn requested a review from mfeurer May 3, 2018 16:30
Copy link
Collaborator

@mfeurer mfeurer 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. You could remove the cycle variable as it is always set to True and have a while True loop. Also, please note in the changelog that you fixed this bug. Finally, maybe it would be good to add a unit test which ensures that the number of downloaded results equals the number of actual results if the batch size is lower (for example by using the mock library in order to not spam the server).

@janvanrijn
Copy link
Member Author

Agreed to all.

Except that I don't know mock that well, and won't be able to invest too much time right now. I added this test to the server.

@mfeurer mfeurer merged commit c58744a into develop May 4, 2018
@janvanrijn janvanrijn deleted the fix_listing branch May 4, 2018 15:15
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