-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chore] Improve MeshModels models retrieval #375
[chore] Improve MeshModels models retrieval #375
Conversation
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
…ocess Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
I'm unclear of what is the meaning of Isn't this inconsistent? |
@@ -34,8 +59,8 @@ func (h *Host) AfterFind(tx *gorm.DB) error { | |||
h.IHost = ArtifactHub{} | |||
case "kubernetes": | |||
h.IHost = Kubernetes{} | |||
default: | |||
return ErrUnknownHost(errors.New("unable to find compatible host for the component")) | |||
default: // do nothing if the host is not pre-unknown. Currently adapters fall into this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change relates to the question I asked here: #375 (comment)
Answered verbally. |
@@ -47,6 +49,36 @@ type RegistryManager struct { | |||
db *database.Handler //This database handler will be used to perform queries inside the database | |||
} | |||
|
|||
func registerModel(db *database.Handler, regID, modelID uuid.UUID) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need function description.
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
Description
This PR fixes # meshery/meshery#8929
Fixes:
registries
table. Also, made model compatible with Entity interface{}.Notes for Reviewers
Signed commits