Skip to content

refactor(storage): remove Service.ts and migrate logic to StorageTransport#8283

Merged
Dhriti07 merged 1 commit into
googleapis:storage-node-18from
thiyaguk09:refactor/remove-service-ts
May 14, 2026
Merged

refactor(storage): remove Service.ts and migrate logic to StorageTransport#8283
Dhriti07 merged 1 commit into
googleapis:storage-node-18from
thiyaguk09:refactor/remove-service-ts

Conversation

@thiyaguk09
Copy link
Copy Markdown
Contributor

Removed:

  • handwritten/storage/system-test/common.ts
  • handwritten/storage/test/nodejs-common/service.ts
  • handwritten/storage/src/nodejs-common/service.ts

Updated:

  • Bumped conformance test Node version from 14 to 18

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> 🦕

@thiyaguk09 thiyaguk09 requested review from a team as code owners May 14, 2026 10:34
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label May 14, 2026
…sport

- Remove Service.ts and common.ts files from handwritten/storage

- Migrate remaining functionality to StorageTransport

- chore(ci): upgrade conformance tests to Node 18
@thiyaguk09 thiyaguk09 force-pushed the refactor/remove-service-ts branch from e7f63e8 to 73fbd28 Compare May 14, 2026 10:37
Copy link
Copy Markdown
Contributor

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

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 deletes the Service class along with its unit and system tests, likely as part of a migration to a new StorageTransport implementation. However, the PR is currently incomplete as the replacement implementation is not included, which will lead to build failures. The feedback emphasizes that several critical functionalities must be preserved or improved in the new transport: project ID detection logic, support for modern Cloud Functions environment variables (K_SERVICE), correct timeout precedence, robust URL detection, and GCS-specific colon separator handling. Furthermore, the deleted system tests should be migrated to maintain test coverage for request handling and retries.

Comment thread handwritten/storage/src/nodejs-common/service.ts
Comment thread handwritten/storage/system-test/common.ts
Comment thread handwritten/storage/src/nodejs-common/service.ts
Comment thread handwritten/storage/src/nodejs-common/service.ts
Comment thread handwritten/storage/src/nodejs-common/service.ts
Comment thread handwritten/storage/src/nodejs-common/service.ts
Comment thread handwritten/storage/src/nodejs-common/service.ts
@Dhriti07
Copy link
Copy Markdown
Contributor

Code Review

This pull request deletes the Service class along with its unit and system tests, likely as part of a migration to a new StorageTransport implementation. However, the PR is currently incomplete as the replacement implementation is not included, which will lead to build failures. The feedback emphasizes that several critical functionalities must be preserved or improved in the new transport: project ID detection logic, support for modern Cloud Functions environment variables (K_SERVICE), correct timeout precedence, robust URL detection, and GCS-specific colon separator handling. Furthermore, the deleted system tests should be migrated to maintain test coverage for request handling and retries.

@thiyaguk09 Can you check this ?

@thiyaguk09
Copy link
Copy Markdown
Contributor Author

Code Review

This pull request deletes the Service class along with its unit and system tests, likely as part of a migration to a new StorageTransport implementation. However, the PR is currently incomplete as the replacement implementation is not included, which will lead to build failures. The feedback emphasizes that several critical functionalities must be preserved or improved in the new transport: project ID detection logic, support for modern Cloud Functions environment variables (K_SERVICE), correct timeout precedence, robust URL detection, and GCS-specific colon separator handling. Furthermore, the deleted system tests should be migrated to maintain test coverage for request handling and retries.

@thiyaguk09 Can you check this ?

@Dhriti07 The StorageTransport was already implemented and integrated prior to this PR. All unit tests are passing, and since the migration is complete, removing these files will not cause build failures.

All critical logic—including project ID detection, K_SERVICE support, and GCS-specific handling—has been preserved in the new transport layer. This is simply the final cleanup to remove redundant code.

@Dhriti07 Dhriti07 merged commit 011f5b5 into googleapis:storage-node-18 May 14, 2026
11 checks passed
thiyaguk09 added a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request May 14, 2026
…sport (googleapis#8283)

- Remove Service.ts and common.ts files from handwritten/storage

- Migrate remaining functionality to StorageTransport

- chore(ci): upgrade conformance tests to Node 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants