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

Iterating over multi-page job results failed #145

Merged
merged 1 commit into from
Apr 2, 2020

Conversation

hvt
Copy link
Contributor

@hvt hvt commented Apr 2, 2020

scrollToken -> pageCursor

Description

The job result iterator used the (probably deprecated) response's page.scrollToken value. This PR changes that according to the current docs (and prod implementation).

Motivation and Context

Iterating over multiple pages (i.e. multiple /query/v2/jobResults/* requests) does not work.

How Has This Been Tested?

Just locally, no idea if the test suite tests this, probably CI finds out.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

@hvt hvt changed the title Iterating over mutli-page job results failed Iterating over multi-page job results failed Apr 2, 2020
Copy link
Member

@sserrata sserrata 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 - scrollToken was deprecated in QA/STG and not ported into production. Thanks!

@sserrata sserrata merged commit 754b589 into PaloAltoNetworks:master Apr 2, 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

2 participants