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

[Internal] Update Jobs GetJob API to support paginated responses #403

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gkiko10
Copy link
Contributor

@gkiko10 gkiko10 commented Jan 23, 2025

What changes are proposed in this pull request?

Introduces logic in extension for jobs GetJob call that paginates tasks and other arrays in the response. This change is necessary for SDK and API 2.2 compatibility. API 2.2 serves paginated responses as long as next_page_token field is present in the response. The pagination logic is not exposed to the customer.

How is this tested?

I ran unit test from src/test/java/com/databricks/sdk/mixin/JobsExtTest.java. I have not done manual tests against real data

@gkiko10 gkiko10 temporarily deployed to test-trigger-is January 23, 2025 14:29 — with GitHub Actions Inactive
@renaudhartert-db renaudhartert-db self-requested a review February 3, 2025 14:27
Copy link

github-actions bot commented Feb 6, 2025

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-java

Inputs:

  • PR number: 403
  • Commit SHA: 8b9babc08d2808768b61500d452c8062ef512af2

Checks will be approved automatically on success.

@gkiko10 gkiko10 deployed to test-trigger-is February 6, 2025 18:21 — with GitHub Actions Active
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.

1 participant