From da49ccfe3a544ae37ec8936790550141ad2849a7 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 19 Apr 2021 11:15:17 +0200 Subject: [PATCH 1/3] 3.97 --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ src/Mapper/BaseMapper.php | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6418f8f742..50e1dde42c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,33 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [3.97.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.96.0...3.97.0) - 2021-04-19 +### Added +- [[#7033](https://github.com/sonata-project/SonataAdminBundle/pull/7033)] Added "block.admin_preview" block in order to show a preview for admin lists in dashboard ([@phansys](https://github.com/phansys)) +- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::SORT_ORDER` constant to use it instead of `_sort_order` string. ([@franmomu](https://github.com/franmomu)) +- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::SORT_BY` constant to use it instead of `_sort_by` string. ([@franmomu](https://github.com/franmomu)) +- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::PAGE` constant to use it instead of `_page` string. ([@franmomu](https://github.com/franmomu)) +- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::PER_PAGE` constant to use it instead of `_per_page` string. ([@franmomu](https://github.com/franmomu)) +- [[#7066](https://github.com/sonata-project/SonataAdminBundle/pull/7066)] Added generic for ModelManager class ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#7063](https://github.com/sonata-project/SonataAdminBundle/pull/7063)] Added `XEditableExtension::FIELD_DESCRIPTION_MAPPING` to expose mapping between FieldDescription types and xEditable types ([@franmomu](https://github.com/franmomu)) +- [[#7039](https://github.com/sonata-project/SonataAdminBundle/pull/7039)] Added `MapperInterface` ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#7037](https://github.com/sonata-project/SonataAdminBundle/pull/7037)] Generics for Datagrid and DatagridInterface ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#7005](https://github.com/sonata-project/SonataAdminBundle/pull/7005)] Information about the matching filters in the search results. ([@phansys](https://github.com/phansys)) + +### Changed +- [[#7074](https://github.com/sonata-project/SonataAdminBundle/pull/7074)] Changed `TemplateRegistryExtension` constructor to `@internal`. ([@franmomu](https://github.com/franmomu)) +- [[#7038](https://github.com/sonata-project/SonataAdminBundle/pull/7038)] Calls to `FieldDescriptionInterface::getOptions()` by calls to `FieldDescriptionInterface::getOption()` in views. ([@phansys](https://github.com/phansys)) +- [[#7044](https://github.com/sonata-project/SonataAdminBundle/pull/7044)] Calls to `Filter::getOptions()` by `FilterInterface::getOption()` in views. ([@phansys](https://github.com/phansys)) +- [[#7032](https://github.com/sonata-project/SonataAdminBundle/pull/7032)] Update to AdminLTE 2.4.15 ([@core23](https://github.com/core23)) + +### Fixed +- [[#7085](https://github.com/sonata-project/SonataAdminBundle/pull/7085)] Fixed main sidebar toggling ([@jordisala1991](https://github.com/jordisala1991)) +- [[#7079](https://github.com/sonata-project/SonataAdminBundle/pull/7079)] AddIdentifierToQuery phpdoc to reflect the fact that it shouldn't be called with an empty array of identifier ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#7080](https://github.com/sonata-project/SonataAdminBundle/pull/7080)] Using a non existing `Session` instance from the `Request` object at `AbstractAdmin::getListMode()`. ([@phansys](https://github.com/phansys)) +- [[#7021](https://github.com/sonata-project/SonataAdminBundle/pull/7021)] Fixed using the admin translation domain as default for `form_help` twig block. ([@franmomu](https://github.com/franmomu)) +- [[#7055](https://github.com/sonata-project/SonataAdminBundle/pull/7055)] Fixed using the hardcode `id` parameter instead of calling `AdminInterface::getIdParameter()` method. ([@franmomu](https://github.com/franmomu)) +- [[#7007](https://github.com/sonata-project/SonataAdminBundle/pull/7007)] Fixed using invalid values in `field_options` of filters. ([@franmomu](https://github.com/franmomu)) + ## [3.96.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.95.0...3.96.0) - 2021-04-06 ### Added - [[#6992](https://github.com/sonata-project/SonataAdminBundle/pull/6992)] "or_group" filter option at `SearchHandler::search()`. ([@phansys](https://github.com/phansys)) diff --git a/src/Mapper/BaseMapper.php b/src/Mapper/BaseMapper.php index 722e321c3d..dca8f5da09 100644 --- a/src/Mapper/BaseMapper.php +++ b/src/Mapper/BaseMapper.php @@ -38,7 +38,7 @@ abstract class BaseMapper public function __construct(BuilderInterface $builder, AdminInterface $admin) { @trigger_error(sprintf( - 'The %s class is deprecated since sonata-project/admin-bundle 3.x and will be removed in version 4.0.', + 'The %s class is deprecated since sonata-project/admin-bundle 3.97 and will be removed in version 4.0.', __CLASS__ ), \E_USER_DEPRECATED); From cdd0fe656cfc2d8d99796ea822bab4b3ee219d36 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 19 Apr 2021 11:29:54 +0200 Subject: [PATCH 2/3] Update CHANGELOG.md Co-authored-by: Javier Spagnoletti --- CHANGELOG.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50e1dde42c..57e5f55dcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,29 +5,29 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [3.97.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.96.0...3.97.0) - 2021-04-19 ### Added - [[#7033](https://github.com/sonata-project/SonataAdminBundle/pull/7033)] Added "block.admin_preview" block in order to show a preview for admin lists in dashboard ([@phansys](https://github.com/phansys)) -- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::SORT_ORDER` constant to use it instead of `_sort_order` string. ([@franmomu](https://github.com/franmomu)) -- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::SORT_BY` constant to use it instead of `_sort_by` string. ([@franmomu](https://github.com/franmomu)) -- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::PAGE` constant to use it instead of `_page` string. ([@franmomu](https://github.com/franmomu)) -- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::PER_PAGE` constant to use it instead of `_per_page` string. ([@franmomu](https://github.com/franmomu)) +- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::SORT_ORDER` constant to use it instead of `_sort_order` string ([@franmomu](https://github.com/franmomu)) +- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::SORT_BY` constant to use it instead of `_sort_by` string ([@franmomu](https://github.com/franmomu)) +- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::PAGE` constant to use it instead of `_page` string.([@franmomu](https://github.com/franmomu)) +- [[#7078](https://github.com/sonata-project/SonataAdminBundle/pull/7078)] Added `DatagridInterface::PER_PAGE` constant to use it instead of `_per_page` string ([@franmomu](https://github.com/franmomu)) - [[#7066](https://github.com/sonata-project/SonataAdminBundle/pull/7066)] Added generic for ModelManager class ([@VincentLanglet](https://github.com/VincentLanglet)) - [[#7063](https://github.com/sonata-project/SonataAdminBundle/pull/7063)] Added `XEditableExtension::FIELD_DESCRIPTION_MAPPING` to expose mapping between FieldDescription types and xEditable types ([@franmomu](https://github.com/franmomu)) - [[#7039](https://github.com/sonata-project/SonataAdminBundle/pull/7039)] Added `MapperInterface` ([@VincentLanglet](https://github.com/VincentLanglet)) - [[#7037](https://github.com/sonata-project/SonataAdminBundle/pull/7037)] Generics for Datagrid and DatagridInterface ([@VincentLanglet](https://github.com/VincentLanglet)) -- [[#7005](https://github.com/sonata-project/SonataAdminBundle/pull/7005)] Information about the matching filters in the search results. ([@phansys](https://github.com/phansys)) +- [[#7005](https://github.com/sonata-project/SonataAdminBundle/pull/7005)] Information about the matching filters in the search results ([@phansys](https://github.com/phansys)) ### Changed -- [[#7074](https://github.com/sonata-project/SonataAdminBundle/pull/7074)] Changed `TemplateRegistryExtension` constructor to `@internal`. ([@franmomu](https://github.com/franmomu)) -- [[#7038](https://github.com/sonata-project/SonataAdminBundle/pull/7038)] Calls to `FieldDescriptionInterface::getOptions()` by calls to `FieldDescriptionInterface::getOption()` in views. ([@phansys](https://github.com/phansys)) -- [[#7044](https://github.com/sonata-project/SonataAdminBundle/pull/7044)] Calls to `Filter::getOptions()` by `FilterInterface::getOption()` in views. ([@phansys](https://github.com/phansys)) +- [[#7074](https://github.com/sonata-project/SonataAdminBundle/pull/7074)] Changed `TemplateRegistryExtension` constructor to `@internal` ([@franmomu](https://github.com/franmomu)) +- [[#7038](https://github.com/sonata-project/SonataAdminBundle/pull/7038)] Calls to `FieldDescriptionInterface::getOptions()` by calls to `FieldDescriptionInterface::getOption()` in views ([@phansys](https://github.com/phansys)) +- [[#7044](https://github.com/sonata-project/SonataAdminBundle/pull/7044)] Calls to `Filter::getOptions()` by `FilterInterface::getOption()` in views ([@phansys](https://github.com/phansys)) - [[#7032](https://github.com/sonata-project/SonataAdminBundle/pull/7032)] Update to AdminLTE 2.4.15 ([@core23](https://github.com/core23)) ### Fixed - [[#7085](https://github.com/sonata-project/SonataAdminBundle/pull/7085)] Fixed main sidebar toggling ([@jordisala1991](https://github.com/jordisala1991)) - [[#7079](https://github.com/sonata-project/SonataAdminBundle/pull/7079)] AddIdentifierToQuery phpdoc to reflect the fact that it shouldn't be called with an empty array of identifier ([@VincentLanglet](https://github.com/VincentLanglet)) -- [[#7080](https://github.com/sonata-project/SonataAdminBundle/pull/7080)] Using a non existing `Session` instance from the `Request` object at `AbstractAdmin::getListMode()`. ([@phansys](https://github.com/phansys)) -- [[#7021](https://github.com/sonata-project/SonataAdminBundle/pull/7021)] Fixed using the admin translation domain as default for `form_help` twig block. ([@franmomu](https://github.com/franmomu)) -- [[#7055](https://github.com/sonata-project/SonataAdminBundle/pull/7055)] Fixed using the hardcode `id` parameter instead of calling `AdminInterface::getIdParameter()` method. ([@franmomu](https://github.com/franmomu)) -- [[#7007](https://github.com/sonata-project/SonataAdminBundle/pull/7007)] Fixed using invalid values in `field_options` of filters. ([@franmomu](https://github.com/franmomu)) +- [[#7080](https://github.com/sonata-project/SonataAdminBundle/pull/7080)] Using a non existing `Session` instance from the `Request` object at `AbstractAdmin::getListMode()` ([@phansys](https://github.com/phansys)) +- [[#7021](https://github.com/sonata-project/SonataAdminBundle/pull/7021)] Fixed using the admin translation domain as default for `form_help` twig block ([@franmomu](https://github.com/franmomu)) +- [[#7055](https://github.com/sonata-project/SonataAdminBundle/pull/7055)] Fixed using the hardcode `id` parameter instead of calling `AdminInterface::getIdParameter()` method ([@franmomu](https://github.com/franmomu)) +- [[#7007](https://github.com/sonata-project/SonataAdminBundle/pull/7007)] Fixed using invalid values in `field_options` of filters ([@franmomu](https://github.com/franmomu)) ## [3.96.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.95.0...3.96.0) - 2021-04-06 ### Added From c922b0371af7853fb91f24107ae3b7e0d66824b5 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 19 Apr 2021 11:56:59 +0200 Subject: [PATCH 3/3] Upgrade note --- UPGRADE-3.x.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UPGRADE-3.x.md b/UPGRADE-3.x.md index fa817d744a..968e1a0fd9 100644 --- a/UPGRADE-3.x.md +++ b/UPGRADE-3.x.md @@ -1,7 +1,7 @@ UPGRADE 3.x =========== -UPGRADE FROM 3.xx to 3.xx +UPGRADE FROM 3.96 to 3.97 ========================= ### Admin-lte v2.4