From c93dfeaac433cc5f683d742659a53a7213915c83 Mon Sep 17 00:00:00 2001 From: vishesh92 Date: Thu, 12 Nov 2020 00:30:47 +0530 Subject: [PATCH] Fix links to logql docs (#29037) --- .../app/plugins/datasource/loki/components/LokiCheatSheet.tsx | 2 +- public/app/plugins/datasource/loki/datasource.test.ts | 2 +- public/app/plugins/datasource/loki/datasource.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx b/public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx index a7974a2ab5d..a425a32acd5 100644 --- a/public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx +++ b/public/app/plugins/datasource/loki/components/LokiCheatSheet.tsx @@ -114,7 +114,7 @@ export default class LokiCheatSheet extends PureComponent - + LogQL {' '} supports exact and regular expression filters. diff --git a/public/app/plugins/datasource/loki/datasource.test.ts b/public/app/plugins/datasource/loki/datasource.test.ts index acca7bd7bff..6539c8a9803 100644 --- a/public/app/plugins/datasource/loki/datasource.test.ts +++ b/public/app/plugins/datasource/loki/datasource.test.ts @@ -276,7 +276,7 @@ describe('LokiDatasource', () => { observable: ds.query(options), expect: err => { expect(err.data.message).toBe( - 'Error: parse error at line 1, col 6: invalid char escape. Make sure that all special characters are escaped with \\. For more information on escaping of special characters visit LogQL documentation at https://github.com/grafana/loki/blob/master/docs/logql.md.' + 'Error: parse error at line 1, col 6: invalid char escape. Make sure that all special characters are escaped with \\. For more information on escaping of special characters visit LogQL documentation at https://grafana.com/docs/loki/latest/logql/.' ); }, done, diff --git a/public/app/plugins/datasource/loki/datasource.ts b/public/app/plugins/datasource/loki/datasource.ts index 626a3d93b50..93ba8db9131 100644 --- a/public/app/plugins/datasource/loki/datasource.ts +++ b/public/app/plugins/datasource/loki/datasource.ts @@ -520,7 +520,7 @@ export class LokiDatasource extends DataSourceApi { processError(err: FetchError, target: LokiQuery) { let error = cloneDeep(err); if (err.data.message.includes('escape') && target.expr.includes('\\')) { - error.data.message = `Error: ${err.data.message}. Make sure that all special characters are escaped with \\. For more information on escaping of special characters visit LogQL documentation at https://github.com/grafana/loki/blob/master/docs/logql.md.`; + error.data.message = `Error: ${err.data.message}. Make sure that all special characters are escaped with \\. For more information on escaping of special characters visit LogQL documentation at https://grafana.com/docs/loki/latest/logql/.`; } return error; }