summaryrefslogtreecommitdiffstats
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
...
* Use the classes whitelist configured in application.rb instead of hardcoded ↵Go MAEDA2022-08-251-1/+1
| | | | | | | | | classes (#37476). Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21777 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add default spent time activity per role (#29286).Go MAEDA2022-08-093-6/+40
| | | | | | | Patch by Marius BALTEANU and Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21763 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Default query should not be applied if the query is not allowed to be set as ↵Go MAEDA2022-07-312-7/+12
| | | | | | | | | the default (#37499). Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21748 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Better validation error message when the domain of email is not allowed ↵Go MAEDA2022-07-271-1/+9
| | | | | | | | | (#35450). Patch by Yuichi HARADA. git-svn-id: https://svn.redmine.org/redmine/trunk@21739 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Psych::DisallowedClass exception when loading default plugin settings ↵Go MAEDA2022-07-211-1/+1
| | | | | | | | | (#37450, #37476). Contributed by Dmitry Makurin. git-svn-id: https://svn.redmine.org/redmine/trunk@21725 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't use YAML.unsafe_load (#37450).Go MAEDA2022-07-201-2/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21722 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mark edited journal notes as "Edited" (#31505).Go MAEDA2022-07-171-0/+2
| | | | | | | Patch by Marius BALTEANU. git-svn-id: https://svn.redmine.org/redmine/trunk@21713 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make the only enabled activity in a project the default one for time entry ↵Go MAEDA2022-07-172-0/+10
| | | | | | | | | (#10314). Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21709 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Lint/NonAtomicFileOperation (#36919).Go MAEDA2022-06-301-3/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21694 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix chained custom field filter doesn't work for User fields (#36940).Marius Balteanu2022-06-271-1/+1
| | | | | | | | Patch by Thomas Löber. git-svn-id: https://svn.redmine.org/redmine/trunk@21686 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert undesired change (#37349).Marius Balteanu2022-06-271-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix filter for chained User custom fields returns 500 internal server error ↵Marius Balteanu2022-06-271-2/+2
| | | | | | when filtering after a float value (#37349). git-svn-id: https://svn.redmine.org/redmine/trunk@21684 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor @TimeEntryActivity.default()@ method (#33914).Marius Balteanu2022-06-201-2/+3
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21669 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix time entry activity is not set as default when the default activity ↵Marius Balteanu2022-06-202-1/+10
| | | | | | | | | exists as project specific activity (#33914). Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21668 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Respect field visibility when filtering/sorting by associated issue fields ↵Marius Balteanu2022-06-162-2/+6
| | | | | | | | | (#37255). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21646 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Respect field visibility when showing associated issue fields (#37255).Marius Balteanu2022-06-161-2/+4
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21645 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Setting @--no-permission-check@ in the mail receiver should not allow ↵Marius Balteanu2022-06-161-3/+17
| | | | | | | | | creating issues in closed and archived projects (#37187). Patch by Felix Schäfer. git-svn-id: https://svn.redmine.org/redmine/trunk@21641 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improved @fixed_version_id@ validation (#37171).Marius Balteanu2022-06-161-2/+2
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21638 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ensure @category_id@ is valid within the issue's project (#37171).Marius Balteanu2022-06-161-0/+6
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21637 e93f8b46-1217-0410-a6f0-8f06a7374b81
* The done ratio of a parent issue may not be 100% even if all subtasks have a ↵Go MAEDA2022-06-081-6/+7
| | | | | | | | | done ratio of 100% (#37151). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21626 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reduce extra queries in @ProjectQuery.default@ (#37135).Marius Balteanu2022-05-281-3/+6
| | | | | | | Patch by Dmitry Makurin. git-svn-id: https://svn.redmine.org/redmine/trunk@21614 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Issue#last_notes fallback does not respect notes visibility (#37155).Marius Balteanu2022-05-281-1/+1
| | | | | | | Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21613 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Background job for project deletion (#36691).Marius Balteanu2022-05-172-1/+7
| | | | | | | | | | | | | | | Due to the deletion of dependent objects (issues etc), project deletion may take a long time. This patch moves the actual project deletion into an ActiveJob job. It also introduces a new project status (SCHEDULED_FOR_DELETION) that is used to effectively hide the project that is about to be deleted (and any potential descendant projects) from the system immediately. A security notification is sent out to the user that deleted the project, informing about success / failure. The projects list is extended to be able to filter for the new status, so in case of a failure, the project can still be accessed for examination. Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21591 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Attachment activity provider SQL optimization (#37057).Go MAEDA2022-05-141-0/+1
| | | | | | | Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21573 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow imported time entries to override the selected project with the actual ↵Marius Balteanu2022-04-031-2/+6
| | | | | | | | | project of their issue (#36823). Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21522 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reuse ProjectQuery filters on the admin project list (#33422).Marius Balteanu2022-04-011-2/+34
| | | | | | | Patch by Takenori TAKAKI. git-svn-id: https://svn.redmine.org/redmine/trunk@21519 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Include roles of built-in "Non member users" and "Anonymous users" members ↵Marius Balteanu2022-03-271-0/+9
| | | | | | when user is not a member of the project. This fixes #34029. git-svn-id: https://svn.redmine.org/redmine/trunk@21502 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow to filter issues by its version status with shared versions (#36824, ↵Marius Balteanu2022-03-241-2/+4
| | | | | | | | | #30924). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21499 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Increase email address length limit from 60 to 254 (#36825).Go MAEDA2022-03-231-1/+1
| | | | | | | Contributed by Brice Beaumesnil. git-svn-id: https://svn.redmine.org/redmine/trunk@21497 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add tasks to prune registered users after a certain number of days (#30998).Go MAEDA2022-03-221-0/+4
| | | | | | | Patch by Yuichi HARADA and Marius BALTEANU. git-svn-id: https://svn.redmine.org/redmine/trunk@21490 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Skip validation of required custom fields when creating a project if user ↵Marius Balteanu2022-03-211-0/+11
| | | | | | | | | does not have permissions to see those custom fields (#36593). Patch by mathieu-mbru. git-svn-id: https://svn.redmine.org/redmine/trunk@21488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not fire a query to get user default query when user has no default query ↵Go MAEDA2022-03-211-1/+1
| | | | | | | | | set (#36503). Patch by Dmitry Makurin. git-svn-id: https://svn.redmine.org/redmine/trunk@21485 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r21480 (#36503).Go MAEDA2022-03-211-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21484 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not fire a query to get user default query when user has no default query ↵Marius Balteanu2022-03-201-1/+1
| | | | | | | | | | set (#36503). Patch by Dmitry Makurin. git-svn-id: http://svn.redmine.org/redmine/trunk@21480 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Automatically add the user to the watchers list after contributing to an ↵Marius Balteanu2022-03-192-1/+20
| | | | | | | | | issue (#4347). User can enable/disable this feature from My Account. Patch by Takenori TAKAKI and Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21469 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecate and rename rss_* methods to atom_* methods (#15118).Marius Balteanu2022-03-192-8/+20
| | | | | | | Patch by Mischa The Evil and Marius BĂLTEANU git-svn-id: http://svn.redmine.org/redmine/trunk@21467 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace Member.find_or_new with ActiveRecord's find_or_initialize_by (#36730).Go MAEDA2022-03-142-12/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21456 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improve performance of adding or removing members of a group (#36696).Go MAEDA2022-03-052-27/+24
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21447 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add habtm relation between roles and queries_roles (#36416).Marius Balteanu2022-02-281-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21444 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Destroy overridden time entry activities and rows from the habtm join table ↵Marius Balteanu2022-02-241-2/+2
| | | | | | | | | | @queries_roles@ on project deletion (#36416). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@21437 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow users to be mentioned using @ in issues and wiki pages (#13919):Marius Balteanu2022-02-234-7/+23
| | | | | | | | | | * the user must have add watchers permission on that object in order to mention other users * mentioned user will receive a notification email * only visible users who can view the object can be mentioned git-svn-id: http://svn.redmine.org/redmine/trunk@21435 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix time entries of sub-projects are not listed when activity is specified ↵Marius Balteanu2022-02-201-1/+1
| | | | | | | | | in filters (#36248). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21423 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix import with issue relations and invalid issues hangs without any error ↵Marius Balteanu2022-02-201-1/+5
| | | | | | message in UI (#35656). git-svn-id: http://svn.redmine.org/redmine/trunk@21422 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Return 404 if revision URL doesn't exist (#36561).Marius Balteanu2022-02-181-5/+1
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21413 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "required for administrators" option to Two-factor authentication ↵Marius Balteanu2022-02-012-1/+6
| | | | | | settings that behaves like optional, but will require all users with administration rights to set up two-factor authentication at their next login (#35439). git-svn-id: http://svn.redmine.org/redmine/trunk@21395 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Improve readability of @must_activate_twofa?@ function (#31920).Marius Balteanu2022-01-291-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21389 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reduce extra database queries in IssueQuery.default (#7360, #36503).Go MAEDA2022-01-231-3/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21387 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update session token only once per minute (#29041).Go MAEDA2022-01-221-1/+8
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@21376 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Mailer.with_synched_deliveries doesn't correctly detect other async Queue ↵Go MAEDA2022-01-121-3/+1
| | | | | | | | | adapters (#36393). Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@21362 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix wrong variable name in Import#set_default_settings (#34718).Go MAEDA2022-01-071-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21354 e93f8b46-1217-0410-a6f0-8f06a7374b81