{"action":"opened","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/4497","repository_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/4497/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/4497/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/4497/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/4497","id":231763505,"number":4497,"title":"After setting filters with configureDefaultFilterValues, they do not show as removable","user":{"login":"mmucklo","id":245122,"avatar_url":"https://avatars2.githubusercontent.com/u/245122?v=3","gravatar_id":"","url":"https://api.github.com/users/mmucklo","html_url":"https://github.com/mmucklo","followers_url":"https://api.github.com/users/mmucklo/followers","following_url":"https://api.github.com/users/mmucklo/following{/other_user}","gists_url":"https://api.github.com/users/mmucklo/gists{/gist_id}","starred_url":"https://api.github.com/users/mmucklo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmucklo/subscriptions","organizations_url":"https://api.github.com/users/mmucklo/orgs","repos_url":"https://api.github.com/users/mmucklo/repos","events_url":"https://api.github.com/users/mmucklo/events{/privacy}","received_events_url":"https://api.github.com/users/mmucklo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-27T00:58:49Z","updated_at":"2017-05-27T00:58:49Z","closed_at":null,"body":"<!--\r\n    Before you open an issue, make sure this one does not already exist.\r\n    Please also read the \"guidelines for contributing\" link above before posting.\r\n-->\r\n\r\n<!--\r\n    If you are reporting a bug, please try to fill in the following.\r\n    Otherwise remove it.\r\n-->\r\n\r\n### Environment\r\n\r\n#### Sonata packages\r\n\r\n```bash\r\n$ composer show sonata-project/*\r\n# Put the result here.\r\nsonata-project/admin-bundle              3.18.2             The missing Symfony Admin Generator\r\nsonata-project/block-bundle              3.3.0              Symfony SonataBlockBundle\r\nsonata-project/cache                     1.0.7              Cache library\r\nsonata-project/core-bundle               3.2.0              Symfony SonataCoreBundle\r\nsonata-project/datagrid-bundle           2.2.1              Symfony SonataDatagridBundle\r\nsonata-project/doctrine-extensions       dev-master aec01f1 Doctrine2 behavioral extensions\r\nsonata-project/doctrine-orm-admin-bundle dev-master ab4ba73 Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle\r\nsonata-project/easy-extends-bundle       dev-master 36bac7e Symfony SonataEasyExtendsBundle\r\nsonata-project/exporter                  1.7.1              Lightweight Exporter library\r\n```\r\n\r\n#### Symfony packages\r\n\r\n```bash\r\n$ composer show symfony/*\r\nsymfony/assetic-bundle          dev-master 0241b13 Integrates Assetic into Symfony2\r\nsymfony/monolog-bundle          v3.0.3             Symfony MonologBundle\r\nsymfony/phpunit-bridge          v3.2.4             Symfony PHPUnit Bridge\r\nsymfony/polyfill-intl-icu       v1.3.0             Symfony polyfill for intl's ICU-related data and classes\r\nsymfony/polyfill-mbstring       v1.3.0             Symfony polyfill for the Mbstring extension\r\nsymfony/polyfill-php54          v1.3.0             Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions\r\nsymfony/polyfill-php55          v1.3.0             Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions\r\nsymfony/polyfill-php56          v1.3.0             Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions\r\nsymfony/polyfill-php70          v1.3.0             Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions\r\nsymfony/polyfill-util           v1.3.0             Symfony utilities for portability of PHP codes\r\nsymfony/psr-http-message-bridge v0.3               PSR HTTP message bridge\r\nsymfony/security-acl            v3.0.0             Symfony Security Component - ACL (Access Control List)\r\nsymfony/swiftmailer-bundle      v2.4.2             Symfony SwiftmailerBundle\r\nsymfony/symfony                 v3.2.4             The Symfony PHP framework```\r\n\r\n#### PHP version\r\n\r\n```bash\r\n$ php -v\r\nPHP 7.0.18 (cli) (built: Apr 18 2017 12:04:39) ( NTS )\r\nCopyright (c) 1997-2017 The PHP Group\r\nZend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies\r\n    with Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans\r\n    with Zend OPcache v7.0.18, Copyright (c) 1999-2017, by Zend Technologies```\r\n\r\n## Subject\r\n\r\n<!--\r\n    Give here as many details as possible.\r\n    Next sections are for ERRORS only.\r\n-->\r\n\r\nA Default filter is not easily removable.\r\n\r\n1) Overrode configureDefaultFilterValues(...) in an Admin class.\r\n2) Added a default filter with ChoiceType::TYPE_NOT_CONTAINS\r\n\r\nDocumentation says class is ChoiceFilter::TYPE_.... but there's no constant in that class\r\nhttps://sonata-project.org/bundles/admin/master/doc/reference/action_list.html\r\n\r\n3) Filter works as expected, however, I'm unable to easily remove it as all I see is a blank filter section when loaded (see screen capture)\r\n\r\n## Steps to reproduce\r\n\r\nSee above\r\n\r\n## Expected results\r\n\r\nA way to remove the filter\r\n\r\n## Actual results\r\n\r\nNo apparent way to remove the filter\r\n\r\n\r\n<img width=\"1060\" alt=\"screen shot 2017-05-26 at 5 57 29 pm\" src=\"https://cloud.githubusercontent.com/assets/245122/26516552/f2688e9a-423c-11e7-921a-e85bd24c0ebc.png\">\r\n\r\n\r\n<!--\r\n    If it's an error message or piece of code, use code block tags,\r\n    and make sure you provide the whole stack trace(s),\r\n    not just the first error message you can see.\r\n    More details here: https://github.com/sonata-project/SonataAdminBundle/blob/3.x/CONTRIBUTING.md#issues\r\n-->\r\n"}}
{"actor":{"display_login":"mmucklo"}}