-
Notifications
You must be signed in to change notification settings - Fork 1
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
prepare for duty migration in canary checker #139
Conversation
@@ -76,17 +67,17 @@ type Component struct { | |||
Parents []string `json:"parents,omitempty" gorm:"-"` | |||
} | |||
|
|||
func (c *Component) GetStatus() ComponentStatus { | |||
func (c *Component) GetStatus() types.ComponentStatus { |
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.
Thought I would just use GetStatus()
method from Summary
func (c *Component) GetStatus() types.ComponentStatus {
return c.Summary.GetStatus()
}
but they have different logics. Not sure if it's correct to do it this way.
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.
Here, I see that component's status is being set using Summary's GetStatus
method
https://github.com/flanksource/canary-checker/blob/master/pkg/topology/run.go#L399
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.
Hmm, not sure about it. @moshloop Can you chime in here
4fd7266
to
1921f88
Compare
Replace types.JSON with ConfigQuery in Component struct [skip ci]
* Remove config: null from fixture
* Use Generic struct scan and value wherever it was missed.
63eb38f
to
02ff4d9
Compare
Add new methods and some refactoring to help with flanksource/canary-checker#794