Skip to content

feat(google/spanner/v1): onboard a new library#8860

Draft
quirogas wants to merge 1 commit into
googleapis:mainfrom
quirogas:feat/onboard-spanner-api
Draft

feat(google/spanner/v1): onboard a new library#8860
quirogas wants to merge 1 commit into
googleapis:mainfrom
quirogas:feat/onboard-spanner-api

Conversation

@quirogas

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the new @google-cloud/spanner-api package, which provides auto-generated Node.js clients for Cloud Spanner, including database administration, instance administration, and core Spanner services. Feedback on the changes highlights that the generated instance_admin_client.ts file is missing from the PR, and the entrypoint files currently only export InstanceAdminClient instead of all generated clients. Additionally, it is recommended to update the package description in package.json to be more generic and accurate.

// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

export { InstanceAdminClient } from './instance_admin_client';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

The file instance_admin_client.ts is missing from this pull request. Please do not manually edit this generated TypeScript client file to add the exports. Any changes or updates must be made upstream in the generator to ensure all client files are generated and exported correctly.

References
  1. Do not manually edit generated TypeScript client files. Any changes or updates must be made upstream in the generator.

Comment on lines +21 to +25
const InstanceAdminClient = v1.InstanceAdminClient;
type InstanceAdminClient = v1.InstanceAdminClient;

export {v1, InstanceAdminClient};
export default {v1, InstanceAdminClient};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

This entrypoint file only imports and exports InstanceAdminClient. Please do not manually edit this generated TypeScript client file to add the missing exports. Any changes or updates to export all the generated clients must be made upstream in the generator.

References
  1. Do not manually edit generated TypeScript client files. Any changes or updates must be made upstream in the generator.

{
"name": "@google-cloud/spanner-api",
"version": "0.1.0",
"description": "Instance client for Node.js",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The package description is currently set to 'Instance client for Node.js'. Since this package is a combined Spanner API package containing multiple clients (including database admin, instance admin, and the core Spanner client), the description should be updated to be more generic and accurate.

Suggested change
"description": "Instance client for Node.js",
"description": "Cloud Spanner API client for Node.js",

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