Skip to content

Commit

Permalink
3.5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljurecko committed Aug 30, 2017
1 parent a496fc8 commit 4324a0b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
env:
matrix:
- MONGODB_VERSION=unstable
- MONGODB_VERSION=3.5.9 COVERALLS="-service=travis-ci" BUILD=true
- MONGODB_VERSION=3.5.10 COVERALLS="-service=travis-ci" BUILD=true
- MONGODB_VERSION=3.4
- MONGODB_VERSION=3.2
- MONGODB_VERSION=3.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Mongoeye provides a quick overview of the data in your MongoDB database.
* *Fast:*  [the fastest](https://github.com/mongoeye/mongoeye/blob/master/_misc/comparison.png) schema analyzer for MongoDB
* *Single binary:*  pre-built [binaries](https://github.com/mongoeye/mongoeye/releases) for Windows, Linux, and MacOS (Darwin)
* *Local analysis:*  quick local analysis using a parallel algorithm (MongoDB 2.0+)
* *Remote analysis:*  distributed analysis in database using the aggregation framework (MongoDB 3.5.9+)
* *Remote analysis:*  distributed analysis in database using the aggregation framework (MongoDB 3.5.10+)
* *Rich features:*  [histogram](#value-histogram) (value, length, weekday, hour), [most frequent values](#frequency-of-values), ...
* *Integrable:*  [table](#table-output), [JSON or YAML output](#json-and-yaml-output)

Expand Down Expand Up @@ -354,7 +354,7 @@ hourHistogram: [47, 73, 18, 26, 30, 46, 91, 13, 28, 11, 52, 99, 76, 25, 94, 51,
#### Other options
```
-t, --timezone timezone, eg. UTC, Europe/Berlin (default "local")
--use-aggregation analyze with aggregation framework (mongodb 3.5.9+)
--use-aggregation analyze with aggregation framework (mongodb 3.5.10+)
--string-max-length max string length (default 100)
--array-max-length analyze only first N array elements (default 20)
--concurrency number of local processes (default 0 = auto)
Expand Down
4 changes: 2 additions & 2 deletions analysis/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ const NameSeparator = "."
const ArrayItemMark = "[]"

// AggregationMinVersion is minimal MongoDB version that allows analysis using aggregation framework
var AggregationMinVersion = []int{3, 5, 9}
var AggregationMinVersion = []int{3, 5, 10}

// AggregationMinVersionStr (string) is minimal MongoDB version that allows analysis using aggregation framework
var AggregationMinVersionStr = "3.5.9"
var AggregationMinVersionStr = "3.5.10"

// RandomSampleMinVersion is minimal MongoDB version that allows analysis using random samples
var RandomSampleMinVersion = []int{3, 2, 0}
Expand Down
18 changes: 9 additions & 9 deletions mongo/expr/date_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,17 @@ func TestDayOfWeekLocation(t *testing.T) {
defer tests.TearDownTestCol(c)

c.Insert(bson.M{
"sun": helpers.ParseDate("2017-01-01T05:00:00+00:00"),
"mon": helpers.ParseDate("2017-01-02T00:00:00+00:00"),
"tue": helpers.ParseDate("2017-01-03T10:00:00+00:00"),
"sun": helpers.ParseDate("2017-01-01T05:00:00+00:00"),
"mon": helpers.ParseDate("2017-01-02T00:00:00+00:00"),
"tue": helpers.ParseDate("2017-01-03T10:00:00+00:00"),
})

p := NewPipeline()
p.AddStage("project", bson.M{
"_id": 0,
"sun": DayOfWeek(Field("sun"), locationNY), // - 05:00
"sun2": DayOfWeek(Field("mon"), locationNY), // - 05:00
"tue": DayOfWeek(Field("tue"), locationNY), // - 05:00
"sun": DayOfWeek(Field("sun"), locationNY), // - 05:00
"sun2": DayOfWeek(Field("mon"), locationNY), // - 05:00
"tue": DayOfWeek(Field("tue"), locationNY), // - 05:00
})

out := bson.M{}
Expand Down Expand Up @@ -344,9 +344,9 @@ func TestHourLocation(t *testing.T) {
assert.Equal(t, 19, out["19"])
assert.Equal(t, 14, out["14"])
assert.Equal(t, 20, out["20"])
assert.Equal(t, 9, out["9"])
assert.Equal(t, 6, out["6"])
assert.Equal(t, 8, out["8"])
assert.Equal(t, 9, out["9"])
assert.Equal(t, 6, out["6"])
assert.Equal(t, 8, out["8"])
}

func TestHour_ObjectId(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tests/compatibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package tests

import "testing"

var aggregationAlgorithmMinVersion = []int{3, 5, 9}
var aggregationAlgorithmMinVersion = []int{3, 5, 10}

// HasMongoDBSampleStageSupport returns true if MongoDB support $sample aggregation.
func HasMongoDBSampleStageSupport() bool {
Expand Down

0 comments on commit 4324a0b

Please sign in to comment.