Skip to content

Commit

Permalink
Prepare 5.1.0 release (#1250)
Browse files Browse the repository at this point in the history
* Update elasticsearch test version to 5.1.2
* Update CHANGELOG.md
* Run `make lint`
* Update composer dev branch
  • Loading branch information
ruflin authored Feb 14, 2017
1 parent b4df1ab commit e47dd0e
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 25 deletions.
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@ All notable changes to this project will be documented in this file based on the

## [Unreleased](https://github.com/ruflin/Elastica/compare/5.0.0...master)

- Date math in index names is now escaped in URI
- Added a check for paths that already have date math escaped
### Backward Compatibility Breaks

### Bugfixes

### Added

### Improvements

### Deprecated


## [5.1.0](https://github.com/ruflin/Elastica/compare/5.0.0...5.1.0)

### Backward Compatibility Breaks

Expand All @@ -24,6 +34,8 @@ All notable changes to this project will be documented in this file based on the

- added `\Elastica\Script\ScriptId` to reference stored scripts by ID
- added `\Elastica\Query\AbstractGeoShape::RELATION_WITHIN`
- Date math in index names is now escaped in URI
- Added a check for paths that already have date math escaped

### Improvements

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 @@ All library issues should go to the [issue tracker from github](https://github.c

Compatibility
-------------
This release is compatible with all elasticsearch 5.x releases. It was tested with version 5.0.0
This release is compatible with all elasticsearch 5.x releases. It was tested with version 5.1.2.


Contributing
Expand All @@ -29,4 +29,4 @@ Dependencies
------------
| Project | Version | Required |
|---------|---------|----------|
|[Elasticsearch](https://github.com/elasticsearch/elasticsearch/tree/5.0)|5.0|yes|
|[Elasticsearch](https://github.com/elasticsearch/elasticsearch/tree/5.1)|5.1|yes|
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "5.0.x-dev"
"dev-master": "5.1.x-dev"
}
}
}
2 changes: 1 addition & 1 deletion env/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:5.0.2
FROM docker.elastic.co/elasticsearch/elasticsearch:5.1.2
MAINTAINER Nicolas Ruflin <[email protected]>

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install mapper-attachments
Expand Down
2 changes: 1 addition & 1 deletion lib/Elastica/Query/AbstractGeoShape.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ abstract class AbstractGeoShape extends AbstractQuery
const RELATION_CONTAINS = 'contains';

/**
* Elasticsearch path of the geo_shape field
* Elasticsearch path of the geo_shape field.
*
* @var string
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Elastica/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static function isDateMathEscaped($requestUri)

/**
* Escapes date math symbols within request URI.
*
* @see https://www.elastic.co/guide/en/elasticsearch/reference/5.x/date-math-index-names.html
*
* @param string $requestUri
Expand Down
2 changes: 1 addition & 1 deletion test/lib/Elastica/Test/Aggregation/ScriptedMetricTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testScriptedMetricAggregation()
$this->_checkScriptInlineSetting();
$agg = new ScriptedMetric(
'scripted',
"params._agg.durations = []",
'params._agg.durations = []',
'params._agg.durations.add(doc.end.value - doc.start.value)',
'return params._agg.durations'
);
Expand Down
2 changes: 0 additions & 2 deletions test/lib/Elastica/Test/Bulk/Action/AbstractDocumentTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php
namespace Elastica\Test\Bulk\Action;

use Elastica\Bulk\Action;
use Elastica\Bulk\Action\AbstractDocument;
use Elastica\Index;
use Elastica\Script\Script;
use Elastica\Test\Base as BaseTest;
use Elastica\Type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Elastica\Exception\PartialShardFailureException;
use Elastica\JSON;
use Elastica\Query;
use Elastica\ResultSet;
use Elastica\ResultSet\DefaultBuilder;

class PartialShardFailureExceptionTest extends AbstractExceptionTest
Expand Down
1 change: 0 additions & 1 deletion test/lib/Elastica/Test/Query/GeoDistanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
use Elastica\Document;
use Elastica\Query;
use Elastica\Query\GeoDistance;
use Elastica\Query\MatchAll;
use Elastica\Test\Base as BaseTest;

class GeoDistanceTest extends BaseTest
Expand Down
1 change: 0 additions & 1 deletion test/lib/Elastica/Test/Query/InnerHitsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace Elastica\Test\Query;

use Elastica\Document;
use Elastica\Query;
use Elastica\Query\AbstractQuery;
use Elastica\Query\HasChild;
use Elastica\Query\InnerHits;
Expand Down
2 changes: 0 additions & 2 deletions test/lib/Elastica/Test/Query/MatchPhrasePrefixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace Elastica\Test\Query;

use Elastica\Document;
use Elastica\Query\MatchPhrase;
use Elastica\Query\MatchPhrasePrefix;
use Elastica\Test\Base as BaseTest;

Expand Down Expand Up @@ -39,7 +38,6 @@ public function testToArray()
$this->assertEquals($expectedArray, $query->toArray());
}


/**
* @group functional
*/
Expand Down
1 change: 0 additions & 1 deletion test/lib/Elastica/Test/Query/MatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ public function testMatchPhrasePrefixType()
$this->assertEquals(2, $resultSet->count());
}


/**
* @group unit
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace Elastica\Test\QueryBuilder\DSL;

use Elastica\Query\Exists;
use Elastica\Query\Term;
use Elastica\QueryBuilder\DSL;

class AggregationTest extends AbstractDSLTest
Expand Down
1 change: 0 additions & 1 deletion test/lib/Elastica/Test/Transport/GuzzleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use Elastica\Document;
use Elastica\Query;
use Elastica\ResultSet;
use Elastica\ResultSet\DefaultBuilder;
use Elastica\Test\Base as BaseTest;

Expand Down
1 change: 0 additions & 1 deletion test/lib/Elastica/Test/Transport/HttpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use Elastica\Document;
use Elastica\Query;
use Elastica\ResultSet;
use Elastica\ResultSet\DefaultBuilder;
use Elastica\Test\Base as BaseTest;

Expand Down
10 changes: 5 additions & 5 deletions test/lib/Elastica/Test/Type/MappingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ public function testDynamicTemplate()
'raw' => [
'type' => 'keyword',
'include_in_all' => false,
]
]
]
]
]
],
],
],
],
],
],
$newMapping,
'Mapping of dynamic "multiname" field should have been created with the type "{dynamic_type}" resolved to "text". '.
Expand Down
2 changes: 1 addition & 1 deletion test/lib/Elastica/Test/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getEscapeDateMathPairs()
['<log-{now/d}>,log-2011.12.01/log/_refresh', '%3Clog-%7Bnow%2Fd%7D%3E%2Clog-2011.12.01/log/_refresh'],
[
'<logstash-{now/d-2d}>,<logstash-{now/d-1d}>,<logstash-{now/d}>/_search',
'%3Clogstash-%7Bnow%2Fd-2d%7D%3E%2C%3Clogstash-%7Bnow%2Fd-1d%7D%3E%2C%3Clogstash-%7Bnow%2Fd%7D%3E/_search'
'%3Clogstash-%7Bnow%2Fd-2d%7D%3E%2C%3Clogstash-%7Bnow%2Fd-1d%7D%3E%2C%3Clogstash-%7Bnow%2Fd%7D%3E/_search',
],
[
'<elastic\\\\{ON\\\\}-{now/M}>', // <elastic\\{ON\\}-{now/M}>
Expand Down

0 comments on commit e47dd0e

Please sign in to comment.