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 one shot pagination #268

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Fix one shot pagination #268

merged 2 commits into from
Apr 22, 2024

Conversation

mgyucht
Copy link
Contributor

@mgyucht mgyucht commented Apr 22, 2024

Changes

#266 unintentionally broke one-shot list APIs because the single page would never be fetched. This PR forces that first page to be fetched, restoring the original behavior.

Tests

  • Ran SecretsIT locally, and it worked.

@mgyucht mgyucht requested a review from tanmay-db April 22, 2024 10:19
@tanmay-db tanmay-db enabled auto-merge April 22, 2024 11:36
@tanmay-db tanmay-db added this pull request to the merge queue Apr 22, 2024
Merged via the queue into main with commit 4039f10 Apr 22, 2024
9 checks passed
@tanmay-db tanmay-db deleted the fix-one-shot-pagination branch April 22, 2024 11:38
vikrantpuppala pushed a commit to vikrantpuppala/databricks-sdk-java that referenced this pull request Apr 23, 2024
## Changes
databricks#266 unintentionally broke one-shot list APIs because the single page
would never be fetched. This PR forces that first page to be fetched,
restoring the original behavior.

## Tests

- [x] Ran SecretsIT locally, and it worked.
tanmay-db added a commit that referenced this pull request Apr 23, 2024
* [PECO-1008] Add retry strategy based on idempotency of requests ([#264](#264)).
* Fix remaining Java integration tests ([#265](#265)).
* Fix one-shot list APIs to not return null ([#266](#266)).
* Remove unnecessary secret from example ([#267](#267)).
* Fix one shot pagination ([#268](#268)).
* Update SDK to OpenAPI spec ([#269](#269)).
* [PECO-1542] Add a way to provide proxy details to SDK ([#271](#271)).

API Changes:

 * Added `schemaId` field for `com.databricks.sdk.service.catalog.SchemaInfo`.
 * Removed `awsOperation` field for `com.databricks.sdk.service.catalog.ValidationResult`.
 * Removed `azureOperation` field for `com.databricks.sdk.service.catalog.ValidationResult`.
 * Removed `gcpOperation` field for `com.databricks.sdk.service.catalog.ValidationResult`.
 * Added `operation` field for `com.databricks.sdk.service.catalog.ValidationResult`.
 * Removed `com.databricks.sdk.service.catalog.ValidationResultAwsOperation` class.
 * Removed `com.databricks.sdk.service.catalog.ValidationResultAzureOperation` class.
 * Removed `com.databricks.sdk.service.catalog.ValidationResultGcpOperation` class.
 * Added `com.databricks.sdk.service.catalog.ValidationResultOperation` class.
 * Changed `clusterStatus()` method for `workspaceClient.libraries()` service . New request type is `com.databricks.sdk.service.compute.ClusterStatus` class.
 * Changed `clusterStatus()` method for `workspaceClient.libraries()` service to return `com.databricks.sdk.service.compute.ClusterStatusResponse` class.
 * Removed `com.databricks.sdk.service.compute.ClusterStatusRequest` class.
 * Added `requirements` field for `com.databricks.sdk.service.compute.Library`.
 * Changed `status` field for `com.databricks.sdk.service.compute.LibraryFullStatus` to `com.databricks.sdk.service.compute.LibraryInstallStatus` class.
 * Removed `com.databricks.sdk.service.compute.LibraryFullStatusStatus` class.
 * Added `com.databricks.sdk.service.compute.ClusterStatus` class.
 * Added `com.databricks.sdk.service.compute.ClusterStatusResponse` class.
 * Added `com.databricks.sdk.service.compute.LibraryInstallStatus` class.
 * Added `warehouseId` field for `com.databricks.sdk.service.jobs.NotebookTask`.
 * Added `runAs` field for `com.databricks.sdk.service.jobs.SubmitRun`.
 * Added `deployment` field for `com.databricks.sdk.service.pipelines.CreatePipeline`.
 * Added `deployment` field for `com.databricks.sdk.service.pipelines.EditPipeline`.
 * Added `deployment` field for `com.databricks.sdk.service.pipelines.PipelineSpec`.
 * Added `com.databricks.sdk.service.pipelines.DeploymentKind` class.
 * Added `com.databricks.sdk.service.pipelines.PipelineDeployment` class.

OpenAPI SHA: 06d330f43d92c1be864d4638c672cd0723e20a51, Date: 2024-04-22
@tanmay-db tanmay-db mentioned this pull request Apr 23, 2024
github-merge-queue bot pushed a commit that referenced this pull request Apr 24, 2024
## 0.24.0

* Added retry strategy based on idempotency of requests
([#264](#264)).
* Fixde remaining Java integration tests
([#265](#265)).
* Fixed one-shot list APIs to not return null
([#266](#266)).
* Removed unnecessary secret from example
([#267](#267)).
* Fixed one shot pagination
([#268](#268)).
* Updated SDK to OpenAPI spec
([#269](#269)).
* Added a way to provide proxy details to SDK
([#271](#271)).

Note: This release contains breaking changes, please see the API changes
below for more details.

API Changes:

* Added `deployment` field for
`com.databricks.sdk.service.pipelines.CreatePipeline`,
`com.databricks.sdk.service.pipelines.EditPipeline`,
`com.databricks.sdk.service.pipelines.PipelineSpec`.
* Added `schemaId` field for
`com.databricks.sdk.service.catalog.SchemaInfo`.
* Added `operation` field for
`com.databricks.sdk.service.catalog.ValidationResult`.
* Added `requirements` field for
`com.databricks.sdk.service.compute.Library`.
* Added `warehouseId` field for
`com.databricks.sdk.service.jobs.NotebookTask`.
 * Added `runAs` field for `com.databricks.sdk.service.jobs.SubmitRun`.
* Added `com.databricks.sdk.service.catalog.ValidationResultOperation`
class.
 * Added `com.databricks.sdk.service.compute.ClusterStatus` class.
* Added `com.databricks.sdk.service.compute.ClusterStatusResponse`
class.
* Added `com.databricks.sdk.service.compute.LibraryInstallStatus` class.
 * Added `com.databricks.sdk.service.pipelines.DeploymentKind` class.
* Added `com.databricks.sdk.service.pipelines.PipelineDeployment` class.
* Removed `awsOperation` field for
`com.databricks.sdk.service.catalog.ValidationResult`.
* Removed `azureOperation` field for
`com.databricks.sdk.service.catalog.ValidationResult`.
* Removed `gcpOperation` field for
`com.databricks.sdk.service.catalog.ValidationResult`.
* Removed
`com.databricks.sdk.service.catalog.ValidationResultAwsOperation` class.
* Removed
`com.databricks.sdk.service.catalog.ValidationResultAzureOperation`
class.
* Removed
`com.databricks.sdk.service.catalog.ValidationResultGcpOperation` class.
* Removed `com.databricks.sdk.service.compute.ClusterStatusRequest`
class.
* Removed `com.databricks.sdk.service.compute.LibraryFullStatusStatus`
class.
* Changed `clusterStatus()` method for `workspaceClient.libraries()`
service . New request type is
`com.databricks.sdk.service.compute.ClusterStatus` class.
* Changed `clusterStatus()` method for `workspaceClient.libraries()`
service to return
`com.databricks.sdk.service.compute.ClusterStatusResponse` class.
* Changed `status` field for
`com.databricks.sdk.service.compute.LibraryFullStatus` to
`com.databricks.sdk.service.compute.LibraryInstallStatus` class.

OpenAPI SHA: 06d330f43d92c1be864d4638c672cd0723e20a51, Date: 2024-04-22
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.

2 participants