Chore: Start annotations app (#113018)
* annotation legacy store with api server, read only * Add a feature flag for annotations app * implement list filters * annotations are not addressable by ID for read operations * fix registry apps test * add ownership for an app * disable linter * typo, of course * fix go workspace * update workspace * copy annotation app in dockerfile * update workspace --------- Co-authored-by: Tania B. <10127682+undef1nd@users.noreply.github.com>
This commit is contained in:
@@ -330,7 +330,9 @@ func (r *xormRepositoryImpl) Get(ctx context.Context, query annotations.ItemQuer
|
||||
params = append(params, query.AnnotationID)
|
||||
}
|
||||
|
||||
if query.AlertID != 0 {
|
||||
if query.AlertID < 0 {
|
||||
sql.WriteString(` AND a.alert_id = 0`)
|
||||
} else if query.AlertID > 0 {
|
||||
sql.WriteString(` AND a.alert_id = ?`)
|
||||
params = append(params, query.AlertID)
|
||||
} else if query.AlertUID != "" {
|
||||
|
||||
Reference in New Issue
Block a user