summaryrefslogtreecommitdiffstats
path: root/app/controllers
Commit message (Collapse)AuthorAgeFilesLines
* Fix random test failure by ensuring ↵Marius Balteanu2024-11-291-1/+1
| | | | | | | | | @WatchersController#find_objects_from_params@ returns results in consistent order (#41894). Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23325 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix project links in tracker deletion error message to set the status_id ↵Go MAEDA2024-11-041-1/+1
| | | | | | filter to "all" (#12521). git-svn-id: https://svn.redmine.org/redmine/trunk@23209 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improve tracker deletion error message to display projects containing issues ↵Go MAEDA2024-11-031-1/+5
| | | | | | | | | under the tracker (#12521). Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23181 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Partial quoting feature for Issues and Forums (#41294).Go MAEDA2024-10-092-18/+12
| | | | | | | Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23107 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/RedundantInterpolationUnfreeze (#39887).Go MAEDA2024-09-013-5/+5
| | | | | | | Since interpolated strings are always unfrozen in Ruby 3.0 and later, the use of `+""` is now redundant. git-svn-id: https://svn.redmine.org/redmine/trunk@23001 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Start working on replacing old icons with SVG icons (#23980):Marius Balteanu2024-08-291-0/+2
| | | | | | | | | | | * Introduces IconsHelper with methods to render SVG icon from a sprite file. * Adds SVG sprite file with icons mainly from Font Awesome, but also from Material Design Icons and Fluent UI System Icons (based on the work made by Takashi Kato (@tohosaku)). * Replaces specific icons with new SVG icons. * Temporarily keep all old CSS icon definitions for backard compatibility. git-svn-id: https://svn.redmine.org/redmine/trunk@22988 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offenses Style/NegatedIf and Style/NegatedWhile (#39887, #7770).Go MAEDA2024-08-252-4/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22987 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgrade to Rails 7.2.0 (#36320).Marius Balteanu2024-08-201-1/+1
| | | | | | | Patch by Takashi Kato (user:tohosaku). git-svn-id: https://svn.redmine.org/redmine/trunk@22960 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add configurable setting for copying attachments when copying an issue (#36197).Go MAEDA2024-07-141-4/+17
| | | | | | | Patch by Yuichi HARADA (user:yui.har). git-svn-id: https://svn.redmine.org/redmine/trunk@22926 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add bulk unlock to user list context menu (#40913).Marius Balteanu2024-07-131-5/+13
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22925 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/CollectionCompact (#39887).Go MAEDA2024-07-112-6/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22921 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Introduces @valid_watcher?@ check on watchables (@40946).Marius Balteanu2024-07-081-5/+6
| | | | | | | | Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22916 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Permission check based on the type of @watchables@ (#40946).Marius Balteanu2024-07-081-0/+14
| | | | | | | | Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22915 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improve watcher list permissions check to explicitly require ↵Marius Balteanu2024-07-081-1/+1
| | | | | | | | | | @view_issue_watchers@ permission (#40946). Patch by Felix Schäfer (@felix). git-svn-id: https://svn.redmine.org/redmine/trunk@22913 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add bulk lock feature to user list context menu (#40913).Marius Balteanu2024-06-251-5/+10
| | | | | | | Patch by Mizuki ISHIKAWA (@ishikawa999). git-svn-id: https://svn.redmine.org/redmine/trunk@22898 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "ArgumentError: Invalid response name: unprocessable_entity" with Rack ↵Go MAEDA2024-06-1213-13/+13
| | | | | | | | | | | | 3.1.0+ in assert_response (#39889). Rack 3.1.0 changed the symbol for HTTP status code 422 from `:unprocessable_entity` to `:unprocessable_content`. Due to the change, `assert_response(:unprocessable_entity, ...)` raises ArgumentError with Rack 3.1.0+. This fix is a follow-up to r22837. git-svn-id: https://svn.redmine.org/redmine/trunk@22876 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds description field to custom queries (#9309).Marius Balteanu2024-06-041-0/+1
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22855 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reduce an extra SQL query in IssuesController#retrieve_default_query (#40775).Go MAEDA2024-06-041-1/+2
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22854 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Dynamic generation of supported code highlighting languages in help section ↵Go MAEDA2024-05-191-0/+1
| | | | | | | | | (#40681). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22840 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Rails/HttpStatus (#39889).Go MAEDA2024-05-1816-33/+33
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces use of Digest::MD5 / Digest::SHA1 with ActiveSupport::Digest (#35217).Marius Balteanu2024-05-071-1/+1
| | | | | | Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22816 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds the date of the last activity to the list of available columns for ↵Marius Balteanu2024-05-032-11/+9
| | | | | | | | Projects (#23954). Patch by Frederico Camara (@fredsdc) and Marius BĂLTEANU (@marius.balteanu). git-svn-id: https://svn.redmine.org/redmine/trunk@22811 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix rubocop warning (#39111, #40137).Marius Balteanu2024-03-031-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22757 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-2653-53/+53
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds route for code highlighting languages page (#39111, #40137).Marius Balteanu2024-02-251-0/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22732 e93f8b46-1217-0410-a6f0-8f06a7374b81
* * Remove languages from wiki syntax help files that are identical with en ↵Marius Balteanu2024-02-191-1/+7
| | | | | | | | | | language. * Fall back to the english help page if there is none for the current language. (#39111, #40137). git-svn-id: https://svn.redmine.org/redmine/trunk@22721 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reorganize all the wiki syntax help files per text formatter (@markdown@, ↵Marius Balteanu2024-02-191-1/+1
| | | | | | @common_mark@ and @textile@) (#39111, #40137). git-svn-id: https://svn.redmine.org/redmine/trunk@22720 e93f8b46-1217-0410-a6f0-8f06a7374b81
* * Introduces @HelpController@ and a new route @help/wiki_syntax/(:type)@ to ↵Marius Balteanu2024-02-191-0/+25
| | | | | | | | | | serve wiki syntax help files. * Moves all wiki syntax help files to @app/views/help@ and CSS files to asset pipeline. (#39111, #40137). git-svn-id: https://svn.redmine.org/redmine/trunk@22719 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r22717 (#39111, #40137).Marius Balteanu2024-02-191-25/+0
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22718 e93f8b46-1217-0410-a6f0-8f06a7374b81
* * Moves all wiki syntax files from @public/help@ to ↵Marius Balteanu2024-02-191-0/+25
| | | | | | | | | | | @app/views/help/wiki_syntax@. * Adds route to serve wiki syntax help files. * Moves wiki syntax CSS files to asset pipeline. (#39111, #40137). git-svn-id: https://svn.redmine.org/redmine/trunk@22717 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces @URI.parse@ with @Addressable::URI.parse(url)@ to enhance ↵Marius Balteanu2024-02-131-11/+10
| | | | | | | | robustness of @validate_back_url@ (#31831). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22710 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Stop appending the utf8 checkmark parameter to form URLs (#40190).Marius Balteanu2024-02-131-5/+0
| | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22709 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove deprecated @status=@ param used to get all users. @status=*@ should ↵Marius Balteanu2024-01-251-4/+0
| | | | | | be used now. (#40124). git-svn-id: https://svn.redmine.org/redmine/trunk@22635 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds deprecation warning when an empty status param (status=) is used to get ↵Marius Balteanu2024-01-251-0/+1
| | | | | | all users from API (#40099). git-svn-id: https://svn.redmine.org/redmine/trunk@22633 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove code that is no longer needed as a result of asset pipeline ↵Marius Balteanu2024-01-251-1/+0
| | | | | | | | implementation (#39111). Patch by Takashi Kato (@tohosaku). git-svn-id: https://svn.redmine.org/redmine/trunk@22627 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Restores API compatibility to legacy status when status param is sent blank ↵Marius Balteanu2024-01-251-2/+2
| | | | | | (@status=@) and it should return all users (#40099). git-svn-id: https://svn.redmine.org/redmine/trunk@22625 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove unnecessary use of instance variables in CSV and Atom response ↵Go MAEDA2024-01-245-12/+12
| | | | | | | | | handlers (#32985). Contributed by Ko Nagase (@sanak). git-svn-id: https://svn.redmine.org/redmine/trunk@22622 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use ApplicationRecord instead of ActiveRecord::Base (#38975).Marius Balteanu2024-01-231-1/+1
| | | | | | Patch by Minoru Maeda (@maeda-m). git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r22438 (#35189).Marius Balteanu2024-01-231-4/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22616 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace String#sub with delete_prefix / delete_suffix (#40008).Go MAEDA2024-01-083-3/+5
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22596 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Explicitly render a 404 on non-JS requests to messages#quote (#39999).Marius Balteanu2024-01-031-0/+5
| | | | | | Patch by Holger Just (@hjust). git-svn-id: https://svn.redmine.org/redmine/trunk@22584 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optimize loading of journals, relations, and allowed_statuses in ↵Go MAEDA2024-01-011-10/+11
| | | | | | | | | IssuesController#show for API requests (#39993). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22582 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Explicitly render a 404 on non-JS requests to @watchers#new@ (#39894). Marius Balteanu2023-12-211-1/+6
| | | | | | Patch by @hjust. git-svn-id: https://svn.redmine.org/redmine/trunk@22538 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/StringIdentifierArgument (#39888).Go MAEDA2023-12-201-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/HashEachMethods (#39887).Go MAEDA2023-12-202-8/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22532 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Lint/SymbolConversion (#39887).Go MAEDA2023-12-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22531 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert r21883 which was an workaround for #37626 (#37732, #36320).Marius Balteanu2023-11-291-2/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22489 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates Rails to 7.1.2 (#36320).Marius Balteanu2023-11-271-1/+1
| | | | | | Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@22488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* New email notification option "For any event on my bookmarked projects" ↵Go MAEDA2023-11-161-1/+4
| | | | | | | | | (#35189). Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@22438 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove @rss_*@ deprecated methods (#36806).Marius Balteanu2023-11-062-17/+0
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22416 e93f8b46-1217-0410-a6f0-8f06a7374b81