Commit Graph

44 Commits

Author SHA1 Message Date
Alexander Makarov
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
Carsten Brandt
59b9065cec ES: fixed issue with storing empty records
fixes #3587
2014-06-04 17:56:42 +02:00
Carsten Brandt
d92281dcda refactored ActiveRecord::unlinkAll() to work will noSQL
issue #3520
2014-06-04 14:28:57 +02:00
Alexander Makarov
ed041f7ade Added missing imports 2014-06-02 18:52:13 +04:00
Alexander Makarov
0003b10b02 ElasticSearch tests fix 2014-06-02 18:14:02 +04:00
Alexander Makarov
905e39ede9 RBAC migration is now aware of custom table names, speeded up RBAC tests 2014-05-07 00:19:33 +04:00
Carsten Brandt
676b366928 adjusted elasticsearch extension to version 1.0 of ES
breaking changes.
2014-05-06 18:14:32 +02:00
Alexander Makarov
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
Qiang Xue
3ba9dcbedc Fixed test break. 2014-04-02 20:26:55 -04:00
Carsten Brandt
745c20538c Merge pull request #2885 branch 'query-filter'
* query-filter:
  added CHANGELOG lines
  added tests for redis
  added proper tests for elasticsearch
  removed unnecessary code duplication
  adjusted tests
  typo
  renamed Query::filter() to Query::filterWhere()
  reverted elasticsearch rename of filter
  Adjusted search model code generated by Gii CRUD generator
  Added support for arbitrary number of parameters for NOT, AND, OR in filter methods of Query
  Gii CRUD generator now uses new addFilter method
  Query::filter() adjustments
  fixes #2002
  Added tests for Query::filter()

Conflicts:
	framework/db/QueryTrait.php
2014-04-02 19:33:40 +02:00
Carsten Brandt
e9c364d2f2 added proper tests for elasticsearch 2014-04-02 19:15:21 +02:00
Carsten Brandt
c572c23c2f adjusted tests 2014-04-02 18:56:49 +02:00
Carsten Brandt
96f1c4c10b renamed Query::filter() to Query::filterWhere() 2014-04-02 18:48:14 +02:00
Qiang Xue
f7a6cb9f7a Refactored AR tests. 2014-03-30 20:46:25 -04:00
Alexander Makarov
ecf019e311 Merge branch 'master' 2014-03-31 02:20:56 +04:00
Alexander Makarov
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +04:00
Alexander Makarov
3c1a8141fd fixes #2002 2014-03-27 12:41:16 +04:00
Alexander Makarov
19327ebd14 Added tests for Query::filter() 2014-03-26 17:09:16 +04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
AlexGx
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02:00
Alexander Mohorev
b2f1b00bf2 code style. operator IF 2014-03-03 21:32:34 +03:00
Alexander Mohorev
c7e8d8b900 @param, @var, @property and @return must declare types as boolean, integer, string, array or null 2014-03-03 20:50:44 +03:00
Alexander Mohorev
6e7edfdf5b short array syntax 2014-03-03 20:21:55 +03:00
Alexander Makarov
4a201c7ad5 Removed unused variables 2014-02-07 13:39:35 +04:00
Alexander Makarov
dd26d39dd8 Removed unused namespace imports 2014-02-07 13:26:00 +04:00
Carsten Brandt
e407d0489c updated elasticsearch querybuilder test to use yiitest index
better not delete all to avoid data loss

pr #2324
2014-02-06 19:31:50 +01:00
Qiang Xue
bad9c0cccc Merge branch 'master' of github.com:mintao/yii2 into mintao-master
Conflicts:
	extensions/yii/elasticsearch/CHANGELOG.md
2014-02-06 13:20:48 -05:00
Florian Fackler
a3724aa4d1 Fixed bug which prevented a field query as described in the example:
```
$result = Article::find()->query(["field" => ["title" => "yii"]])->all();
````
2014-02-05 11:49:33 +01:00
Alexander Kochetov
0ec5643ce3 Unit tests updated 2014-01-19 13:51:56 +04:00
Carsten Brandt
7e961eee85 fixed test break 2014-01-16 11:50:59 +01:00
Carsten Brandt
81d23332df afterFind event in AR is now called after relations have been populated
fixes #1993
2014-01-16 10:28:58 +01:00
Qiang Xue
ab47d58c69 path fixes. 2014-01-10 21:58:50 -05:00
Carsten Brandt
31fece562e fixed test break 2014-01-10 15:39:06 +01:00
Carsten Brandt
5dca1257b2 reverted primaryKey of elasticsearch to be array again
meet the AR interface requirements.
2014-01-09 13:44:12 +01:00
Carsten Brandt
a7b852fcc3 Changed elasticsearch AR primary key handling
now supports mapped primary key when _id is part of source with an
alias.
2014-01-04 04:26:50 +01:00
Carsten Brandt
702cf513ca make elasticsearch tests only work on yiitext index 2013-12-18 17:31:32 +01:00
Qiang Xue
0310935e48 fixed test breaks. 2013-12-10 00:12:17 -05:00
Carsten Brandt
e2b4708bbd added support for updateCounters to elasticsearch
issue #1313
2013-12-09 14:42:28 +01:00
Carsten Brandt
be583a7a22 fixed problem with sorting by id in elasticsearch
issue #1317
2013-11-27 23:27:47 +01:00
Carsten Brandt
1c08c06da8 implemented connection based on CUrl
far better than depending on fat guzzle
2013-11-25 23:32:54 +01:00
Carsten Brandt
5164a1671c finalized Query interface + general cleanup 2013-11-25 20:12:45 +01:00
Carsten Brandt
d56e020109 more random test fixes 2013-11-25 14:07:30 +01:00
Carsten Brandt
613758dda5 refactored elasticsearch COnnection and Command 2013-11-25 13:09:38 +01:00
Carsten Brandt
b081cf5e46 moved elasticsearch to extensions 2013-11-25 03:23:12 +01:00