Skip to content

Conversation

znewton
Copy link
Contributor

@znewton znewton commented Oct 8, 2025

Description

This PR moves ODSP Container Services into a class implementation to prepare for changes coming out of #25597.

Reviewer Guidance

This PR seems pointless on the surface, but it will make life significantly easier when asynchronously adding various functionality to the ODSP Container Services, some of which use class/extension syntax.

@Copilot Copilot AI review requested due to automatic review settings October 8, 2025 21:03
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors ODSP Container Services from a functional approach to a class-based implementation to prepare for future asynchronous functionality and class/extension syntax requirements.

Key changes:

  • Creates a new OdspContainerServices class that implements the IOdspContainerServices interface
  • Replaces inline object creation with class instantiation in the ODSP client
  • Updates type references to use the interface instead of the concrete type

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/service-clients/odsp-client/src/odspContainerServices.ts New file containing the OdspContainerServices class implementation
packages/service-clients/odsp-client/src/odspClient.ts Updated to use the new class instead of inline object creation and updated imports/type references

@github-actions github-actions bot added the base: main PRs targeted against main branch label Oct 8, 2025
@yunho-microsoft
Copy link
Contributor

It looks good to me.

@znewton znewton enabled auto-merge (squash) October 9, 2025 20:24
@znewton znewton merged commit 5f52833 into microsoft:main Oct 9, 2025
31 checks passed
@znewton znewton deleted the odsp-container-services-class branch October 16, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

base: main PRs targeted against main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants