Commit graph

2854 commits

Author SHA1 Message Date
Matthew Jaffee
b53db06a6e
Merge pull request #1216 from jaffee/move-config-obj
move pilosa.Config to pilosa/server.Config
2018-04-19 16:05:08 -05:00
Matthew Jaffee
23f6acc165
panic if NewCommand errors on NewServer 2018-04-19 15:37:08 -05:00
Matthew Jaffee
876ed56e30
move pilosa.Config to pilosa/server.Config
step 1 of #1203

The Config object is really just a specification of the options to pilosa
server, so it makes sense to have it in that package.
2018-04-19 14:51:42 -05:00
Travis Turner
5a740eb1d9
Merge pull request #1212 from travisturner/remove-input-defintion-docs
remove references to Input Defintion from the docs
2018-04-18 11:23:54 -05:00
Travis Turner
8c2387b45e
remove references to Input Defintion from the docs 2018-04-18 11:06:53 -05:00
Travis Turner
7f71b1649c
Merge pull request #1209 from travisturner/remove-index-timequantum
Remove Index.TimeQuantum
2018-04-18 10:10:23 -05:00
Travis Turner
e7151eb2a8
Remove Index.TimeQuantum 2018-04-18 08:17:26 -05:00
Travis Turner
590b7c30ab
Merge pull request #1207 from travisturner/security-manager-to-api
Remove SecurityManager. Implement api restrictions in api package.
2018-04-18 07:30:28 -05:00
Travis Turner
e60d11a23e
change references from "function" to "method" 2018-04-17 17:07:41 -05:00
Matthew Jaffee
ede383f8eb
Merge pull request #1205 from jaffee/1194-deprecate-rangeenabled
deprecate RangeEnabled, but leave in API
2018-04-17 16:39:10 -05:00
Travis Turner
5468065213
improve apiFunc error handling. change slice to map in function validation. 2018-04-17 13:01:36 -05:00
Matthew Jaffee
e56b8717b5
add better inverseEnabled with field test 2018-04-17 09:00:57 -05:00
Matthew Jaffee
58492c7eab
remove period in CHANGELOG 2018-04-17 07:54:25 -05:00
Travis Turner
0a8d573fb3
WIP: Remove SecurityManager. Implement api restrictions in api package. 2018-04-16 17:12:28 -05:00
Matthew Jaffee
c7f2d0f675
update unreleased section of CHANGELOG with rangeEnabled deprecation 2018-04-16 16:16:14 -05:00
Matthew Jaffee
fe0ba6280f
deprecate RangeEnabled, but leave in API
the RangeEnabled option now has no effect, but it still exists in the API. A few
tests still use it to ensure this. This would only be considered a breaking
change if someone was relying on Pilosa to enforce the RangeEnabled: false
option to prevent fields being created in certain frames. This seems unlikely.
2018-04-16 16:08:04 -05:00
Matthew Jaffee
d34f3354bb
Merge pull request #1200 from jaffee/1170-global-defaults
remove global defaults from config.go
2018-04-15 17:59:21 -05:00
Matthew Jaffee
7233597f35
remove DefaultConfig global (only used once). Fix data-dir comment 2018-04-15 17:20:14 -05:00
Matthew Jaffee
de29ddbb25
Merge pull request #1198 from jaffee/writerto-fix
use io.WriterTo instead of custom
2018-04-13 12:46:46 -05:00
Matthew Jaffee
0c35094bfc
few more docs tweaks 2018-04-13 10:21:47 -05:00
Yuce Tekol
8fb4df96a4
Merge pull request #1189 from yuce/1187-index-required-for-fragment-nodes
[TRIVIAL] index param is required for /fragment/nodes
2018-04-13 04:28:31 +03:00
Matthew Jaffee
3f303d1098
remove global defaults from config.go
these were occaisionally referenced elsewhere in the codebase - in all but one
case, there were workarounds that are actually better I think.

In the one case there wasn't I created a single top level DefaultConfig object
which is instantiated with all the default values and can be referred to if
necessary.

There was a bug in fragment.go with the way MaxWritesPerRequest was treated if
it was 0. Elsewhere, 0 meant no limit, but here, it would have caused a division
by 0.

Changed the default metrics provider from "nop" to "none", although "nop" will
still work. Previously, any value other than "statsd" or "expvar" was treated as
"nop", but I've changed this behavior to return an error if an invalid string is
provided. I think this is better behavior, because in the case that someone
bothered to change the default, they were probably interested in actually
getting stats, and might be annoyed when it silently failed.
2018-04-12 19:52:48 -05:00
Yuce Tekol
3695a8e889
Updated with master 2018-04-13 03:50:26 +03:00
Yuce Tekol
cde6082869
Merge branch 'master' into 1187-index-required-for-fragment-nodes 2018-04-13 03:43:17 +03:00
Yuce Tekol
e6dbdcb836
Merge pull request #1188 from yuce/tutorial-update
Updated tutorials
2018-04-13 03:42:36 +03:00
Yuce Tekol
a04ae99fb3
updated cluster tutorial with feedback 2018-04-13 03:41:59 +03:00
Matthew Jaffee
8ec801a732
use io.WriterTo instead of custom 2018-04-12 16:37:49 -05:00
Matthew Jaffee
4343214001
Merge pull request #1197 from jaffee/handler-api-refactoring
Handler api refactoring
2018-04-12 12:56:32 -05:00
Matthew Jaffee
04f5d5875c
api docs, rename funcs, refactor usage of internal
All exported funcs in api.go are now documented

Several poorly named methods of API and Cluster were renamed. Particularly, the
word Fragment was often changed to Slice in cases where it was really a slice
being specified and not a fragment.

several methods which received or returned internal data structures have been
refactored to be more opaque.

Deprecation logging was added to input definition methods.
2018-04-12 11:28:35 -05:00
Matthew Jaffee
9257029da5
simplify Status endpoint
had to update test which was relying on a fake ClusterStatus implementation. Now
the status endpoint uses information directly from Cluster.Nodes and
Cluster.state - which is what Server (the usual ClusterStatus impl) uses, so it
should make no difference for real clusters.
2018-04-11 14:25:02 -05:00
Matthew Jaffee
9daef2180c
rename a number of API methods 2018-04-11 13:49:51 -05:00
Travis Turner
ea2921c192
Merge pull request #1192 from travisturner/inverse-slice-on-remote
make sure that slices is treated as inverseSlices on inverse calls
2018-04-11 13:30:51 -05:00
Matthew Jaffee
feec5f07e1
add more doc comments to api 2018-04-11 13:30:35 -05:00
Travis Turner
0d27139c04
test the inverseSlice fix 2018-04-11 12:51:26 -05:00
Matthew Jaffee
07ca6d57ad
variety of cleanup in api and handler
don't export QueryValidationSpecRequired
add docs to some methods
simplify /debug/vars handling using expvar.Handler()
implement Version in API and simplify
2018-04-11 09:42:05 -05:00
Travis Turner
3d595e6966
make sure that slices is treated as inverseSlices on inverse calls 2018-04-11 08:25:43 -05:00
Matthew Jaffee
dd5b38f4ef
Merge pull request #1190 from jaffee/1151-http-refactor
1151 http refactor
2018-04-10 10:55:10 -05:00
Matthew Jaffee
401c9682b8
remove commented code and fix double-NewAPI 2018-04-10 09:40:28 -05:00
Matthew Jaffee
07610560df
Merge branch 'master' into 1151-http-refactor 2018-04-10 08:10:25 -05:00
Matthew Jaffee
96e953e6e0
rename var to be more descriptive 2018-04-09 16:42:50 -05:00
Matthew Jaffee
f8cb579187
get tests passing 2018-04-09 14:29:43 -05:00
Yuce Tekol
6d3f079b7a
updated row/col labels in getting started 2018-04-06 17:34:46 +03:00
Yuce Tekol
cc521e5c91
index param is required for /fragment/nodes 2018-04-05 22:29:03 +03:00
Yuce Tekol
81cac4775f
fix cluster config link 2018-04-05 19:53:05 +03:00
Yuce Tekol
17468e7d90
Updated tutorials 2018-04-05 19:43:40 +03:00
Travis Turner
1764d5a9bf
Merge pull request #1180 from travisturner/remove-rowcol-labels
Remove rowcol labels
2018-04-03 22:37:59 -05:00
Matthew Jaffee
be4965d962
fixup logger, handler.FileSystem 2018-04-03 16:09:11 -07:00
Yuce Tekol
c36dd395e6
All tests pass 2018-04-03 15:20:33 -07:00
Yuce Tekol
8336784d57
More API updates; removed Cluster, Holder, etc from Handler 2018-04-03 15:01:36 -07:00
Yuce Tekol
72526f753c
Moved more of handler to API 2018-04-03 14:52:59 -07:00