Skip to content

Conversation

DTCurrie
Copy link
Member

As I was working on the MLModel service test card, I noticed we were having some type issues with the client. First, the name field needed to be public. Second, we were missing some type exports that are pretty necessary to render anything from the metadata response. Shouldn't be anything breaking.

@DTCurrie DTCurrie self-assigned this Apr 15, 2025
@DTCurrie DTCurrie requested a review from a team as a code owner April 15, 2025 18:59
@DTCurrie DTCurrie requested review from njooma and stuqdog April 15, 2025 18:59
@@ -10,8 +10,9 @@ import { MLModelService } from '../../gen/service/mlmodel/v1/mlmodel_connect';

export class MLModelClient implements MLModel {
private client: PromiseClient<typeof MLModelService>;
private readonly name: string;
Copy link
Member

Choose a reason for hiding this comment

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

Interesting. Not sure why it was private to begin with

Copy link
Member Author

Choose a reason for hiding this comment

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

Normally this would be caught because we would extend Resource which requires name to be public. But the MLModelService does not implement the doCommand, which is a requirement for a Resource. So the type-checker didn't yell at me when I missed it last time.

@DTCurrie DTCurrie merged commit 240fcd1 into main Apr 18, 2025
3 checks passed
@DTCurrie DTCurrie deleted the fix-ml-model-client-exports branch April 18, 2025 16:45
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.

5 participants