=UINT))
**Description:**
-`Bitmap` retrieves the indices of all the set bits in a row or column based on whether the row label or column label is given in the query. It also retrieves any attributes set on that row or column.
+`Bitmap` retrieves the indices of all the set bits in a row or column based on whether the row or column argument is provided in the query. It also retrieves any attributes set on that row or column.
**Result Type:** object with attrs and bits.
diff --git a/handler_internal_test.go b/handler_internal_test.go
index 395ec73b6..4603662e6 100644
--- a/handler_internal_test.go
+++ b/handler_internal_test.go
@@ -30,7 +30,7 @@ func TestPostIndexRequestUnmarshalJSON(t *testing.T) {
{json: `{"options": {}}`, expected: postIndexRequest{Options: IndexOptions{}}},
{json: `{"options": 4}`, err: "options is not map[string]interface{}"},
{json: `{"option": {}}`, err: "Unknown key: option:map[]"},
- {json: `{"options": {"columnLabel": "test"}}`, err: "Unknown key: columnLabel:test"},
+ {json: `{"options": {"badKey": "test"}}`, err: "Unknown key: badKey:test"},
}
for _, test := range tests {
actual := &postIndexRequest{}
@@ -65,7 +65,7 @@ func TestPostFrameRequestUnmarshalJSON(t *testing.T) {
{json: `{"options": {}}`, expected: postFrameRequest{Options: FrameOptions{}}},
{json: `{"options": 4}`, err: "options is not map[string]interface{}"},
{json: `{"option": {}}`, err: "Unknown key: option:map[]"},
- {json: `{"options": {"rowLabel": "test"}}`, err: "Unknown key: rowLabel:test"},
+ {json: `{"options": {"badKey": "test"}}`, err: "Unknown key: badKey:test"},
{json: `{"options": {"inverseEnabled": true}}`, expected: postFrameRequest{Options: FrameOptions{InverseEnabled: true}}},
{json: `{"options": {"inverseEnabled": true, "cacheType": "type"}}`, expected: postFrameRequest{Options: FrameOptions{InverseEnabled: true, CacheType: "type"}}},
{json: `{"options": {"inverse": true, "cacheType": "type"}}`, err: "Unknown key: inverse:true"},
diff --git a/pilosa.go b/pilosa.go
index a3e11b826..8f1ae287e 100644
--- a/pilosa.go
+++ b/pilosa.go
@@ -77,9 +77,6 @@ var (
// Regular expression to validate index and frame names.
var nameRegexp = regexp.MustCompile(`^[a-z][a-z0-9_-]{0,63}$`)
-// Regular expression to validate row and column labels.
-var labelRegexp = regexp.MustCompile(`^[A-Za-z][A-Za-z0-9_-]{0,63}$`)
-
// ColumnAttrSet represents a set of attributes for a vertical column in an index.
// Can have a set of attributes attached to it.
type ColumnAttrSet struct {
@@ -141,14 +138,6 @@ func ValidateName(name string) error {
return nil
}
-// ValidateLabel ensures that the label is a valid format.
-func ValidateLabel(label string) error {
- if labelRegexp.Match([]byte(label)) == false {
- return ErrLabel
- }
- return nil
-}
-
// StringInSlice checks for substring a in the slice.
func StringInSlice(a string, list []string) bool {
for _, b := range list {
diff --git a/pilosa_test.go b/pilosa_test.go
index d82e27fa3..41b0d7098 100644
--- a/pilosa_test.go
+++ b/pilosa_test.go
@@ -46,30 +46,6 @@ func TestValidateNameInvalid(t *testing.T) {
}
}
-func TestValidateLabel(t *testing.T) {
- labels := []string{
- "a", "ab", "ab1", "d_e", "A", "Bc", "B1", "aB", "b-c",
- "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
- }
- for _, label := range labels {
- if pilosa.ValidateLabel(label) != nil {
- t.Fatalf("Should be valid label: %s", label)
- }
- }
-}
-
-func TestValidateLabelInvalid(t *testing.T) {
- labels := []string{
- "", "1", "_", "-", "'", "^", "/", "\\", "*", "a:b", "valid?no", "yüce",
- "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1",
- }
- for _, label := range labels {
- if pilosa.ValidateLabel(label) == nil {
- t.Fatalf("Should be invalid label: %s", label)
- }
- }
-}
-
func TestStringInSlice(t *testing.T) {
list := []string{"localhost:10101", "localhost:10102", "localhost:10103"}
substr := "localhost:10101"
diff --git a/webui/assets/main.js b/webui/assets/main.js
index 6a4415a5c..c0a24bdf6 100644
--- a/webui/assets/main.js
+++ b/webui/assets/main.js
@@ -472,7 +472,7 @@ class Autocompleter {
}
init_dynamic_keywords() {
- // hit /schema, parse indexes, frames, rowlabels, columnlabels, add to list
+ // hit /schema, parse indexes, frames, add to list
}
add_keyword() {
@@ -583,4 +583,4 @@ function parse_options(option_str) {
}
}
return options;
-}
\ No newline at end of file
+}
diff --git a/webui/index.html b/webui/index.html
index dc06e310a..75eaa1d5a 100644
--- a/webui/index.html
+++ b/webui/index.html
@@ -55,9 +55,9 @@
Special commands
- :create index test [columnLabel=column]
+ :create index test
:use test
- :create frame foo [rowLabel=row]
+ :create frame foo
:delete index test
:delete frame foo