Łukasz Mierzwa
a0375a243d
Fix 'make vendor-update' to work as documented
...
make vendor-update should update everything inside the vendor dir, to do this 'govendor fetch' needs to be used, current command ('govendor update') is used to copy packages from /home/lukasz/work/go to vendor dir
2017-03-30 13:21:24 -07:00
Łukasz Mierzwa
c5398ab43d
Merge pull request #20 from cloudflare/govendor
...
Switch from manul to govendor for maintaining vendor directory
2017-03-30 13:13:38 -07:00
Łukasz Mierzwa
0d82cffd79
Add -web.prefix / WEB_PREFIX option
...
This allows people to use unsee with a sub uri setup, which is pretty common usa case, fixes #22
2017-03-30 19:35:52 +01:00
Łukasz Mierzwa
039240bd73
Merge pull request #19 from cloudflare/stable-sort
...
Store alert sha1 internally and use it as a secondary key when sorting
2017-03-29 19:51:13 -07:00
Łukasz Mierzwa
b754155266
Store alert sha1 internally and use it as a secondary key when sorting
...
We already compute alert sha1, it's a unique string so it's a good match for secondary sort key, used when two alerts have the exact same
timestamp. This helps to ensure that we always have a stable sort order and don't flash the UI if we have a group with alerts created at the exact same time
2017-03-29 19:48:02 -07:00
Łukasz Mierzwa
337b399317
Merge pull request #21 from davidkarlsen/master
...
add EXPOSE to Dockerfile
2017-03-29 09:01:29 -07:00
Matt Bostock
df3536db5a
Merge pull request #18 from cloudflare/query-arg-fixes
...
Use the correct value when setting options via query string
2017-03-29 12:36:35 +01:00
David J. M. Karlsen
4e2a9f1df2
add EXPOSE
2017-03-29 08:30:52 +02:00
Łukasz Mierzwa
b458f63713
Switch from manul to govendor for maintaining vendor directory
...
Manul works great, but using git submodules creates some problems (like https://github.com/travis-ci/travis-ci/issues/5806 ), switch to govendor to have reproducible builds
2017-03-28 20:09:26 -07:00
Łukasz Mierzwa
d2a9923dca
Use the correct value when setting options via query string
...
Copy & paste bug, value from previous check is used instead of the correct one
2017-03-28 15:37:44 -07:00
Łukasz Mierzwa
c633a2fafc
Merge pull request #17 from cloudflare/travis
...
Add a config file for travis-ci.org
2017-03-28 13:03:25 -07:00
Łukasz Mierzwa
118f3784bf
Add a config file for travis-ci.org
...
This enables travis-ci.org integration, travis will run 'make test' for new PRs
2017-03-28 12:51:32 -07:00
Łukasz Mierzwa
9f309cf5d2
Merge pull request #12 from cloudflare/tests
...
Collection of a small fixes to improve testing
2017-03-28 12:38:59 -07:00
Łukasz Mierzwa
e0279ebe5e
Add more details about make variable 'DEBUG'
...
Make 'make DEBUG=true ...' work with run-docker target and provide more details of what it will do
2017-03-28 11:25:27 -07:00
Łukasz Mierzwa
66710c6020
Sanitize URLs to hide all passwords when logging runtime config
...
When unsee starts it will print runtime config, but this can contain password for URL keys, replace passwords with 'xxx' string
2017-03-28 11:00:16 -07:00
Łukasz Mierzwa
54d67cbbaa
Add more tests for views
...
We moved static file handling to binary assets, add some tests so we can spot issues with this code
2017-03-28 10:26:13 -07:00
Łukasz Mierzwa
d99f7e60d8
Don't create http.FileServer on every favicon request
...
Setup it once and use for all requests
2017-03-28 10:26:13 -07:00
Łukasz Mierzwa
1ba5228cb1
Move view setup after all middleware
...
prometheus middleware needs to be initialized first, before any view is created
2017-03-28 10:26:13 -07:00
Łukasz Mierzwa
cbe15f71af
Add tests for config handling
2017-03-28 10:26:13 -07:00
Matt Bostock
a2faf05e32
Merge pull request #13 from cloudflare/screenshot
...
Add a screenshot to the README
2017-03-28 17:34:29 +01:00
Łukasz Mierzwa
fd7d3a3585
Move runtime config logging into separate function
...
This should only happen when needed, so moving this to a dedicated function that is called on startup
2017-03-28 09:10:15 -07:00
Łukasz Mierzwa
f810ec31d8
Don't enable debug mode by default
...
This should only be enabled when needed, it's mentioned in the docs
2017-03-28 09:10:15 -07:00
Łukasz Mierzwa
ee638b9fb8
Add a screenshot to the README
2017-03-28 09:01:29 -07:00
Matt Bostock
dbdd457e9a
Merge pull request #15 from cloudflare/bugfixes
...
Bugfixes
2017-03-28 10:18:52 +01:00
Matt Bostock
5063bd0a2e
Merge pull request #14 from cloudflare/mock-data
...
Add mock data for testing
2017-03-28 10:15:02 +01:00
Matt Bostock
fbc52b13ee
Merge pull request #16 from cloudflare/license
...
License
2017-03-28 09:55:26 +01:00
Łukasz Mierzwa
317936d107
Use links when referencing other files in the repo
2017-03-27 22:30:37 -07:00
Łukasz Mierzwa
1af3d08870
Use correct name for the license file
...
Checked with https://help.github.com/articles/adding-a-license-to-a-repository/ and there should be no '.md' extension on this file
2017-03-27 22:26:53 -07:00
Łukasz Mierzwa
0eb885bded
Compare timestamps as is when sorting
...
Remove rounding of timestamps when sorting alert list, not sure why it was added, it's not needed
2017-03-27 19:40:04 -07:00
Łukasz Mierzwa
c8348ba325
Don't set the default value for flags
...
Let envconfig handle defaults, setting it for flags means that we'll always pass a value to the env if there was a default one, meaning that we're unable to override via env
2017-03-27 19:38:58 -07:00
Łukasz Mierzwa
d6189955b2
Add mock data for testing
2017-03-27 19:36:56 -07:00
Łukasz Mierzwa
870036e497
Merge pull request #9 from cloudflare/js-fixes
...
Js fixes
2017-03-27 10:40:46 -07:00
Łukasz Mierzwa
81197861dd
Enable more features for mock data
2017-03-27 10:40:03 -07:00
Łukasz Mierzwa
2c4770ea5d
Call javascript functions via public methods
...
This fixes cookie reset button, which wasn't working due to name conflicts (reset function in summary.js was called instead)
2017-03-27 10:39:20 -07:00
Łukasz Mierzwa
0bc1547bd5
Merge pull request #7 from cloudflare/doc-updates
...
Doc updates
2017-03-27 09:20:20 -07:00
Łukasz Mierzwa
073f8308cb
Merge pull request #8 from cloudflare/go1.8
...
Use Go 1.8 for the base image
2017-03-27 08:53:47 -07:00
Łukasz Mierzwa
9322b8ab0b
Add CONTRIBUTING.md file
...
This file explains how to get started with unsee development
2017-03-27 07:46:42 -07:00
Łukasz Mierzwa
57ae5299a3
Add make targets for handling vendor dir via manul
...
This will install manul and run allow to run all commands needed to maintain all vendor deps
2017-03-27 07:46:42 -07:00
Łukasz Mierzwa
195d57e8c3
Add a note about installing via go install
...
With assets compiled into the binary unsee is now go installable, add this to the docs
2017-03-27 07:46:42 -07:00
Łukasz Mierzwa
9ce559d5d1
Use Go 1.8 for the base image
...
Current image uses Go 1.7.5, there was an issue with haml templates preventing us from using 1.8 but it was fixed, so we should switch to latest Go version
2017-03-26 19:00:16 -07:00
Łukasz Mierzwa
466640284a
Merge pull request #5 from cloudflare/bin-assets
...
Binary assets and other improvements
2017-03-26 17:52:27 -07:00
Łukasz Mierzwa
6096e3a09b
Add port to the list of options
...
PORT env variable is used by gin, but adding it to the list of config options will generate a flag for it and provide value validation
2017-03-26 17:51:30 -07:00
Łukasz Mierzwa
dc1ce44cfb
Merge Dockerfile commands
...
This will help avoid unnecessary image layers
2017-03-26 17:41:17 -07:00
Łukasz Mierzwa
ec08572f0a
Use application/json for haml templates
...
application/javascript was set in commit 5e501844a7 which works, but causes browsers to throw lots of errors in the console, as they try to parse those scripts as javascript, json type still works and doesn't have same issue with browsers
2017-03-26 17:41:17 -07:00
Łukasz Mierzwa
f8420d4632
Use go-bindata-assetfs for static files
...
This allows unsee to be compiled into a single self-contained binary, without any need to external static files or templates
2017-03-26 17:41:17 -07:00
Łukasz Mierzwa
3027137a96
Cleanup make targets and update readme to match it
...
Refactor make targets to make it easier to follow, add missing PORT env variable to the readme.
2017-03-26 17:41:16 -07:00
Łukasz Mierzwa
8279565ed9
Merge pull request #6 from cloudflare/viper
...
Generate flag for each environment key
2017-03-26 17:15:49 -07:00
Łukasz Mierzwa
3de3a9c481
Generate flag for each environment key
...
This allows to set config keys via flags, in additions to current env variable only configuration. Flags are autogenerated from supported env keys.
2017-03-26 13:38:37 -07:00
Łukasz Mierzwa
8fe7f3b890
Merge pull request #4 from cloudflare/autoinstall-deps
...
Cleanup Makefile
2017-03-24 14:24:50 -07:00
Łukasz Mierzwa
6868df6087
Merge pull request #3 from cloudflare/go-1.8
...
Change template script type to application/javascript
2017-03-24 14:21:40 -07:00