-
Notifications
You must be signed in to change notification settings - Fork 20
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
Context query subscript #791
Conversation
DefaultContext.ID during migration
dictionary has become)
pkg/api/aim/query/query.go
Outdated
func (pq *parsedQuery) Filter(tx *gorm.DB) *gorm.DB { | ||
for _, j := range pq.joins { | ||
for _, k := range pq.joinKeys { | ||
j := pq.joins[k] |
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.
could it be circumstance, when j := pq.joins[k]
is nil
?
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.
i searched for all cases where we append to pq.joins to make sure this isn't possible (using pq.AddJoin ensures this). Added some error-level logging if joins[k]
is nil.
add ability to use aim "context subscript" query eg "runs.metrics["metricname", {'key': 'value1'}]"
fixes #360