Skip to content

Commit

Permalink
update implementation for model
Browse files Browse the repository at this point in the history
Signed-off-by: MUzairS15 <[email protected]>
  • Loading branch information
MUzairS15 committed Aug 13, 2024
1 parent 76271ba commit 9107eae
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
24 changes: 18 additions & 6 deletions models/v1alpha3/relationship/relationship.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions models/v1beta1/model/model_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@ func (m *ModelDefinition) Create(db *database.Handler, hostID uuid.UUID) (uuid.U
m.Id = modelID
m.CategoryId = id
m.RegistrantId = hostID
m.Status = ModelDefinitionStatusEnabled
err = db.Omit(clause.Associations).Create(&m).Error
if err != nil {
return uuid.UUID{}, err
}
// register model inside registries table
err = registerModel(db, hostID, modelID)
// err = registerModel(db, hostID, modelID)
if err != nil {
return uuid.UUID{}, err
}
Expand Down
1 change: 0 additions & 1 deletion schemas/constructs/v1beta1/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
"metadata": {
"type": "object",
"description": "Metadata containing additional information associated with the model.",
"required": ["name", "version"],
"properties": {
"capabilities": {
"type": "array",
Expand Down

0 comments on commit 9107eae

Please sign in to comment.