Commit Graph

7226 Commits

Author SHA1 Message Date
Paul Klimov
95b7ffc066 Fix #13278: DbQueryDependency created (#13384)
`DbQueryDependency` created
2017-02-09 12:30:53 +02:00
Klimov Paul
319e27c45c Fixed yii\db\BaseActiveRecord::deleteAll() changes method signature declared by yii\db\ActiveRecordInterface::deleteAll() 2017-02-09 12:16:04 +02:00
Carsten Brandt
89f66ae422 fixed version increment of release command 2017-02-08 10:08:37 +01:00
Carsten Brandt
0e6c6635e5 prepare for next release 2017-02-08 10:05:17 +01:00
Carsten Brandt
278548029a release version 2.0.11.2 2017-02-08 10:04:32 +01:00
Carsten Brandt
e82b40abee avoid duplicate slashes on empty values
fixes #13522
close #13525
2017-02-08 09:41:04 +01:00
Carsten Brandt
c67e713f75 CHANGELOG for #13533 2017-02-08 09:34:18 +01:00
Elvira Sheina
1ee91fe4ab Fix BC in Exist Validator (#13533)
Related to #13318 and #13475

fixes #13533
close #13534
2017-02-08 09:13:40 +01:00
Alexander
97c43c2480 Fixes #13501: Fixed yii\rbac\DbManager::getRule() and yii\rbac\DbManager::getRules() to properly handle resource data came from Rule table when using PostgreSQL 2017-02-04 15:51:12 +03:00
Carsten Brandt
25b78aa615 Fixes #13508: Fixed duplicate attachment of behavior BC break
Fixes BC break introduced in
954c771fdb (diff-d45d5e14cbb9739c2e1c63b53ba5e363L669)
2017-02-04 15:47:04 +03:00
Pages.Solutions
5eded299e0 Added missing SK translation (#13510) [skip ci] 2017-02-03 22:22:16 +03:00
Carsten Brandt
13b853c527 fixed version 2017-02-02 19:55:34 +01:00
Carsten Brandt
7737745fab prepare for next release 2017-02-02 19:54:01 +01:00
Carsten Brandt
2cce93adae release version 2.0.11.1 2017-02-02 19:53:16 +01:00
Carsten Brandt
284cadfe03 Made ActionColumn Yii::t() tags static again (#13489)
* Made ActionColumn Yii::t() tags static again

this was changed in 2.0.11 and cause the messages translation to not
recognize them anymore.

* Fixed formatting
2017-02-02 19:46:42 +01:00
Carsten Brandt
d74d18cee4 restored messages for el and fa
issue #13489
2017-02-02 19:43:34 +01:00
Carsten Brandt
9086280298 restored messages for sk
issue #13489
2017-02-02 19:39:56 +01:00
Carsten Brandt
5b2d174dfb re-added missing russian translations
fixes #13500
2017-02-02 19:22:05 +01:00
Carsten Brandt
36521c50e0 instructions on signing tag on release repo 2017-02-02 14:35:16 +01:00
Nobuo Kihara
46e355025f messages/ja/yii.php reverted [ci skip] (#13497) 2017-02-02 12:57:26 +01:00
Bizley
3b7e97dab6 changelog corrected (#13495) 2017-02-02 08:53:56 +01:00
Niek Oost
a849e0e4e9 Improved description of format of $controllers
Improved explanation of the format of the $controllers property. This explains what is meant by "prefixed with the module ID"

close #13488
2017-02-02 01:33:20 +01:00
Bizley
1749c46c5d Fixes #11502: Fixed yii\console\controllers\MessageController to properly populate missing languages in case of extraction with "db" format 2017-02-02 02:50:34 +03:00
Carsten Brandt
68ee789fdc update german translation 2017-02-01 19:44:45 +01:00
Carsten Brandt
eadf793454 prepare for next release 2017-02-01 17:51:32 +01:00
Carsten Brandt
c19b2f7dc8 release version 2.0.11 2017-02-01 17:46:29 +01:00
Carsten Brandt
1eec5c17bc make UniqueValidator compatible with ActiveRecordInterface again
fixes #13485
2017-02-01 13:30:19 +01:00
Elvira Sheina
0df8020dd0 Fix for #13485 2017-02-01 13:20:32 +01:00
Carsten Brandt
603c422938 resort changelog 2017-01-31 14:25:00 +01:00
Carsten Brandt
1531e19969 fixed misplaced CHANGELOG lines 2017-01-31 14:09:01 +01:00
Alexander Makarov
2c5ab1e07b Used non-regex solution for trimming slashes 2017-01-31 13:42:38 +01:00
Alexander Makarov
f9e83008f4 Prefer strpos to substr 2017-01-31 13:42:37 +01:00
ErickSkrauch
c641513583 Implementation of support UrlRule with relative host definition
close #12697
fixes #12691
2017-01-31 13:42:31 +01:00
Carsten Brandt
1e4484748b Merge pull request #13477 from yiisoft/urlmanager-test
Refactored UrlManagerTest to cover more use cases
2017-01-31 11:54:03 +01:00
Elvira Sheina
d39c491022 Fix BC breaking #13475 (#13478) 2017-01-31 11:56:46 +03:00
Carsten Brandt
8faedcbd7c Refactored UrlManagerTest to cover more use cases
UrlManager is a complex class with a large bunch of options that needs
to be tested
and we had a few regressions in the past even though there are already a
lot of tests
covering it. Test coverage measured by lines does not help us determine
how good it is tested,
we need test coverage for every major path through the code.

I have refactored the UrlManager tests to reflect the different options
and cases to
have a better overview of which cases are covered and which are not.

UrlManager has two main operation modes:

- "default" url format, which is the simple case. These are covered by
  methods in `UrlManagerTest`.

- "pretty" url format. This is the complex case, which involves UrlRules
  and url parsing.
  I have created two separate classes for this case:
  Url creation for "pretty" url format is covered by
`UrlManagerCreateUrlTest`.
  Url parsing for "pretty" url format is covered by
`UrlManagerParseUrlTest`.

Each of the test classes have a `getUrlManager` method that creates a
UrlManager instance
with a specific configuration and certain variations in options.
It is also tested that options that are not relevant in a certain
operation mode have no effect on the result.

To make sure to not remove tests that have existed before, here is a map
of where code has been moved.
The following test methods existed in the [old test
class](4187718c14/tests/framework/web/UrlManagerTest.php):

- `testCreateUrl()` split between UrlManagerTest and
  UrlManagerCreateUrlTest variations should all be covered by
`variationsProvider()`.
- `testCreateUrlWithNullParams()` covered by UrlManagerCreateUrlTest by
  `testWithNullParams()`
- `testCreateUrlWithEmptyPattern()`
- `testCreateAbsoluteUrl()` covered in UrlManagerCreateUrlTest by new
  tests via `variationsProvider()`.
- `testCreateAbsoluteUrlWithSuffix()` covered in UrlManagerCreateUrlTest
  by `testAbsolutePatterns`.

- `testParseRequest()` covered by UrlManagerParseUrlTest, UrlNormalizer
  related parts moved to UrlNormalizerTest.
- `testParseRESTRequest()` moved to UrlManagerParseUrlTest
- `testHash()` covered in different tests in UrlManagerCreateUrlTest.
- `testMultipleHostsRules($host)` kept as is.

Before:

    $ vendor/bin/phpunit tests/framework/web/UrlManagerTest.php
    ...
    OK (12 tests, 89 assertions)

After:

    $ vendor/bin/phpunit tests/framework/web/UrlManager*.php
    ...
    OK (72 tests, 648 assertions)
2017-01-31 02:38:35 +01:00
Brandon Kelly
5609e918de Fixed some malformed @var tags (#13468) [skip ci] 2017-01-30 11:42:52 +03:00
PowerGamer1
37b8cbb2d0 Fixes #12758: Added the ability to use instances of \yii\db\Query class as values in the \yii\db\QueryBuilder::insert() method 2017-01-29 00:54:46 +03:00
voroks
25f08afc96 Fixes #8293: yii\db\Query can be passed to insert method in yii\db\QueryBuilder 2017-01-28 23:47:26 +03:00
Elvira Sheina
240bca515a Use low-level query in UniqueValidator (#13461)
Fixes #13453, relates to #13098
2017-01-28 18:38:06 +03:00
Alexander Makarov
920877c815 Fixed WidgetEvent construction 2017-01-28 11:55:24 +03:00
user57376
7c1693479f Fixes #12000: Added EVENT_INIT to widget 2017-01-28 01:27:05 +03:00
Alexander Makarov
767400da19 Fixes for #13457 as commented by @cebe 2017-01-28 01:22:48 +03:00
Alexander Makarov
bede9feba5 Fixes #13453: Reverted #10896 commit 729ddc5b76
It was causing side effects: https://github.com/yiisoft/yii2/issues/13453
2017-01-28 01:16:14 +03:00
Dmitriy Bashkarev
be4ebdd049 Fixes #13134: Added logging URL rules (bashkarev) 2017-01-27 19:03:45 +03:00
Alexander Makarov
f20c0177af Fixes #7435: Added EVENT_BEFORE_RUN, EVENT_AFTER_RUN and corresponding methods to yii\base\Widget 2017-01-27 18:56:22 +03:00
Alexey Rogachev
37f19a0256 Fixes #13300, #13307, #13310, #13312
- Bug #13300: Allow pjax with "data-pjax" with no value in `yii.js`.
- Bug #13307: Preventing of race conditions in script filter in `yii.js` works incorrectly.
- Bug #13310: Handle relative and absolute URLs coincidence in CSS filter in `yii.js`.
- Bug #13312: `skipOuterContainers` option was incorrectly passed to pjax in `handleAction` in `yii.js`.
- Partially fixes #13299.

Adds tests for #8014, #11921, #10974, #11494, #10358, #10097.
2017-01-25 11:00:13 +03:00
Revin Roman
d3bde96852 Fix Russian messages (#13438) [skip ci] 2017-01-24 15:03:31 +03:00
Alexander Makarov
c8e467f919 Removed changelog entry for reverted #13393 2017-01-24 14:03:41 +03:00
Alexander Makarov
eab3489ec7 Reverted #13393: Removed redundant call to yii\helpers\Url::to() in yii\web\Controller::redirect() (reverted from commit e5d169beb8) 2017-01-24 13:09:57 +03:00