From e15c6a67bd16fe4e02182fc3060102c0b5a379f7 Mon Sep 17 00:00:00 2001 From: Ivana Huckova Date: Thu, 9 Jun 2022 15:40:10 +0200 Subject: [PATCH] Fix linting --- pkg/api/docs/definitions/query_history.go | 8 ++++---- pkg/services/queryhistory/models.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/api/docs/definitions/query_history.go b/pkg/api/docs/definitions/query_history.go index 90f318e1488..12fc438477a 100644 --- a/pkg/api/docs/definitions/query_history.go +++ b/pkg/api/docs/definitions/query_history.go @@ -119,7 +119,7 @@ type SearchQueriesParams struct { // in:query // required: false Page int `json:"page"` - // Limit the number of returned results + // Limit the number of returned results // in:query // required: false Limit int `json:"limit"` @@ -137,21 +137,21 @@ type SearchQueriesParams struct { type CreateQueryParams struct { // in:body // required:true - Body queryhistory.CreateQueryInQueryHistoryCommand `json:"body"` + Body queryhistory.CreateQueryInQueryHistoryCommand `json:"body"` } // swagger:parameters patchQueryComment type PatchQueryCommentParams struct { // in:body // required:true - Body queryhistory.PatchQueryCommentInQueryHistoryCommand `json:"body"` + Body queryhistory.PatchQueryCommentInQueryHistoryCommand `json:"body"` } // swagger:parameters migrateQueries type MigrateQueriesParams struct { // in:body // required:true - Body queryhistory.MigrateQueriesToQueryHistoryCommand `json:"body"` + Body queryhistory.MigrateQueriesToQueryHistoryCommand `json:"body"` } //swagger:response getQueryHistorySearchResponse diff --git a/pkg/services/queryhistory/models.go b/pkg/services/queryhistory/models.go index 5a68cb5c382..e4e5e78c1bf 100644 --- a/pkg/services/queryhistory/models.go +++ b/pkg/services/queryhistory/models.go @@ -96,7 +96,7 @@ type CreateQueryInQueryHistoryCommand struct { DatasourceUID string `json:"datasourceUid"` // The JSON model of queries. // required: true - // example: [ { "datasourceUid": "PE1C5CBDA0504A6A3", "queries": [ { "refId": "A", "key": "Q-87fed8e3-62ba-4eb2-8d2a-4129979bb4de-0", "scenarioId": "csv_content", "datasource": { "type": "testdata", "uid": "PD8C576611E62080A" } } ], "starred": false, "createdAt": 1643630762, "comment": "debugging" } ] + // example: [ { "datasourceUid": "PE1C5CBDA0504A6A3", "queries": [ { "refId": "A", "key": "Q-87fed8e3-62ba-4eb2-8d2a-4129979bb4de-0", "scenarioId": "csv_content", "datasource": { "type": "testdata", "uid": "PD8C576611E62080A" } } ], "starred": false, "createdAt": 1643630762, "comment": "debugging" } ] Queries *simplejson.Json `json:"queries"` }