summaryrefslogtreecommitdiffstats
path: root/test/unit/query_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add filters for "Author's group" and "Author's role" to issues list (#7867).Go MAEDA2024-08-211-0/+60
| | | | | | | Patch by Takenori TAKAKI (user:takenory). git-svn-id: https://svn.redmine.org/redmine/trunk@22975 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add test for r22947 (#41079).Go MAEDA2024-08-111-0/+15
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds test to check @view_issue_watchers@ permission when filter "Watched by" ↵Marius Balteanu2024-05-111-0/+30
| | | | | | (#40412). git-svn-id: https://svn.redmine.org/redmine/trunk@22820 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes issue list filter "Watched by: me" only shows issues watched via group ↵Marius Balteanu2024-05-111-3/+8
| | | | | | for projects with the @view_issue_watchers@ permission (#40412). git-svn-id: https://svn.redmine.org/redmine/trunk@22819 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes random failing tests.Marius Balteanu2024-05-031-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22809 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds estimated remaining hours issue query column calculated based on ↵Marius Balteanu2024-05-011-0/+28
| | | | | | | | estimated time and done ratio (#37862). Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22800 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "any" operator for text filters to exclude empty text values (#39991).Go MAEDA2024-01-021-1/+14
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22583 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Extend "contains" operator in "Parent task" filter to support multiple issue ↵Go MAEDA2023-12-291-0/+25
| | | | | | | | | IDs (#39805). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22577 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Lint/SymbolConversion (#39887).Go MAEDA2023-12-201-4/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22531 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates Rails to 7.1.2 (#36320).Marius Balteanu2023-11-271-4/+4
| | | | | | Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@22488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Rails/RedundantActiveRecordAllMethod (#37248).Go MAEDA2023-10-121-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22340 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix SQL error when passing invalid value to "Related to" filter (#38301).Go MAEDA2023-06-211-0/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22256 e93f8b46-1217-0410-a6f0-8f06a7374b81
* New issues filter operators "has been", "has never been", and "changed from" ↵Go MAEDA2023-05-111-0/+67
| | | | | | | | | (#38527). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22240 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make the "Any searchable text" filter search only open issues when the ↵Go MAEDA2023-05-011-0/+15
| | | | | | status filter is set to "open" (#38402). git-svn-id: https://svn.redmine.org/redmine/trunk@22221 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "Any searchable text" filter doesn't support the project filter with the ↵Go MAEDA2023-04-181-0/+30
| | | | | | value "my projects" or "my bookmarks" (#38402). git-svn-id: https://svn.redmine.org/redmine/trunk@22203 e93f8b46-1217-0410-a6f0-8f06a7374b81
* OR search with multiple terms for "starts with" and "ends with" filter ↵Go MAEDA2023-04-171-0/+28
| | | | | | | | | operators (#38456). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22202 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change the notation of "contains any of" filter operator to "*~" (#38435).Go MAEDA2023-04-161-4/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "contains any of" operator is not taken into account in File and File ↵Go MAEDA2023-04-161-0/+30
| | | | | | description filters (#38435). git-svn-id: https://svn.redmine.org/redmine/trunk@22195 e93f8b46-1217-0410-a6f0-8f06a7374b81
* "contains any of" operator for text filters to perform OR search of multiple ↵Go MAEDA2023-04-141-0/+31
| | | | | | | | | terms (#38435). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22188 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add Parent task filter and column to Spent time (#37623).Go MAEDA2023-04-111-0/+26
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@22177 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change the behavior of the "Any searchable text" filter from OR search to ↵Go MAEDA2023-04-051-0/+35
| | | | | | | | | AND search (#38402). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix a bug the "doesn't contain" operator returns no issues if the search ↵Go MAEDA2023-04-051-2/+47
| | | | | | | | | finds no issues (#38402). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22168 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "Any searchable text" filter for issues (#38402).Go MAEDA2023-04-051-0/+30
| | | | | | | Patch by Go MAEDA and Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22164 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Multiple issue ids in "Related to" filter (#38301).Go MAEDA2023-03-251-0/+8
| | | | | | | Patch by Tomoko Shimizu, Ko Nagase, and Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@22156 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ruby 2.7: Fix RuboCop offense Performance/MapCompact (#38134).Go MAEDA2023-01-171-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22055 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use `require_relative` instead of `require File.expand_path(..., __FILE__)` ↵Go MAEDA2023-01-011-1/+1
| | | | | | | | | (#38093). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Query display types should accept only known types (#37925).Marius Balteanu2022-11-281-0/+14
| | | | | | | Patch by Alexander Meindl. git-svn-id: https://svn.redmine.org/redmine/trunk@21965 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Rails/Pluck (#37248).Go MAEDA2022-10-281-13/+13
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Default query should not be applied if the query is not allowed to be set as ↵Go MAEDA2022-07-311-0/+1
| | | | | | | | | the default (#37499). Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21748 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add test for #37349.Marius Balteanu2022-06-271-0/+18
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21687 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix filter for chained User custom fields returns 500 internal server error ↵Marius Balteanu2022-06-271-0/+12
| | | | | | when filtering after a float value (#37349). git-svn-id: https://svn.redmine.org/redmine/trunk@21684 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix failing test caused by r21646 (#37255).Marius Balteanu2022-06-191-2/+3
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21657 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Rails/RefuteMethods (#36824, #30924).Go MAEDA2022-03-261-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21501 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/HashSyntax (Don't mix styles in the same hash) ↵Go MAEDA2022-03-261-2/+2
| | | | | | (#36824, #30924). git-svn-id: https://svn.redmine.org/redmine/trunk@21500 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow to filter issues by its version status with shared versions (#36824, ↵Marius Balteanu2022-03-241-0/+15
| | | | | | | | | #30924). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21499 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes for Performance/StringIdentifierArgument introduced in RuboCop ↵Go MAEDA2021-12-291-3/+3
| | | | | | Performance 1.13.0 (#35142). git-svn-id: http://svn.redmine.org/redmine/trunk@21330 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add tests for #35764.Marius Balteanu2021-10-051-0/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21239 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use sanitize_sql_like in Query#sql_contains (#35073).Marius Balteanu2021-10-031-0/+15
| | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21232 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Default issue query (#7360).Go MAEDA2021-07-061-0/+61
| | | | | | | Patch by Katsuya HIDAKA (the author of https://github.com/hidakatsuya/redmine_default_custom_query), Takenori TAKAKI, Olivier Chabert, and Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21061 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter issues by file description (#34715).Go MAEDA2021-06-141-0/+42
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21034 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Duplicate entries in issue filter values (#35201).Go MAEDA2021-05-071-0/+13
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@20990 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter issues by notes (#5893).Go MAEDA2021-04-211-0/+41
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@20955 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that column header is clickable even when the column is not actually ↵Go MAEDA2021-03-141-0/+10
| | | | | | | | | sortable (#33548). Patch by Vincent Robert and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20783 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Subprojects issues are not displayed on main project when all subprojects ↵Go MAEDA2020-12-271-0/+11
| | | | | | | | | are closed (#34297). Patch by Yuichi HARADA and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@20693 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of test/unit/query_test.rbToshi MARUYAMA2020-11-151-12/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20381 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of test/unit/query_test.rbToshi MARUYAMA2020-10-261-6/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20201 e93f8b46-1217-0410-a6f0-8f06a7374b81