Arve Knudsen
41d432b5ae
Chore: Enable whitespace linter ( #25903 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-06 20:17:28 +02:00
Carl Bergquist
3fdd2648b1
Chore: Avoid aliasing importing models in api package ( #22492 )
2020-03-04 12:57:20 +01:00
Mohit Gupta
94951df1c1
API: Include IP address when logging request error ( #21596 )
...
Includes IP address when logging request error, for example
when a user fails to login.
Fixes #21310
2020-03-02 09:43:16 +01:00
Arve Knudsen
0a2d5e16dd
pkg/api: Check errors ( #19657 )
...
* pkg/api: Check errors
* pkg/api: Remove unused function HashEmail
2019-10-08 18:57:53 +02:00
Leonard Gram
dd794625dd
API: adds redirect helper to simplify http redirects ( #19180 )
2019-09-17 19:28:35 +02:00
Torkel Ödegaard
6286c31d4b
refactoring: making api wrap public
2018-07-02 14:13:18 +02:00
Marcus Efraimsson
de0d409a23
Revert "Opportunities to unindent code (unindent)"
2018-05-02 14:06:46 +02:00
Karsten Weiss
893a91af3a
Use opportunities to unindent code (unindent)
...
This commit fixes the following unindent findings:
pkg/api/common.go:102:2: "if x { if y" should be "if x && y"
pkg/components/dynmap/dynmap.go:642:2: invert condition and early return
pkg/components/dynmap/dynmap.go:681:2: invert condition and early return
pkg/components/simplejson/simplejson.go:171:2: "if x { if y" should be "if x && y"
pkg/middleware/dashboard_redirect.go:42:3: invert condition and early return
pkg/tsdb/mssql/mssql.go:301:3: invert condition and early break
pkg/tsdb/mysql/mysql.go:312:3: invert condition and early break
pkg/tsdb/postgres/postgres.go:292:3: invert condition and early break
pkg/tsdb/sql_engine.go:144:2: invert condition and early return
2018-04-28 10:53:16 +02:00
Julian Kornberger
0a415c50d0
Make golint happier
2018-03-22 22:38:44 +01:00
Dan Cech
c0ecdee375
rename Context to ReqContext
2018-03-07 11:54:50 -05:00
Dan Cech
338655dd37
move Context and session out of middleware
2018-03-06 18:16:49 -05:00
Torkel Ödegaard
c6cf6d4655
fix(api): fixed issue with api content-type in api success messages, fixes #6160
2016-10-01 16:52:52 +02:00
bergquist
e7b56c6389
tech(metrics): move all request counters into one middleware
2016-09-09 13:28:19 +02:00
Torkel Ödegaard
bf1ea560e9
feat(logging): error logging improvements
2016-06-11 12:16:33 +02:00
Torkel Ödegaard
e0c6048820
feat(instrumentation): added gauge and http endpoint
2016-06-03 16:15:36 +02:00
Torkel Ödegaard
eee49a4995
feat(instrumentation): added meter, histogram and new timer, timer now send p25, p75, p90, p99 percentiles in 1000 sample exp decaying sample
2016-06-03 12:50:51 +02:00
Torkel Ödegaard
bdb67d4909
fix(build): fixed dependency and build issue
2016-01-13 15:38:54 +01:00
bergquist
4fe72ebf69
feat(macaron): upgrades macaron version
2016-01-13 15:11:23 +01:00
Donn Pebe
df33cbc8c5
Fix wrong metrics counter
2015-06-30 12:52:55 +07:00
Torkel Ödegaard
fbc6bb2112
More refactoring of user http api, trying to reuse handlers for sign in user and admin operations
2015-05-18 19:06:19 +02:00
Torkel Ödegaard
5270c4bc74
refactorin api code for user routes, preparation for admin improvements, #2014
2015-05-18 17:52:23 +02:00