Łukasz Mierzwa
3dd04eb5f2
Rewrire ui.js as CommonJS, add tests
2017-07-29 13:45:33 -07:00
Łukasz Mierzwa
bc7be22e5f
Rewrite filters.js as CommonJS, add basic test
2017-07-29 13:45:33 -07:00
Łukasz Mierzwa
d166222a86
Rewrite summary.js as CommonJS, add tests
2017-07-29 13:45:33 -07:00
Łukasz Mierzwa
f6ca29d7a3
Add basic templates test
2017-07-29 13:45:33 -07:00
Łukasz Mierzwa
7301f40778
Rewrite sentry.js as CommonJS, add basic test
2017-07-29 13:45:33 -07:00
Łukasz Mierzwa
d083054409
Fix grid init(), add stub tests
2017-07-29 13:45:32 -07:00
Łukasz Mierzwa
3cb33754b2
Fix counter package import, add stub test file
2017-07-29 13:45:32 -07:00
Łukasz Mierzwa
c4f96b863c
Rewrite unsilence.js as CommonJS
2017-07-29 13:45:32 -07:00
Łukasz Mierzwa
a698a40577
Rewrite querystring.js as CommonJS, add basic tests
2017-07-29 13:45:32 -07:00
Łukasz Mierzwa
39204ea273
Rewrite progress.js as CommonJS, add tests
2017-07-29 13:45:32 -07:00
Łukasz Mierzwa
839c01d11e
Add missing jquery require to the counter.js
2017-07-29 13:45:32 -07:00
Łukasz Mierzwa
f22959f5d8
Rewrite colors.js as CommonJS, add tests
2017-07-29 13:45:29 -07:00
Łukasz Mierzwa
4799179e76
Rewrite template.js as CommonJS
2017-07-29 13:43:14 -07:00
Łukasz Mierzwa
4c95f2888e
Convert autocomplete to CommonJS and write tests
2017-07-29 13:43:14 -07:00
Łukasz Mierzwa
acc99e4f07
Add more watchdog tests
2017-07-29 13:43:14 -07:00
Łukasz Mierzwa
3c8be2dbad
Convert counter.js to CommonJS module
2017-07-29 13:43:13 -07:00
Łukasz Mierzwa
07a272e493
Fix watchdog tests
2017-07-29 13:43:13 -07:00
Łukasz Mierzwa
f8357689ad
Add basic tests for watchdog using jest
2017-07-29 13:43:13 -07:00
Łukasz Mierzwa
1474af8f07
Rewrite watchdog using CommonJS
2017-07-29 13:43:13 -07:00
Łukasz Mierzwa
d91fa473ab
Drop jshint, use eslint in es6 mode
2017-07-29 13:43:12 -07:00
Łukasz Mierzwa
9ea3236ee5
Merge pull request #149 from cloudflare/fix-silence-form-colors
...
Show correct label colors in the silence form
2017-07-25 20:49:43 -07:00
Łukasz Mierzwa
f13628cb45
Show correct label colors in the silence form
...
When the silence form is rendered we make a new alerts.json request to pull all instances of the alert being silenced and populate select boxes, so that user can silence not only currently displayed alerts, but all firing ones. When we do that only alerts displayed (matching filters) are colored properly because only those had color data in the global state, so some instances in those select boxes will be missing color data. To fix this merge global color data (from filtered alerts) with colors for alerts we collected, so when rendering happens we have color data for all instances.
2017-07-25 15:17:31 -07:00
Łukasz Mierzwa
63630c3e9c
Merge pull request #148 from cloudflare/rename-lru.js
...
Avoid caching all js files
v0.7.2
2017-07-24 16:10:17 -07:00
Łukasz Mierzwa
92074f5d29
Avoid caching all js files
2017-07-24 16:07:51 -07:00
Łukasz Mierzwa
2695a5f4ad
Merge pull request #147 from cloudflare/lru.js-v2
...
Switch lru.js to v2 version
v0.7.1
2017-07-24 12:33:21 -07:00
Łukasz Mierzwa
3488072c8a
Switch lru.js to v2 version
...
v2 is an older implementation that doesn't require ES6, note from docs:
Note: If you need ES5 compatibility e.g. to use with older browsers, please use version 2 which has a slightly less feature-full API but is well-tested and about as fast as this implementation
2017-07-24 09:20:02 -07:00
Łukasz Mierzwa
ddc21a6826
Merge pull request #146 from cloudflare/alertmanager-0.8.0
...
Alertmanager 0.8.0
2017-07-22 19:55:58 -07:00
Łukasz Mierzwa
9301b1b98b
Update README and point people to mock/Makefile for the list of supported releases
2017-07-22 19:53:10 -07:00
Łukasz Mierzwa
de6385bf26
Fix test failing with 0.8.0 mock data
2017-07-21 19:11:18 -07:00
Łukasz Mierzwa
0a3d002db8
Use Alertmanager 0.8.0 for default demo mode
2017-07-21 19:11:03 -07:00
Łukasz Mierzwa
ee027a77ab
Add mock data from Alertmanager 0.8.0
2017-07-21 19:10:31 -07:00
Łukasz Mierzwa
26780525e5
Merge pull request #144 from cloudflare/go-dep
...
Go dep
2017-07-18 09:23:44 -07:00
Łukasz Mierzwa
23f3551280
Migrate vendor forlder to dep
...
This PR is a result of running 'dep init' followed by 'make vendor', it removes govendor file and creates dep Gopkg.* files.
2017-07-18 09:16:42 -07:00
Łukasz Mierzwa
e114ceb1ae
Use dep instead of govendor for vendor folder management
2017-07-18 09:16:42 -07:00
Łukasz Mierzwa
ac60d6de6e
Merge pull request #145 from cloudflare/more-tests
...
More tests
2017-07-18 09:16:03 -07:00
Łukasz Mierzwa
d02e8569aa
Refactor group fingerpint tests
...
Depending on exact value breaks when testing with a different Go version since implementation details might cause structhash to return a different hash. We don't depend on exact values in the UI, we only require that those values are unique to a unique set of labels and selected attributes, so that's what we should test rather than hardcoded values. This PR allows unsee to pass tests under Go 1.9beta2
2017-07-17 19:04:54 -07:00
Łukasz Mierzwa
ae6fcbeeee
Add basic alertmanager package tests & benchmarks
2017-07-17 18:53:00 -07:00
Łukasz Mierzwa
aea6178ecb
Merge pull request #142 from cloudflare/update-docs
...
Minor README updates
v0.7.0
2017-07-11 07:40:37 -07:00
Łukasz Mierzwa
1414ed1428
Minor README updates
2017-07-10 22:11:46 -07:00
Łukasz Mierzwa
1ed1a0ba9c
Merge pull request #141 from cloudflare/fix-metric-labels
...
Fix inverted labels
2017-07-10 11:53:46 -07:00
Łukasz Mierzwa
c1645a2e8e
Fix inverted labels
2017-07-10 11:38:40 -07:00
Łukasz Mierzwa
4b3785ef00
Merge pull request #136 from cloudflare/unsilence-button
...
Allow unsilencing alerts from unsee UI
2017-07-10 11:31:57 -07:00
Łukasz Mierzwa
c666d633aa
Allow unsilencing alerts from unsee UI
2017-07-10 09:43:53 -07:00
Łukasz Mierzwa
276d34b0e0
Merge pull request #138 from cloudflare/ajax-errors
...
Add a helper to converting ajax() call errors into a string with desc…
2017-07-10 09:32:40 -07:00
Łukasz Mierzwa
8e6b622d04
Add a helper to converting ajax() call errors into a string with description
...
There are many ways an ajax() call can fail but it's mostly the same pattern, capture it as a helper function and use for all calls
2017-07-10 09:30:03 -07:00
Łukasz Mierzwa
35480fca13
Merge pull request #137 from cloudflare/silence-speedup
...
Don't iterate a dict, just grab the key
2017-07-10 09:20:21 -07:00
Łukasz Mierzwa
fb75e6b083
Don't iterate a dict, just grab the key
...
This is slow, it's a dict, not need to iterate that.
2017-07-10 09:14:50 -07:00
Łukasz Mierzwa
51c2ed7f10
Merge pull request #139 from cloudflare/metrics-collector
...
Re-implement metrics calculation as a collector
2017-07-10 09:14:05 -07:00
Łukasz Mierzwa
9b5155e68c
Re-implement metrics calculation as a collector
...
Split metrics code into a collector, this way it's self contained and doesn't require mixing metric calculation in the main logic.
Fixes #130
2017-07-10 09:09:43 -07:00
Łukasz Mierzwa
6c74a7b7e9
Merge pull request #140 from cloudflare/min-ttls
...
We'll get a panic if user sets zero or negative TTL value, add a check
2017-07-10 09:09:15 -07:00