influxdb/bolt
Tim Raymond 493befbdc7 Enforce default constraints on first/last source
Whenver sources are present, there should be exactly one default source.
Prior to this commit, it was possible to add the first source as a
non-default source and circumvent this invariant. This unfortunately
requires a bit of special-casing logic in s.Add and requires a query to
fetch the number of sources currently persisted.

Tests have been added to cover this as well as deleting the final
source, to ensure that there aren't any odd indexing panics that might
result from trying to find another candidate default source when
deleting.
2016-11-07 18:13:23 -05:00
..
internal Fix bolt scoping and minor kapacitor tickscript updates 2016-11-03 22:25:41 -05:00
alerts.go Fix bolt scoping and minor kapacitor tickscript updates 2016-11-03 22:25:41 -05:00
client.go Update to store alert information in boltdb 2016-11-03 19:52:13 -05:00
client_test.go Update name to chronograf 2016-10-20 09:39:40 -05:00
exploration.go Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
exploration_test.go Update name to chronograf 2016-10-20 09:39:40 -05:00
layouts.go Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
servers.go Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
servers_test.go Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
sources.go Enforce default constraints on first/last source 2016-11-07 18:13:23 -05:00
sources_test.go Enforce default constraints on first/last source 2016-11-07 18:13:23 -05:00
util.go Refactor the exploration store 2016-09-29 09:38:35 -04:00