37 Commits

Author SHA1 Message Date
55ea8eee1e Fix sorting link for multisort with default order (#19733)
* Add sort tests

* Fix link for multisort

* changelog

* Fix test
2023-01-10 12:16:04 +01:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
e352649a75 Improve DataFilterTest (#19341) 2022-04-08 13:48:17 +04:00
463a67bc73 Add ability to turn the sorting off for a clicked column in GridView with multisort (#18826)
* Add ability to turn the sorting off for a clicked column in GridView with multisort

* Update Sort.php

* Fix SortTest

* Update CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>
2021-08-11 13:37:37 +02:00
bd2b1f25f0 Fix #18552: Fix bug with yii\data\SqlDataProvider not properly handling SQL with ORDER BY clause 2021-03-10 23:28:45 +03:00
13cda988e7 #18475: Correct conditional configuration of db property 2021-01-13 11:35:50 +03:00
f544883148 Fix #18472: Fix initializing db component configuration 2021-01-11 14:54:39 +03:00
ee0fe97a45 Fix #18370: Add option to provide a string replacement for null value in yii\data\DataFilter 2020-11-10 16:13:21 +03:00
67728476ec Fix #16418: Fixed yii\data\Pagination::getLinks() to return links to the first and the last pages regardless of the current page 2020-09-21 00:18:52 +03:00
a19dd48b79 Fix #7622: Allow yii\data\ArrayDataProvider to control the sort flags for sortModels through yii\data\Sort::sortFlags property 2020-02-04 11:56:35 +03:00
26789ed04e Fixes #17093 by reverting #16891 (#17154) 2019-02-23 00:29:20 +03:00
e1623868f9 Fixes #16891: Fixed Pagination::totalCount initialized incorrectly 2019-01-01 13:24:14 -05:00
e53fc0ded1 Fixes #16558: Added cloning yii\data\ActiveDataProvider::query property when ActiveDataProvider object is cloned 2018-08-05 15:18:24 +03:00
5550ad2021 Fixes #15595: yii\data\DataFilter can now handle lt,gt,lte and gte on yii\validators\DateValidator 2018-02-05 22:54:45 +07:00
71c541773f PHPDoc fix 2018-01-23 13:17:25 +02:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
3dd55954e8 Fixed tests 2017-11-03 01:27:13 +03:00
fb23b0d0ea Code style fixes 2017-11-01 02:43:02 +03:00
376006a2d5 Data filter enhancements and docs
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
2017-10-26 11:32:52 +03:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
0c0942d6e2 Enable phpdoc_add_missing_param_annotation rule in php-cs-fixer config. (#14681) [skip ci] 2017-08-21 01:57:23 +03:00
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
473598ac8c Added support for sorting by expression to \yii\data\Sort 2017-05-09 17:26:49 +03:00
385eb88048 Added yii\data\Sort::parseSortParams
allowing customize other params request formats in descendant class.

close #13170
2017-04-26 01:42:45 +02:00
98871123c9 Fixed ignored params when using count in SqlDataProvider 2017-04-25 10:54:18 +02:00
ae7378974e Fixes #13376: Data provider now automatically sets an ID so there is no need to set it manually in case multiple data providers are used with pagination 2017-04-01 18:27:27 +03:00
79f16b1492 Fixes #13883: \yii\data\SqlDataProvider now provides automatic fallback for the case when totalCount is not specified 2017-04-01 16:37:25 +03:00
3f8e8a89eb Used more specific unit test assertions in framework tests 2017-03-14 09:45:31 +03:00
7d82bbcd37 Fixes #13467: yii\data\ActiveDataProvider no longer queries models if models count is zero 2017-02-20 12:00:00 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
e327d018b4 added test for pagination params
verify #12569
2016-09-20 09:48:44 +02:00
90b9ed87bd Added yii\data\Sort::setAttributeOrders() 2016-08-31 14:03:34 +03:00
8ba032d147 refactored database tests
- changed test class naming for easier copying and searching of classes
- made base tests abstract and made MySQL an equal citisen in the test
  hierarchie
- added missing db specific test classes
2016-06-20 19:26:43 +02:00
030913e7f0 Fixed code style and indentations 2016-05-03 14:51:25 +03:00
bc6cc9bfce Unit test for yii\data\Pagination added 2015-05-27 15:48:18 +03:00
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00