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

chore: simplify sample rows key callable chain #2396

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

igorbernstein2
Copy link
Contributor

@igorbernstein2 igorbernstein2 commented Nov 2, 2024

Previously there were 3 chain creators:

  1. createSampleRowKeysBaseCallable
  2. createSampleRowKeysWithRequestCallable
  3. createSampleRowKeysCallable

The primary reason for this is that SampleRowKeysWithRequest was introduced after createSampleRowKeysCallable because it supports authorized views.

This pr simplifies the logic by moving everything into createSampleRowKeysWithRequestCallable and makes createSampleRowKeysCallable be a tiny shim to convert a String tableId into a SampleRowKeysRequest

Previously there were 3 chain creators:
1. createSampleRowKeysBaseCallable
2. createSampleRowKeysWithRequestCallable
3. createSampleRowKeysCallable

The primary reason for this is that SampleRowKeysWithRequest was introduced after createSampleRowKeysCallable because it supports authorized views.

This pr simplifies the logic by moving everything into createSampleRowKeysWithRequestCallable and makes createSampleRowKeysCallable be a tiny shim to convert a String tableId into a SampleRowKeysRequest

Change-Id: I8f3f33936211bccc71fb0345c5d87fd9f85b2146
@igorbernstein2 igorbernstein2 requested review from a team as code owners November 2, 2024 16:16
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigtable Issues related to the googleapis/java-bigtable API. samples Issues that are directly related to samples. labels Nov 2, 2024
@igorbernstein2 igorbernstein2 added the automerge Merge the pull request once unit tests and other checks pass. label Nov 4, 2024
@igorbernstein2 igorbernstein2 assigned mutianf and unassigned bourgeoisor Nov 4, 2024
Copy link
Contributor

@mutianf mutianf left a comment

Choose a reason for hiding this comment

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

Same here, can we add the tests to EnhancedBigtableStubTest?

Change-Id: I8f13601788adf4a5e38bad07a921ac6ff90a583f
@igorbernstein2 igorbernstein2 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 4, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 4, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit 3fa44fd into main Nov 4, 2024
23 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Nov 4, 2024
@gcf-merge-on-green gcf-merge-on-green bot deleted the fix-samplerowkeys branch November 4, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/java-bigtable API. samples Issues that are directly related to samples. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants