-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up model registry context and apiHooks
- Loading branch information
Showing
23 changed files
with
678 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { ModelArtifact, ModelArtifactState } from '~/app/types'; | ||
|
||
type MockModelArtifact = { | ||
id?: string; | ||
name?: string; | ||
uri?: string; | ||
state?: ModelArtifactState; | ||
author?: string; | ||
}; | ||
|
||
export const mockModelArtifact = ({ | ||
id = '1', | ||
name = 'test', | ||
uri = 'test', | ||
state = ModelArtifactState.LIVE, | ||
author = 'Author 1', | ||
}: MockModelArtifact): ModelArtifact => ({ | ||
id, | ||
name, | ||
externalID: '1234132asdfasdf', | ||
description: '', | ||
createTimeSinceEpoch: '1710404288975', | ||
lastUpdateTimeSinceEpoch: '1710404288975', | ||
customProperties: {}, | ||
uri, | ||
state, | ||
author, | ||
modelFormatName: 'test', | ||
storageKey: 'test', | ||
storagePath: 'test', | ||
modelFormatVersion: 'test', | ||
serviceAccountName: 'test', | ||
artifactType: 'test', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.