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 GetRun API to support paginated responses for jobs and ForEach tasks #386

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

gkiko10
Copy link
Contributor

@gkiko10 gkiko10 commented Nov 8, 2024

What changes are proposed in this pull request?

Introduces extension for jobs getRun call that paginates tasks and iterations arrays in the response and returns aggregated response to the caller. This change is necessary to prepare for jobs API 2.2 release that serves paginated response. Pagination is over once the next_page_token is absent from the response. The pagination logic is not exposed to the customer.

How is this tested?

Unit tests

Copy link
Contributor

@renaudhartert-db renaudhartert-db left a comment

Choose a reason for hiding this comment

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

Could you undo the changes in WorkspaceClient.java? These will be done automatically once we have updated the code generation template.

Copy link

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: 386
  • Commit SHA: 2acb954b11d2097bf710bbc76c2f7753319002fd

Checks will be approved automatically on success.

@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/11859553955

@renaudhartert-db renaudhartert-db added this pull request to the merge queue Nov 15, 2024
Merged via the queue into databricks:main with commit 4db2b8b Nov 15, 2024
15 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Nov 20, 2024
### Internal Changes

* Update Jobs GetRun API to support paginated responses for jobs and
ForEach tasks
([#386](#386)).


### API Changes:

* Added `servicePrincipalClientId` field for
`com.databricks.sdk.service.apps.App`.
* Added `azureServicePrincipal`, `gcpServiceAccountKey` and `readOnly`
fields for `com.databricks.sdk.service.catalog.CreateCredentialRequest`.
* Added `azureServicePrincipal`, `readOnly` and `usedForManagedStorage`
fields for `com.databricks.sdk.service.catalog.CredentialInfo`.
* Added `azureServicePrincipal` and `readOnly` fields for
`com.databricks.sdk.service.catalog.UpdateCredentialRequest`.
* Added `externalLocationName`, `readOnly` and `url` fields for
`com.databricks.sdk.service.catalog.ValidateCredentialRequest`.
* Added `isDir` field for
`com.databricks.sdk.service.catalog.ValidateCredentialResponse`.
* Changed `createCredential()` and
`generateTemporaryServiceCredential()` methods for
`workspaceClient.credentials()` service with new required argument
order.
* Changed `accessConnectorId` field for
`com.databricks.sdk.service.catalog.AzureManagedIdentity` to be
required.
* Changed `accessConnectorId` field for
`com.databricks.sdk.service.catalog.AzureManagedIdentity` to be
required.
* Changed `name` field for
`com.databricks.sdk.service.catalog.CreateCredentialRequest` to be
required.
* Changed `credentialName` field for
`com.databricks.sdk.service.catalog.GenerateTemporaryServiceCredentialRequest`
to be required.

OpenAPI SHA: f2385add116e3716c8a90a0b68e204deb40f996c, Date: 2024-11-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