Matthew Jaffee
28acc29a10
refactoring pilosa/server
...
trying to separate internal an external concerns in pilosa.Server - it should
handle Cluster, Holder, etc. while pilosa/server handles things with external
deps - e.g. Logger, Stats, Handler, etc. Using functional options in
pilosa.Server now.
2018-04-23 13:35:39 -05:00
Travis Turner
3282cf8cbe
remove PATCH frame endpoint
2018-04-23 11:32:41 -05:00
Travis Turner
5177b243f3
use ValCount return type (instead of SumCount, MinCount, and MaxCount)
2018-04-19 17:03:49 -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
0a8d573fb3
WIP: Remove SecurityManager. Implement api restrictions in api package.
2018-04-16 17:12:28 -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
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
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
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
Matthew Jaffee
401c9682b8
remove commented code and fix double-NewAPI
2018-04-10 09:40:28 -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
cc521e5c91
index param is required for /fragment/nodes
2018-04-05 22:29:03 +03: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
Yuce Tekol
2ebc1914be
More API functions
2018-04-03 14:34:39 -07:00
Yuce Tekol
6c3f3ac0f0
Added API struct; moved query logic to API
2018-04-03 13:41:15 -07:00
Travis Turner
9a2aeac6f8
Clean up logger; make it honor --log-path flag.
...
Add functional options to NewGossipMemberSet.
2018-03-27 08:40:04 -05:00
Cody Soyland
4e1ff7c86f
Merge branch 'cluster-resize' into webui-interface
2018-03-19 14:02:01 -05:00
Cody Soyland
b36e8c7a14
Combine two subpackages and consolidate doc.go into filestystem.go for simplicity.
2018-03-19 08:39:17 -05:00
Travis Turner
2a462d5e42
make sure cluster.Nodes[].IsCoordinator values get updated. return old coordinator node in response.
2018-03-08 14:18:10 -06:00
Cody Soyland
0a6f2d07f6
Move statik filesystem implemention to subpackage of statik package.
2018-03-08 08:38:29 -06:00
Travis Turner
d6896ea0a5
rename StaticFileSystem to FileSystem. re-org statik files
2018-03-07 11:12:05 -06:00
Travis Turner
e03dee9386
put Statik behind an interface
2018-03-06 17:02:08 -06:00
Yuce Tekol
c4fea5ecc7
Merge pull request #1140 from yuce/cluster-resize-handler-validation
...
Cluster resize handler validation
2018-02-23 18:35:49 +03:00
Yuce Tekol
82d2b31d52
Merged query arg validator
2018-02-23 15:21:05 +03:00
Yuce Tekol
fcfc54eeeb
Merge pull request #1121 from yuce/652-validate-query-arguments
...
Validate /fragment/nodes arguments. Fixes #652
2018-02-22 23:01:34 +03:00
Travis Turner
52edeb72b4
add validation around node-remove conditions
2018-02-22 12:15:27 -06:00
Yuce Tekol
25e244ebdf
Updates
2018-02-22 17:33:41 +03:00
Travis Turner
c4f6a6beda
Merge branch 'master' into cluster-resize
2018-02-21 16:23:53 -06:00
Travis Turner
da125e323c
broadcast.SendSync field creation and deletion to all nodes
2018-02-21 14:56:38 -06:00
Yuce Tekol
0417439afa
Validate all relevant endpoints; Changed how validation key is composed
2018-02-21 18:03:05 +03:00
Yuce Tekol
c1f9dd4e59
Added query arg validator middleware; updated Gorilla/mux
2018-02-20 15:38:58 +03:00
Yuce Tekol
8e6041d0fe
Validate /fragment/nodes arguments. Fixes #652
2018-02-19 13:55:19 +03:00
Yuce Tekol
8db3a9b64d
Merge pull request #1109 from yuce/1069-all-recalculate-caches
...
Spread recalculate caches to all nodes. Fixes #1069
2018-02-12 22:00:37 +03:00
Cody Soyland
b08d1ce3d3
Merge pull request #1102 from codysoyland/cluster-resize-validate-set-coordinator
...
Fix node id validation on set-coordinator
2018-02-12 11:25:30 -06:00
Yuce Tekol
c2d16f44e3
Spread recalculate caches to all nodes. Fixes #1069
2018-02-12 04:12:35 +03:00
Cody Soyland
b3532a617f
Fix error message (panics since err == nil)
2018-02-08 16:50:44 -06:00
Cody Soyland
01c2ced8ae
Add back missing WebUI handler
2018-02-08 13:09:00 -06:00
Travis Turner
86dbbbf393
don't require oldNode in SetCoordinator()
2018-02-02 15:58:51 -06:00
Travis Turner
216ba7a41e
Use NodeID instead of URI for node identification
2018-02-02 15:58:46 -06:00
Travis Turner
2fdc8048c5
Merge branch 'master' into cluster-resize
2018-01-23 12:17:40 -06:00
Travis Turner
5fa7dfd63d
allow for QueryResultTypeNil
2018-01-22 18:04:41 -06:00
Travis Turner
56ad70e149
Add QueryResult.Type to protobuf message to distiguish results at the client
2018-01-22 15:27:49 -06:00