Joshua Conner
5987917c0a
dashboard: remove protocol from google fonts links so they work with htttps
2014-04-04 15:40:39 -07:00
Tomás Senart
b6053d6a86
Making code formatting consistent.
...
$ gofmt -s -w && goimports -w
2014-03-27 14:19:08 +01:00
Ulexus
85301dbc4e
Add mod/lock timeout.
...
Added timeout goroutine to stop waiting on lock after timeout
expiration.
This necessitated reworking the flow of the acquire handler. createNode
now _only_ creates the node; it no longer waits on the lock itself.
getLockIndex (perhaps this is poorly named) extracts out the lock
checking routine so that it can be used by "get" and "watch", both.
get() was added to instantaneously attempt to acquire a lock with no
waiting.
If a lock fails to acquire, for whatever reason, an error is returned,
resulting in a code 500 to the client.
2014-03-26 10:39:48 -06:00
Ben Johnson
dde2b71850
fix(mod/lock): correct watch index to remove cpu load
...
The waitIndex was being pulled from the wrong node in the lock parent which caused the watch to be returned immediately. This caused a continuous set of calls while a client was waiting for a lock.
2014-02-26 17:26:25 -07:00
Peter Woodman
5de1caf057
Fix directory browsing in dashboard
2014-02-13 22:42:21 -05:00
Ben Johnson
137f87c414
Merge branch 'mod-lock-fixes' of https://github.com/nabeken/etcd into nabeken-mod-lock-fixes
...
Conflicts:
mod/lock/v2/acquire_handler.go
2014-02-10 08:05:57 -07:00
Brandon Philips
102d8e543d
bump(mod/dashboard): rebuild the dashboard for the latest fixes
2014-02-07 15:17:00 -08:00
Ed Rooth
4c0c256a9d
fix(dashboard): disable some tab indexes.
2014-02-07 15:09:30 -08:00
Ed Rooth
f2452a4a3c
fix(build): Use ngmin. Fix all introduced erros in previous commits.
2014-02-05 22:41:10 -08:00
Ed Rooth
4e21405647
fix(dashboard): bugs in key browser and stats page.
...
Fixed key add, key delete bugs. More refactoring.
2014-02-05 22:40:04 -08:00
Ed Rooth
06f990236c
refactor(dashboard): Restructured front-end dashboard code.
2014-02-05 22:39:46 -08:00
Brandon Philips
d7d20d1c3d
bump(github.com/stretchr/testify): 9cc77fa25329013ce07362c7742952ff887361f2
2014-02-02 16:57:36 -08:00
Brandon Philips
13b6c1e684
chore(*): make everything use goven
...
for i in github.com/BurntSushi/toml github.com/coreos/go-etcd/etcd github.com/coreos/go-log/log github.com/gorilla/context github.com/rcrowley/go-metrics bitbucket.org/kardianos/osext github.com/coreos/go-systemd/journal github.com/coreos/raft code.google.com/p/goprotobuf/proto ; do goven -copy -rewrite $i; done
2014-02-01 23:44:18 -08:00
Brandon Philips
ea8a353545
chore(*): gofmt everything
2014-02-01 23:44:10 -08:00
TANABE Ken-ichi
1273875a00
fix(mod/lock): Use CreatedIndex in the first node to watch
...
ModifiedIndex in the lock directory is not incremented and the event
store has only 1000 histories for now.
Acquiring a lock is not queued while (index - ModifiedIndex) > 1000 and
prevIndex exists.
2014-01-22 20:00:15 +09:00
TANABE Ken-ichi
4c2942f9f9
fix(mod/lock): Use dedicated channel to shutdown goroutine properly
...
If closeChan is available and stopWatchChan was closed by defer
select selects a single channel randomly. This causes a panic sending to closed
channel.
2014-01-22 19:42:07 +09:00
Ben Johnson
cde184fdbf
Fix mod/lock and mod/leader return error codes.
2014-01-14 07:57:30 -07:00
Ben Johnson
2ce587ebc7
Merge branch 'master' of https://github.com/coreos/etcd into mod-leader
2013-12-16 07:47:31 -07:00
Ben Johnson
61227d7477
mod/leader
2013-12-13 15:25:03 -07:00
Brandon Philips
bcf692d775
chore(mod/dashboard): rebuild to the latest version
2013-12-13 12:44:24 -08:00
Brandon Philips
7e5aa3137d
fix(server/registry): use url.Value.Encode()
...
Instead of open coding url encoding which lead to error, make it real
and use the library.
2013-12-13 12:43:01 -08:00
Brandon Philips
e24d2fdb6c
fix(mod/dashboard): fix after api changes
...
use node instead of kvs and value
2013-12-13 12:36:29 -08:00
Ben Johnson
4bec461db1
Refactor mod/lock.
2013-12-08 15:26:58 -07:00
Ben Johnson
b784ced517
Update mod/lock versioning.
2013-12-04 22:39:59 -07:00
Ben Johnson
5d865e321c
Merge branch 'master' of https://github.com/coreos/etcd into mod-lock
...
Conflicts:
server/v2/tests/delete_handler_test.go
server/v2/tests/get_handler_test.go
server/v2/tests/post_handler_test.go
server/v2/tests/put_handler_test.go
third_party/github.com/coreos/go-etcd/etcd/requests.go
2013-12-04 22:36:53 -07:00
Ben Johnson
e76b7d1e8b
Add mod/lock version.
2013-12-04 22:24:04 -07:00
Ben Johnson
f3d438a93f
Add mod/lock connection monitoring.
2013-12-04 16:23:27 -07:00
Ben Johnson
d8e9838c38
Lock testing.
2013-11-29 16:33:49 -07:00
Ben Johnson
22c2935ddb
Initial mod_lock acquire.
2013-11-27 16:59:05 -07:00
Ben Johnson
74ad50efa6
Merge branch 'master' of https://github.com/coreos/etcd into mod-lock
...
Conflicts:
mod/mod.go
2013-11-27 14:47:13 -07:00
Ben Johnson
32861246b9
mod/lock
2013-11-27 14:36:14 -07:00
Brandon Philips
64e49726cd
fix(mod): redirect dashboard to /dashboard
2013-11-23 23:31:28 -08:00
Brandon Philips
b190c4250a
chore(mod/dashboard/resources): use the latest version of the code
2013-11-21 17:23:40 -08:00
Brandon Philips
4c06e19cf2
fix(mod/dashboard): grab the leader URL
...
query etcd to find the URL of the leader before making any http requests
that can't be redirected from a browser like PUT/POST and DELETE.
2013-11-21 17:12:58 -08:00
Ben Johnson
228754a99c
mod_lock
2013-11-19 16:12:58 -07:00
Ben Johnson
cba2611c68
Renamed configuration parameters.
2013-11-15 00:13:32 -05:00
Brandon Philips
ca7e61052d
refactor(mod): remove the /etcd/ prefix
...
Originally we were going to move all of the API endpoints to /etcd/ so
that you could move etcd traffic over a multiplexed HTTP proxy with
other service but since we don't have a strong use case for this just
remove this for now.
2013-11-13 06:15:35 -08:00
Brandon Philips
84be60c920
feat(dashboard): use all of the latest js/css
...
rebuild all of the js and css as go binaries
2013-11-08 17:48:02 -08:00
Brandon Philips
bfe33bd3c4
feat(dashboard): have stats use the v2 API
2013-11-08 17:45:55 -08:00
Brandon Philips
c91cb72ee2
feat(dashboard): have browser use the v2 api
2013-11-08 17:41:04 -08:00
Rob Szumski
d045f43cda
bug(css): Reset line-height to prevent jumping
2013-11-08 16:59:58 -08:00
Rob Szumski
7ca09579c2
feat(dashboard): Sort machine list to prevent jumping
2013-11-08 16:59:52 -08:00
Brandon Philips
4fab919fcb
fix(dashboard): use a more memory friendly bindata
2013-11-08 16:59:37 -08:00
Brandon Philips
5620f88635
feat(server): insert the mod path
2013-11-08 16:59:30 -08:00
Rob Szumski
56bbab74ca
bug(back button): back button now is disabled when invalid
2013-11-08 14:09:36 -08:00
Rob Szumski
59b2eb4618
feature(selection): prevent selection of non-text elements with CSS
2013-11-08 14:09:36 -08:00
Rob Szumski
98d1209ca2
chore(dashboard) update color ranges
2013-11-08 14:09:35 -08:00
Rob Szumski
d12f97c8cf
chore(dashboard): Remove restangular
2013-11-08 14:09:35 -08:00
Rob Szumski
713d50951b
fix(dashboard): fix bug in toggling views
2013-11-08 14:09:35 -08:00
Rob Szumski
40142cbacc
feat(dashboard): Notate leader in machine list
2013-11-08 14:09:35 -08:00