summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@22015 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merge r21965 from trunk to 4.2-stable (#37925).Marius Balteanu2022-11-291-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21969 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merge r21833 to 4.2-stable (#37268).Marius Balteanu2022-09-261-4/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21848 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r21686 and r21687 to 4.2-stable (#36940).Marius Balteanu2022-06-281-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21691 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r21684 and r21685 to 4.2-stable (#37349).Marius Balteanu2022-06-281-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21689 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r21645-r21646 and r21657 to 4.2-stable (#37255).Marius Balteanu2022-06-201-2/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21659 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r20990 from trunk to 4.2-stable (#35201).Go MAEDA2021-05-071-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@20991 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r20956 from trunk to 4.2-stable (#35115).Go MAEDA2021-04-211-1/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@20957 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
* Unnecessary database access when IssueQuery class is defined (#33290).Go MAEDA2021-03-191-13/+28
| | | | | | | Patch by Kevin Fischer. git-svn-id: http://svn.redmine.org/redmine/trunk@20830 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that column header is clickable even when the column is not actually ↵Go MAEDA2021-03-141-1/+1
| | | | | | | | | sortable (#33548). Patch by Vincent Robert and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20783 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow to use watch_by filter in the global issues list (#34700).Go MAEDA2021-02-111-1/+1
| | | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@20744 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Subprojects issues are not displayed on main project when all subprojects ↵Go MAEDA2020-12-271-4/+4
| | | | | | | | | 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
* shorten long line of Query#sql_for_custom_fieldToshi MARUYAMA2020-12-121-3/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20640 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of Query#relative_date_clauseToshi MARUYAMA2020-12-101-1/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20607 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of Query#sql_for_fieldToshi MARUYAMA2020-12-091-17/+78
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20588 e93f8b46-1217-0410-a6f0-8f06a7374b81
* shorten long line of Query#add_custom_fields_filtersToshi MARUYAMA2020-12-041-3/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20570 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at ActiveRecord scope lambda of app/models/query.rbToshi MARUYAMA2020-11-091-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20317 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of app/models/query.rbToshi MARUYAMA2020-09-171-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20039 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove an unused variable in Query#add_chained_custom_field_filters (#33728).Go MAEDA2020-09-071-1/+0
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@20007 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at app/models/query.rbToshi MARUYAMA2020-08-091-5/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19972 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of app/models/query.rbToshi MARUYAMA2020-07-211-9/+21
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19931 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/query.rbToshi MARUYAMA2020-07-111-12/+27
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19880 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that totals of custom fields may not be sorted as configured (#33281).Go MAEDA2020-05-081-2/+7
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19758 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix sort does not work with group by datetime columns (#33110).Jean-Philippe Lang2020-04-051-1/+6
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19655 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix a RuboCop offense Style/MultipleComparison (#33083).Go MAEDA2020-03-071-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19563 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Projects filter "Subproject of" does not work when the given value is "My ↵Go MAEDA2020-03-041-1/+1
| | | | | | | | | projects" or "My bookmarks" (#33083). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19559 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add system setting for default results display format of project query (#32818).Go MAEDA2020-02-111-1/+5
| | | | | | | Patch by Takenori TAKAKI and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19505 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow adding user groups as watchers for issues (#4511).Go MAEDA2020-02-061-2/+2
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19498 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Issue relations filter lacks "is not" (#32546).Go MAEDA2019-12-121-1/+1
| | | | | | | Patch by Alexander Achenbach. git-svn-id: http://svn.redmine.org/redmine/trunk@19363 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceAfterComma in app/models/query.rbToshi MARUYAMA2019-11-241-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19256 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in app/models/query.rbToshi MARUYAMA2019-11-221-0/+11
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19173 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in app/models/query.rbToshi MARUYAMA2019-11-201-4/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19097 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add anonymous user to author list in issue/time query (#16904).Jean-Philippe Lang2019-11-101-0/+1
| | | | | | Patch by Yuichi HARADA and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19065 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in app/models/query.rbToshi MARUYAMA2019-11-081-11/+13
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18967 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option to filter after my bookmarked projects (#32302, #29482, #31355).Go MAEDA2019-10-231-2/+6
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18842 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/ParenthesesAroundCondition in ↵Toshi MARUYAMA2019-10-221-1/+1
| | | | | | app/models/query.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18833 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option to switch between table list and board list (#29482).Jean-Philippe Lang2019-10-191-0/+16
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18765 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter after project custom fields (#29482).Jean-Philippe Lang2019-10-191-0/+5
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18764 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter after projects (#29482).Jean-Philippe Lang2019-10-191-1/+1
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18762 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filters for Projects page (#29482).Jean-Philippe Lang2019-10-191-0/+1
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18761 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "attr_writer" instead of "attr_accessor" for QueryColumn#sortableToshi MARUYAMA2019-10-071-1/+2
| | | | | | QueryColumn#sortable is already defined in this class. git-svn-id: http://svn.redmine.org/redmine/trunk@18616 e93f8b46-1217-0410-a6f0-8f06a7374b81
* "starts with" and "ends with" filter operators for string values (#31879).Go MAEDA2019-09-251-5/+17
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18534 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't rescue Exception class (#31387).Go MAEDA2019-05-251-1/+1
| | | | | | | Patch by Go MAEDA and Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changes Query#as_params for more complete serialization (#31276).Go MAEDA2019-04-301-0/+2
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@18103 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use Regexp#match? to reduce allocations of MatchData object (#28940).Go MAEDA2019-03-271-6/+6
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in issue, journal, and query (#26561).Go MAEDA2019-03-171-3/+3
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17980 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81