Redmine: Issueshttps://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292020-07-13T00:51:16ZRedmine
Redmine Redmine - Patch #33722 (Resolved): migrate_from_trac dose not workhttps://www.redmine.org/issues/337222020-07-13T00:51:16ZHideyuki KATO
<p>Current migrate_from_trac rake task dose not work with 3.4.13, 4.0.7, 4.1.1.</p>
<p>There are many patches, but they have not been applied. and they are old (maybe they are for Redmine2.x or early 3.x)</p>
<ul>
<li><a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: migrate_from_trac.rake does not convert timestamps in Trac database version 23 (New)" href="https://www.redmine.org/issues/14567">#14567</a></li>
<li><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Exception in Migration from Trac to Redmine (incl. solution) (Closed)" href="https://www.redmine.org/issues/17898">#17898</a></li>
<li><a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Issues with migrate_from_trac.rake from trac 0.12/1.0 (possible solutions provided) (New)" href="https://www.redmine.org/issues/18658">#18658</a></li>
<li><a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Migrating from Trac to Redmine [Trac2Redmine] (New)" href="https://www.redmine.org/issues/24570">#24570</a></li>
</ul>
<p>I have merged these patches and available on Redmine 3.4.13. but not work with Redmine 4.x. because of the difference between Rails/ActiveRecord 4.2 and 5.2.</p>
<p><a class="external" href="https://github.com/hkato/migrate_from_trac.rake/blob/master/migrate_from_trac-trac-1.0.patch">https://github.com/hkato/migrate_from_trac.rake/blob/master/migrate_from_trac-trac-1.0.patch</a></p>
<p>Anyway, could you merge this patch for trunk. and we will support Rails/ActiveRecord 5.2 issue after this.</p>
<p>Redmine 3.4.13</p>
<pre>
$ rake redmine:migrate_from_trac RAILS_ENV="production"
rake aborted!
NoMethodError: undefined method `set_inheritance_column' for TracMigrate::TracAttachment(Table doesn't exist):Class
Did you mean? set_trace_func
/usr/local/bundle/gems/activerecord-4.2.11.1/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
/usr/src/redmine/lib/tasks/migrate_from_trac.rake:121:in `<class:TracAttachment>'
/usr/src/redmine/lib/tasks/migrate_from_trac.rake:119:in `<module:TracMigrate>'
/usr/src/redmine/lib/tasks/migrate_from_trac.rake:25:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:migrate_from_trac
(See full trace by running task with --trace)
</pre>
<p>Redmine 4.1.1<br /><pre>
$ rake redmine:migrate_from_trac RAILS_ENV="production"
rake aborted!
NoMethodError: undefined method `set_inheritance_column' for TracMigrate::TracAttachment(Table doesn't exist):Class
Did you mean? set_trace_func
/usr/local/bundle/gems/activerecord-5.2.4.2/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/usr/src/redmine/lib/tasks/migrate_from_trac.rake:121:in `<class:TracAttachment>'
/usr/src/redmine/lib/tasks/migrate_from_trac.rake:119:in `<module:TracMigrate>'
/usr/src/redmine/lib/tasks/migrate_from_trac.rake:25:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:migrate_from_trac
(See full trace by running task with --trace)
</pre></p> Redmine - Patch #32326 (Needs feedback): Update it.yml localehttps://www.redmine.org/issues/323262019-10-23T11:23:26Zpasquale [:dedalus]
<ul>
<li>added various missing strings;</li>
<li>reorder strings into the file;</li>
<li>made some changes to already translated strings for consistency.</li>
</ul> Redmine - Patch #31752 (Reopened): Show assigned people when displaying tickets which are related...https://www.redmine.org/issues/317522019-07-18T15:01:43ZMasatoshi TSUCHIYA
<p>When we hurry a release of a specific version, it is natural to want to know who stops the release.<br />To resolve the such case, I think that the attached patch is useful.</p> Redmine - Patch #31224 (Resolved): My page, add Time Entry querieshttps://www.redmine.org/issues/312242019-04-18T22:33:43ZJérôme BATAILLE
<p>This patch is pretty simple, it continues the work that has been done to add Issue Queries in My Page blocks.<br />It does the same for Time Entry queries, with very few modifications.</p>
<p><strong>Time Entry</strong> block has been renamed <strong>Time Entry Activity</strong></p>
<p>Please review it.<br />Thanks a lot.</p> Redmine - Patch #30999 (Needs feedback): Datepicker javascript files locale in uppercase not foundhttps://www.redmine.org/issues/309992019-03-08T16:50:00ZJérôme BATAILLE
<ul>
<li>In public / javascripts / i18n<br />Files like datepicker-en-GB.js are not found because file is searched with locale that is lowercase.<br />These files should be in lower case.</li>
</ul>
<pre>
The error :
Started GET "/javascripts/i18n/datepicker-en-gb.js" for 127.0.0.1 at 2019-03-08 17:43:44 +0100
17.43.44.110 09924:
17.43.44.110 09924: ActionController::RoutingError (No route matches [GET] "/javascripts/i18n/datepicker-en-gb.js"):
17.43.44.110 09924:
17.43.44.110 09924: actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call'
17.43.44.110 09924:actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `c
</pre> Redmine - Patch #29378 (Needs feedback): More call_hooks for projects, issue statusses, time entr...https://www.redmine.org/issues/293782018-08-13T12:33:45ZJonas Ineveld, van
<p>Currently there are only functional call_hooks for issues, and with that, i mean the 'controller_issues_edit_after_save' etc.<br />Because i'm working on a seperate app, connected with redmine on the backend, i need more hooks to hook my 'update API' to.</p>
<p>For now i've created the call_hooks for creation of a project, and for the deletion of a issue.</p>
<p>Would it be something if these changes would go back into core? I can imagine more uses for these type of hooks.</p>
<p>Svn patch file is included</p> Redmine - Patch #26139 (Reopened): Follow Gemfile's plugin loader as #24007https://www.redmine.org/issues/261392017-06-12T09:31:12ZSho HASHIMOTO
<p>Plugin's Gemfile can't settable from Redmine::Plugin.directory yet.</p> Redmine - Patch #26122 (Resolved): Implementation of visible conditions with inner join instead o...https://www.redmine.org/issues/261222017-06-07T20:51:37ZPavel Rosický
<p>The change from <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Project#allowed_to_condition performance (Closed)" href="https://www.redmine.org/issues/21608">#21608</a> should be reverted because it's a speed regression:</p>
<p>1/ current version<br /><pre>EXISTS (SELECT 1 AS one FROM enabled_modules em WHERE em.project_id = projects.id AND em. NAME = 'issue_tracking')</pre></p>
<p>2/ previous version (actually faster even without an index on enabled modules)<br /><pre>projects.id IN (SELECT project_id FROM enabled_modules em WHERE em.project_id = projects.id AND em. NAME = 'issue_tracking'</pre></p>
<p>3/ fastest version (in some cases better indexes were used)<br /><pre>INNER JOIN `enabled_modules` ON `enabled_modules`.`project_id` = `projects`.`id` WHERE `enabled_modules`.`name` = 'issue_tracking'</pre> or<br /><pre>INNER JOIN `enabled_modules` ON `enabled_modules`.`project_id` = `projects`.`id` AND `enabled_modules`.`name` = 'issue_tracking'</pre></p>
Patches:
<ul>
<li>revert of <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Project#allowed_to_condition performance (Closed)" href="https://www.redmine.org/issues/21608">#21608</a>, because the previous version was faster (about 30%)</li>
<li>new index "enabled_modules_name", but it's not very helpful unless you have many projects (3000+)</li>
<li>implementation of visible conditions with inner join instead of subselect, it passes all tests, but it should be refactored. I want to know what do you think about it first</li>
</ul>
<pre>
Rails version 4.2.8
Ruby version 2.1.9-p490 (x64-mingw32)
RubyGems version 2.6.12
Rack version 1.6.8
Middleware Rack::Sendfile, Rack::ContentLength, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000007745610>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::XmlParamsParser, Rack::Head, Rack::ConditionalGet, Rack::ETag, RequestStore::Middleware, OpenIdAuthentication
Environment development
Database adapter mysql2
Database schema version 20170607051650
</pre> Redmine - Patch #25491 (Needs feedback): List of role membershttps://www.redmine.org/issues/254912017-03-31T21:12:38ZAnonymous
<p>This simple patch provides a list of all members of a role grouped by projects.</p>
<p>Tested and working with Redmine 3.2 & 3.3</p> Redmine - Patch #25114 (Needs feedback): Context menu positioning inside positioned DOM elementshttps://www.redmine.org/issues/251142017-02-17T13:23:25ZSerge Galanin
<p>In my theme the #content element is positioned relatively. It leads to an incorrect positioning of the context menu wich living inside the #content. A most simple fix is to bubble the context menu up to the top of DOM. Can we use this way?</p>
<p>Patch based on <a class="changeset" title="remove trailing white space from test/unit/setting_test.rb" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/16333">r16333</a>.</p> Redmine - Patch #24837 (Needs feedback): Bulk update issues with authorhttps://www.redmine.org/issues/248372017-01-16T07:55:14ZMarcin Świątkiewicz
<p>It would be nice, to add option to bulk update many different issues with option 'assigned to author'.<br />Below is my diff with this feature.</p> Redmine - Patch #24051 (Resolved): As a non-admin user using API, I want to be able to filter use...https://www.redmine.org/issues/240512016-10-11T18:36:15ZAnonymous
<p>We created an Odoo -> Redmine connector for uploading time spent from Redmine to HR tools in Odoo (<a class="external" href="https://github.com/savoirfairelinux/connector-redmine/tree/ddufresne_port_to_8_0">https://github.com/savoirfairelinux/connector-redmine/tree/ddufresne_port_to_8_0</a>).</p>
<p>When we call that function from a superuser API key, all works well, but when it is normal user API key, it does return a forbidden exception :</p>
<pre>
redmine_api.user.filter(name="SOMEUSERNAME")
</pre>
<p>I think that to reinforce security by not giving superuser Redmine API key to Odoo would be interesting.</p>
<p>That would be possible by allowing standard Redmine users to use API to filter users by their username instead of throwing an exception.</p> Redmine - Patch #24007 (Reopened): Change plugins directory through the configuration.yml filehttps://www.redmine.org/issues/240072016-10-05T18:18:02ZHelder Manuel Torres Vieira
<p>This patch adds the possibility to change the directory "plugins" of the application through the file configuration.yml.</p>
<p>The patch has been tested with the last Trunk version (15839)</p> Redmine - Patch #21808 (Needs feedback): Make the Sidebar collapsible, statefulhttps://www.redmine.org/issues/218082016-01-23T20:58:50ZDaniel Ritz
<p>This adds a button to the sidebar to make it collapsible. The state is preserved between requests with a cookie.</p>
This seems to be a feature that is missed. There's a few plugins that implement something similar. Some of them:
<ul>
<li><a class="external" href="https://www.redmine.org/plugins/sidebar_hide">https://www.redmine.org/plugins/sidebar_hide</a></li>
<li><a class="external" href="http://www.redmine.org/projects/redmine/wiki/PluginCollapse">http://www.redmine.org/projects/redmine/wiki/PluginCollapse</a></li>
<li><a class="external" href="https://github.com/thambley/redmine-sidebar-hide">https://github.com/thambley/redmine-sidebar-hide</a></li>
</ul>
<p>And there are related issues, at least: <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Collapsible Sidebar (Closed)" href="https://www.redmine.org/issues/12032">#12032</a>, <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: A new button to hide/show the sidebar (Closed)" href="https://www.redmine.org/issues/10525">#10525</a></p>
<p>Because of high demand from my users, I did something similar in a theme at work. This is basically that plus it's stateful now.</p>
This patch:
<ul>
<li>Adds the relative URL root as a meta property in the head tag</li>
<li>Adds a simple <a> to the sidebar as collapse/expand button</li>
<li>Makes the .content a BFC taking the remaining width</li>
<li>Few lines of javascript to toggle CSS and set a cookie</li>
<li>Sidebar is hidden by setting its margin-right</li>
<li>Nice hiding animation using CSS for browsers that support it</li>
<li>The state of the sidebar is read from the cookie and applied on page load</li>
<li>Good theming support since it's mostly just CSS</li>
</ul>
<p>Based on <a class="changeset" title="Typo (#21421)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/15095">r15095</a>, passes all tests with Ruby 2.1.5. Tested on FF, Chrome, Safari (+ an earlier, stateless version on IE11)</p>
<p>Screenshot: <img src="https://www.redmine.org/attachments/download/15176/collapsible_sidebar.png" title="Screenshot" alt="Screenshot" /></p> Redmine - Patch #21550 (Needs feedback): New option in html redmine link parsing - attachmentshttps://www.redmine.org/issues/215502015-12-16T21:32:09ZOndřej Ezr
<p>Option for parsing to choose if attachment link should be download link or not.</p> Redmine - Patch #18496 (Resolved): Migrate to Redmine 2.5.3 (or 2.6.0) from Mantis 1.2.17https://www.redmine.org/issues/184962014-11-28T14:03:46ZGergely Révész
<p>Migrate to Redmine 2.5.3 (or 2.6.0) from Mantis 1.2.17.</p>
<p>The original migrate script quits with errors when migrating from Mantis 1.2.17.<br />I'm attaching the patch to get it to work.<br />And the working full "migrate_from_mantis.rake" file if anyone finds it difficult to apply a patch.</p>
<p>You have to patch or replace the "%redmine%/lib/tasks/migrate_from_mantis.rake" file.</p> Redmine - Patch #18059 (Resolved): Activity when issue change assigned to.https://www.redmine.org/issues/180592014-10-10T11:59:15ZMarcin Świątkiewicz
<p>Hi. There is patch to change activity for project. It's will shows you when issue status was changed, assigned_to was changed, and when status and assigned_to was changed together.</p>
<p>I wrote test for this and everything works fine.</p>
<p>See files.</p> Redmine - Patch #16116 (Needs feedback): Sort of version optionshttps://www.redmine.org/issues/161162014-02-18T08:51:15ZDaniel Felix
<p>Hi there,</p>
<p>currently all versions are just sorted by an array.</p>
<p>This causes that our version field results in an unsorted order. Either id nor name or date (all dates are nil) is respected.</p>
<p>This way could improve the version sort.</p>
<p>See <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/trunk/app/models/issue.rb#L743">source:trunk/app/models/issue.rb#L743</a></p>
<p>Replace this line with<br /><pre><code class="ruby syntaxhl"><span class="vi">@assignable_versions</span> <span class="o">=</span> <span class="n">versions</span><span class="p">.</span><span class="nf">uniq</span><span class="p">.</span><span class="nf">sort_by</span><span class="p">{</span><span class="o">|</span><span class="n">v</span><span class="o">|</span> <span class="p">[</span><span class="n">v</span><span class="p">.</span><span class="nf">effective_date</span><span class="p">,</span> <span class="n">v</span><span class="p">.</span><span class="nf">name</span><span class="p">]}</span>
</code></pre></p>
<p>This will sort the result in first place by effective date and otherwise by name.</p>
<p>Any regressions?</p>
<p>Best regards,<br />Daniel</p> Redmine - Patch #15906 (Needs feedback): Create a default forum by defaulthttps://www.redmine.org/issues/159062014-01-20T08:35:28ZJan from Planio www.plan.io
<p>In my experience, new or inexperienced users find it hard to get started with the forums. This is because of the fact that it doesn't suffice to enable the module, one has to also create a first forum in the project settings.</p>
<p>I therefore propose this patch which adds an empty "general" forum when the module is activated. It uses the same mechanism that creates the project's wiki.</p>
<p>This way, users will see the "Forums" tab in their project immediately after they enabled the module.</p> Redmine - Patch #14148 (Reopened): Double translation: label_f_hours vs. x_hourshttps://www.redmine.org/issues/141482013-05-25T13:05:52ZFilou Centrinov
<p>It seems that the translations <code>x_hours</code> and <code>label_f_hours</code> are identic. (Same with <code>x_hour</code> and <code>label_f_hour</code>.) Moreover for many languages only <code>label_f_hours</code> (respectively <code>label_f_hour</code>) is translated. I suggest to replace <code>label_f_hours</code> by <code>x_hours</code>, because we have also x_minutes, x_seconds, ...</p>
<p>Finally I suggest to delete the labels <code>label_f_hour</code> and <code>label_f_hours</code> from all translation files and repository.</p> Redmine - Patch #13545 (Needs feedback): Workflow permissions are broken if user has multiple rol...https://www.redmine.org/issues/135452013-03-21T13:51:23ZAlexander Kriventsov
If user has multiple roles in project workflow permissions don't work.<br />It works in two cases:
<ol>
<li>User has one role</li>
<li>User has two roles with the same workflow permisions</li>
</ol> Redmine - Patch #13239 (Resolved): migrate_from_mantis script doesn't work for later mantis versionshttps://www.redmine.org/issues/132392013-02-20T21:46:28ZDiego Antunes
<a name="Redmine-Info"></a>
<h2 >Redmine Info<a href="#Redmine-Info" class="wiki-anchor">¶</a></h2>
<p>Environment:<br /> Redmine version 2.2.2.stable<br /> Ruby version 1.9.3 (x86_64-linux)<br /> Rails version 3.2.11<br /> Environment production<br /> Database adapter Mysql2<br />Redmine plugins:<br /> no plugin installed</p>
<a name="Mantis-BT-info"></a>
<h2 >Mantis BT info<a href="#Mantis-BT-info" class="wiki-anchor">¶</a></h2>
<p>Site Information<br />MantisBT Version 1.2.11<br />Schema Version 185</p> Redmine - Patch #9697 (Resolved): Projects list with progresshttps://www.redmine.org/issues/96972011-11-30T10:25:33ZDmitry Babenko
<p>Redesign of project list page (<a class="external" href="http://www.redmine.org/projects">http://www.redmine.org/projects</a>) to show the progress of every project and their versions. See <a class="attachment" href="https://www.redmine.org/attachments/6836">Redmine-project-list-with-progress.png</a>.</p>
<p>Gihub pull request: <a class="external" href="https://github.com/edavis10/redmine/pull/46">https://github.com/edavis10/redmine/pull/46</a></p> Redmine - Patch #8222 (Needs feedback): Setting model should use Rails.cache instead of class var...https://www.redmine.org/issues/82222011-04-25T17:44:22ZJan from Planio www.plan.io
<p>The <code>Setting</code> model uses two local class variables called <code>@cached_settings</code> and <code>@cached_cleared_on</code> to prevent reloading the settings from database and/or <code>settings.yml</code> at every request.</p>
<p>Rails has been supporting different cache implementations for some time now, why not let the <code>Setting</code> model use them as well? Besides the fact that this will help with tenant switching which we've implemented for Planio, it should also improve Redmine's performance when running it with more than processes and a custom cache mechanism, like memcached.</p>
<p>A patch is attached.</p> Redmine - Patch #8196 (New): Adding a project param to perl auth modulehttps://www.redmine.org/issues/81962011-04-20T08:48:41ZDiego Suárez García
<p>Hello,</p>
<p>In my job we use Redmine and recently we had the need for authenticating the access to a test domain, based on which users have access to the related project. I created a small patch to the Redmine.pm module, that adds a new optional apache directive (RedmineDbProject), so you can link a VirtualHost to a specific project and ask for credentials on user access. That way, only the users included in that project can see that VirtualHost contents.</p>
<p>I felt somebody else might have the same needs. The directive is optional and the behaviour is transparent if it's not included in the conf file, therefore I think it can make it to the core.</p>
<p>The revision is 5506 (last change on Redmine.pm on 5232), and it's the trunk version.</p>
<p>Best Regards,</p>
<p>Diego Suárez García.</p> Redmine - Patch #8109 (New): Support for global permissions in acts_as_attachablehttps://www.redmine.org/issues/81092011-04-08T21:09:39ZAndriy Lesyuk
<p>If an attachment is to be shown (e.g. an image) outside a project, <code>view_permission</code> option does not work:<br /><pre><code class="ruby syntaxhl"><span class="n">acts_as_attachable</span> <span class="ss">:view_permission</span> <span class="o">=></span> <span class="ss">:view_attachments</span>
</code></pre></p>
<p>This happens because <code>acts_as_attachable</code> supports only project permissions. The attached patch adds support for global permissions as well...</p> Redmine - Patch #7959 (New): Patch for repository revision update (reload)https://www.redmine.org/issues/79592011-03-22T18:15:08ZBrian Lindahl
<p>Software engineers sometimes made mistakes when writing commit messages during commit. This had caused inaccurate revision relations due to the fix-via-commit-message feature (Settings -> Repositories -> Referencing and fixing issues in commit messages). This patch provides a method to reload a specific revision from the repository and re-apply the fix-via-commit-message feature to the new commit message.</p>
<p>Note that there are two quirks:<br />1) if an issue is already related, fix-via-commit-message will not be reapplied (see <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Manually add related revisions (Closed)" href="https://www.redmine.org/issues/2009">#2009</a> for removing issue relations)<br />2) fix-via-commit-message journals entries may be left behind (see <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Patch providing issue journal rollback (New)" href="https://www.redmine.org/issues/7610">#7610</a> for journal rollback)</p> Redmine - Patch #7895 (New): Git, Mercurial: Allow source links using a tag in addition to revisi...https://www.redmine.org/issues/78952011-03-16T21:51:05ZShane Corgatelli
<p>Loosens up the regex for the revision specifier in source links to allow for linking to git tags. Basically allows all word characters, '.' and '-'. This allows me do do something like:</p>
<pre>
released in source:@v1.26.2
</pre>
<p>Patch is based off 1.0.1.</p> Redmine - Patch #7829 (New): Show branches changsets belongs to on issue pagehttps://www.redmine.org/issues/78292011-03-11T08:54:24ZIvan Evtuhovich
<p>This patch shows git branches changeset belongs to on issue page</p>
<p><a class="external" href="http://twitpic.com/47k9gk">http://twitpic.com/47k9gk</a></p> Redmine - Patch #7770 (New): use unless in control structures where it improves readabilityhttps://www.redmine.org/issues/77702011-03-04T00:43:23ZAnonymous
<p>Use <strong>unless</strong> or <strong>until</strong> in control structures instead of <strong>if !</strong> or <strong>while !</strong> where it improves readability.</p> Redmine - Patch #7664 (New): Allowing plugins to add an option for the default gravatarhttps://www.redmine.org/issues/76642011-02-20T08:06:59ZYuki Sonoda
<p>Now redmine administrator can set the default gravatar for users which has no gravatar. I would like to use my own default gravatar.</p>
<p>The attached patch allows plugins to add an option for the default gravatar. <a class="external" href="https://github.com/yugui/redmine_fox_gravatar">https://github.com/yugui/redmine_fox_gravatar</a> is an example plugin that uses this feature.</p> Redmine - Patch #7578 (New): Patch: migrate ticket's owner changes when importing from Trachttps://www.redmine.org/issues/75782011-02-08T22:17:19ZPierre-Luc Samuel
<p>Here's a patch to migrate the history of owner changes in JournalDetails when importing from Trac. It worked well for us!</p> Redmine - Patch #7447 (New): Patch for improved move/copyhttps://www.redmine.org/issues/74472011-01-25T19:08:16ZBrian Lindahl
This patch makes the following improvements to the move/copy feature:
<ul>
<li>create relations when copying</li>
<li>assign target version</li>
<li>assign category</li>
<li>improved page layout</li>
</ul> Redmine - Patch #7204 (New): Caching of public pages, requested from anonymous users (10x - 20x s...https://www.redmine.org/issues/72042010-12-31T02:47:32ZMassimo Zaniboni
<p>I need a quicker access for public pages, requested from anonymous users.</p>
<p>I can not use a caching reverse proxy because the web proxy does not know when a page is requested from a registered user, or when the page is requested from an anonymous user.</p>
<p>In this patch the Ruby/Redmine application controller returns a page from the cache with ~ 10x - 20x speedup respecting normal pages. The caching is applied only if the user is anonymous (not logged) and only if the page does not contains forms with an authenticity token.</p>
<p>The cached page is different according the locale of user, so different pages for different locales are returned correctly.</p>
<p>The Redmine administrator can configure the cache refresh rate using the main Settings form.</p>
<p>The caching is performed using the caching method specified in the config/additional_environment.rb file. I added something like</p>
<pre>
config.action_controller.perform_caching = true
config.action_controller.cache_store = :file_store, File.join(File.dirname(__FILE__), '../tmp/cache')
</pre>
<p>I tested the patch on version 1.0.5, but it is not yet on a server in production.</p>
<p>The patch can be applied to <a class="changeset" title="Fixes wrong Polish translation of "blocks" and "duplicates" (#6895)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4595">r4595</a> or Git commit:6659c630b264325</p>
Warnings / sorry in advance :-)
<ul>
<li>this is my first ruby code</li>
<li>this is my first ruby on rails code</li>
<li>I'm not a native english speaker, and probably my labels/texts is not completely correct</li>
</ul>
<p>Many thanks for the good product that is Redmine!</p> Redmine - Patch #7086 (New): Few fixes for subversionhttps://www.redmine.org/issues/70862010-12-09T10:11:52ZDmitry Salashnik
<ul>
<li>not works when svn server use self signed certificate</li>
<li>No read access file breaks file listing when browsing repository</li>
<li>fetch not all changesets</li>
</ul> Redmine - Patch #7058 (New): Duplicate submit and link buttons on top of the edit form.https://www.redmine.org/issues/70582010-12-06T20:42:58ZManuel Vázquez Acosta
<p>I thinks it's nice to have the submit button and the preview link also on the top of the edit form, to improve usability.</p>
<p>If the user needs just to update the status of an issue, or the priority; this patch would keep him from scrolling.</p> Redmine - Patch #6926 (New): Plugins captions for name and descriptions has not i18n supporthttps://www.redmine.org/issues/69262010-11-17T16:42:02ZJuanje Ojeda Croissier
<p>The admin plugin's view doesn't support translations.</p>
<p>Those fields right now are not able to be translated but they should.</p>
<p>I've added l() function to the view so that can be translated at init.rb.<br />I've attached a patch for it against the last Redmine version (<a class="changeset" title="Prevents NoMethodError when requesting /time_entries/edit without an id (#6904)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4410">r4410</a>).</p> Redmine - Patch #6864 (New): Support of mail notification for changesetshttps://www.redmine.org/issues/68642010-11-11T00:35:30ZXiwen Cheng
<p>This patch closely resembles the traditional subversion hooks. The main difference is the recipients list is integrated with redmine: author exclusion and permissions. And maybe other SCM's also (tested with SVN).</p>
<p>I have tested it with plain text only, the html template needs improvements (render difference for instance).</p>
<p>TODO: ability to turn this off in project settings.</p> Redmine - Patch #6807 (New): internal hostname included in back_urlhttps://www.redmine.org/issues/68072010-11-02T18:17:33ZAlbert Rosenfield
<p>Hi</p>
<p>The documentation recommends that Redmine run behind a reverse proxy such as nginx for doing SSL and caching.</p>
<p>Is it on purpose that the internal URL ("localhost" in my case) rather than the external URL from Administration --> Settings --> General --> Host_name is exposed in this configuration?</p>
<p>Every time a user hits a page and is redirected to the login page, the back_url parameter in the query string contains the host "localhost".</p>
<p>Attached is a patch to fix this, in case it is not intentional.</p> Redmine - Patch #6475 (New): Add an option to set the project name from apache when authenticatin...https://www.redmine.org/issues/64752010-09-23T12:08:16ZSergio Talens-Oliag
<p>I have some repositories that are configured with <code>SVNPath</code> instead<br />of <code>SVNParentPath</code> (I'm doing it to be able to use additional<br />authentication methods them, see issue <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Added FLAG to Redmine.pm to AllowAlternateAuth methods on apache (New)" href="https://www.redmine.org/issues/6414">#6414</a>).</p>
<p>With the current <code>Redmine.pm</code> code (1.0.1) the authentication against<br />Redmine fails because the <code>project_id</code> is not guessed as it should<br />(the apache <code>Location</code> points to the repository, not to it's parent<br />path).</p>
<p>To solve the problem I've patched <code>Redmine.pm</code> to allow the use of a<br />new option that adjusts the <code>project_id</code> to use; if the option is set<br />the get_project_identifier function returns that name instead of<br />calculating it from the URI and the apache location).</p>
<p>The attached patch is against an export of the redmine-1.0.1 tag.</p> Redmine - Patch #6414 (New): Added FLAG to Redmine.pm to AllowAlternateAuth methods on apachehttps://www.redmine.org/issues/64142010-09-16T11:23:00ZSergio Talens-Oliag
<p>I want to use <code>Redmine.pm</code> to authenticate users when accessing<br />subversion, but I also want to be able to authenticate non-Redmine<br />users.</p>
<p>To be able to do it I've added an additional flag to the <code>Redmine.pm</code><br />module to allow the use of multiple authentication methods.</p>
<p>The name of the flag (<code>RedmineAllowAlternateAuth</code>) has been taken from<br />the variable used on the <code>Apache2::AuthNetLDAP</code> and <code>Apache2::AuthenNIS</code><br />modules that is used for the same purpose.</p>
<p>The attached patch is against an export of the <code>redmine-1.0.1</code> tag.</p> Redmine - Patch #6330 (New): Hyperlinks with "%" or "!" at the endhttps://www.redmine.org/issues/63302010-09-08T10:06:27ZAnonymous
<p>I've searched the issues, wiki and forum but couldn't find any help regarding an issue when inserting hyperlinks:</p>
<p>When you insert a link that ends with a symbol, e.g. "!" or "%", then the Wiki interprets this as punctuation rather than as part of the hyperlink. I've tried various ways of encapsulating the link but none seems to work.</p>
<p>Examnple: <a class="external" href="http://es.farnell.com/yageo-phycomp/can4311129200431k/antena-12-x-4-433mhz/dp/1282674?crosssellid=1282674&crosssell=true&in_merch=truex%x">http://es.farnell.com/yageo-phycomp/can4311129200431k/antena-12-x-4-433mhz/dp/1282674?crosssellid=1282674&crosssell=true&in_merch=truex%x</a>%</p>
<p>A simple patch would be nice that allows inserting hyperlinks as they are, e.g. by placing them into inverted commas or placing the full <a href> HTML tag.</p> Redmine - Patch #6177 (New): "bignum too big to convert into `long'" in migrate_from_trac.rakehttps://www.redmine.org/issues/61772010-08-19T14:43:16ZJonas Pfenniger
<p>When importing from a sqlite3 trac database, I have tons of those issues, which the patch fixes.</p>
<p>Maybe this only happens for people using sqlite3 so the patch may need some cleanup but at least it's there.</p>
<p>diff was generated with `diff -u` on the redmine-1.0.0 release (but the file didn't change since 0.9)</p> Redmine - Patch #6159 (New): Subversion: latest changesets performance improvement.https://www.redmine.org/issues/61592010-08-17T14:28:55ZGo MAEDA
<p>Redmine executes "svn log" command 2 times (Repository::Subversion#fetch_changesets and Repository::Subversion#latest_changesets) when performing repository/show action. As a result, it takes very long time to complete when the repository is on remote server.</p>
<p>This patch improves performance of the Subversion#latest_changesets method by querying changesets table on the database instead of executing "svn log" command.</p> Redmine - Patch #6107 (New): Modify reposman.rb to delete a project on the repository when this p...https://www.redmine.org/issues/61072010-08-11T16:40:01ZJosé Cano
<p>reposman.rb must run as a cron job to enable the automatically project creation on the repository server, when a project has been created on redmine.</p>
<p>It does not already implement automatic project deletion on the repository. This patch try to achieve it for SVN repository, git repository must still be implemented.</p> Redmine - Patch #6053 (New): Fixed issue list context menu overflowhttps://www.redmine.org/issues/60532010-08-06T09:12:29ZSheng Wang
<p>I found some content overflow when context submenu upto browser top.<br />see the screenshorts:<br /><img src="https://www.redmine.org/attachments/download/4254/context-menu-overflow.png" alt="" /></p>
<p>I use firebug debug and fixed it. Special see the patch file.</p>
<p>The following screenshorts is perfect result:<br /><img src="https://www.redmine.org/attachments/download/4255/fixed-context-menu-overflow.png" alt="" /></p> Redmine - Patch #5829 (New): show roadmap with child project issues.https://www.redmine.org/issues/58292010-07-07T08:55:08Zyusuke kokubo
<p>A patch for roadmap.</p>
<p>roadmap show issues group by target version.<br />but parent project can show only parent's trackers issues.</p>
<p>I hope parent project can show child project issues.</p> Redmine - Patch #5722 (New): Custom Boolean Fields cannot be set to truehttps://www.redmine.org/issues/57222010-06-22T10:41:50ZVolker Gersabeck
<p>ruby 1.8.7<br />Rails 2.2.3<br />Redmine 0.9.3.stable (MySQL)</p>
<p>When having a custom boolean field for my issues, I was not able to set it to true since the hidden input value was used when updating the values instead of the checkbox value. Changing the order of the hidden input and the checkbox solved this issue. Just replace in /usr/share/redmine/app/helpers/custom_fields_helper.rb around line 47:</p>
<p>hidden_field_tag(field_name, '0') + check_box_tag(field_name, '1', custom_value.true?, :id => field_id)</p>
<p>by</p>
<p>check_box_tag(field_name, '1', custom_value.true?, :id => field_id) + hidden_field_tag(field_name, '0')</p> Redmine - Patch #5669 (New): Subversion mirror creation.https://www.redmine.org/issues/56692010-06-10T21:46:15ZBryce Nordgren
<p>This patch modifies <code>reposman.rb</code> such that it can be run on a machine which mirrors the Subversion repositories created by Redmine. An additional SCM module is defined (Subversion_mirror) which creates any repositories which do not already exist on the mirror. These repositories have the pre-revprop-change hook installed, and <code>svnsync init</code> is called.</p>
<p>This patch is against the 0.9-stable branch at <a class="changeset" title="Ignore rubinius .rbc files" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3768">r3768</a>. The patched file is also attached.</p> Redmine - Patch #5556 (New): Display more projects in project jump boxhttps://www.redmine.org/issues/55562010-05-19T14:30:32ZHolger Just
<p>This patch adds a setting for displaying only projects a user is member of in the project jump box (default and current behavior) or displaying all visible projects.</p>
This allows the following features:
<ul>
<li>Jump Box for anonymous users containing public projects</li>
<li>Full project list for admins</li>
</ul>
<p>Tests and an additional translation string (with provided German translation) are contained in the patch.</p> Redmine - Patch #5554 (New): Make links to various redmine objects more consistenthttps://www.redmine.org/issues/55542010-05-19T12:47:28ZHolger Just
Currently, there are at least two places where links to the different objects are generated:
<ul>
<li>the <code>link_to_OBJECT</code> methods in <code>application_helper.rb</code></li>
<li>the huge case statement in <code>parse_redmine_links</code> in <code>application_helper.rb</code></li>
</ul>
<p>Both of these places use independent code. This code should be merged into a consistent view. Today, both link types differ at least in its class attributes which makes themeing harder.</p>
<p>The attached patch fixes this for the <code>link_to_attachment</code> and the <code>link_to_revision</code> methods.</p> Redmine - Patch #5510 (Resolved): Enable Mutliple Versions Per Issuehttps://www.redmine.org/issues/55102010-05-12T06:14:28ZCharlie Savage
<p>Attached is a patch against head (as of today) that enables multiple versions per issue. If there is interest, we would be happy to do what is necessary to integrate this into Redmine core. I've attached a screen shot of the issue page so people can see what it looks like.</p>
<p>There have been several past discussions about supporting multiple versions per issue - see <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Add 'affected version' as a standard field (Closed)" href="https://www.redmine.org/issues/1675">#1675</a>, <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Issues fixed in multiple versions (Closed)" href="https://www.redmine.org/issues/284">#284</a>, <a class="issue tracker-2 status-1 priority-5 priority-high2" title="Feature: Feature: Allow setting multiple target-milestones (New)" href="https://www.redmine.org/issues/1266">#1266</a>.</p>
<p>In our use case, we have 60 projects, each of which has 7 phases (each a version) and work orders (each a version) and weekly development releases (global versions). Thus an issue can be added to the May 14th development release, added to Phase I and added to a work order. Basically, we find versions a great way to group issues together to a) keep track of progress b) roll up time entries c) roll up estimated times.</p>
<p>A quick over of the patch:</p>
<ul>
<li>Because it changes models, controller and views, its not really workable as a plugin</li>
</ul>
<ul>
<li>It adds a new table, issues_versions, with issue_id and version_id columns. This is a habtm relationship between versions and issues. This could be done as :has_many :through if that is preferable.</li>
</ul>
<ul>
<li>It includes migrations to setup the new table and then renames the fixed_version_id column in issues to fixed_version_id_old (so as to not delete the data). Note that as far as I can tell, rails migrations don't allow the creation of a two column habtm table with both fields as primary keys, thus part of the migration is in sql currently (tested on postgresql).</li>
</ul>
<ul>
<li>It adds a new issue_version controller modeled after issue_relation as well as the necessary controller permissions.</li>
</ul>
<ul>
<li>It updates all the various places issue.fixed_version is used (issue update form, mass edit form, move form, reports, etc).</li>
</ul>
<ul>
<li>The ugliest part of the patch is Issue#by_version since it has to repeat code from Issue#count_and_group_by which isn't flexible enough for this change.</li>
</ul>
<p>The one caveat of the patch is time reports. These reports remain unchanged if you do not group by version. But if you group by version, and add an issue to two versions, then its time is added to both versions. That is exactly the behavior we want, but it might not be appropriate in all cases. The easy way to avoid it is don't add an issue to two versions (or if you do, don't sum up the times between the two versions). Or in other words, multiple versions give a great deal more flexibility to managing a product, but you do have to understand what you are doing.</p>
<p>Like I said, if there is interest we'd like to see this integrated into Redmine core and are happy to make changes/update tests, etc. to make it happen. Note we've been running the patch in production for a couple days now, so believe it works as designed. We'll keep the patch updated against head, and fix any issues that we run into obvously.</p> Redmine - Patch #5447 (New): User status can not be changed with javascript disabledhttps://www.redmine.org/issues/54472010-05-05T15:39:05ZHolger Just
<p>If an admin-user has javascript disabled, she can not update the status of a user.</p>
<p>The generated links (by <code>change_status_link</code>) require some javascript to turn the request into a POST. <code>/users/:id/edit</code> does not allow changing the state with a GET, which leaves the admin-user without further options.</p>
<p>The attached patch adds a status select box to the user edit form. This however does still not resolve the non-functioning of the change_status_link, but at least provides a workaround.</p> Redmine - Patch #5389 (New): Option redirect_to in UsersController#edit when a params :back is de...https://www.redmine.org/issues/53892010-04-27T16:03:39ZThales Ferreira
<p>Actually, in controller Users when a request of type post is send the last line in this method (line: 112 redirect_to :back) for me doesnt make sense.</p>
<p>It will usable if it wasnt redirect_to params[:back]. ???</p>
<p>I found this when i needed to redirect to last location in a user edit. <br />For example, im forcing the user to fill another custom fields from your user data, but i want to back to previous url when the user complete the remainder custom fields edit.</p> Redmine - Patch #5200 (New): Redmine.pm - LDAP Host as URIhttps://www.redmine.org/issues/52002010-03-28T20:12:08ZAmir Hadi
<p>This patch will use an URI as Host-Name for an LDAP server in Redmine.pm</p>
<p>I needed this, because the LDAP server I use is not on the default port. The port in the variable $port is not used if the hostname in $host is not an URI.</p>
<p>Maybe this is not correct for anyone, but without this patch SVN authentication on my LDAP server did nod work.</p> Redmine - Patch #5119 (New): "User group" custom fieldhttps://www.redmine.org/issues/51192010-03-18T16:19:41ZFri Flaj
<p>This patch adds a "user group" custom field that will allow selecting one the the existing user groups tied to the active project.</p> Redmine - Patch #5065 (New): Importing wiki with different encodinghttps://www.redmine.org/issues/50652010-03-12T19:04:25ZJoão Machado
<p>When using migrate_from_trac.rake to import project from trac to redmine,<br />if trac's encoding different than utf8 (example: latin1),<br />it doesn't import wiki pages correctly (breaks on ã,â, etc)</p>
<p>Redmine <a class="changeset" title="Fixed: Trac importer creates duplicate wiki records (#4743)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3517">r3517</a>, <a class="changeset" title="Fixed windows platform detection in reposman.rb (#5039)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3571">r3571</a><br />Ruby version 1.8.7 (x86_64-linux)<br />RubyGems version 1.3.6<br />Rack version 1.0<br />Rails version 2.3.5<br />Active Record version 2.3.5<br />Active Resource version 2.3.5<br />Action Mailer version 2.3.5<br />Active Support version 2.3.5<br />Edge Rails revision unknown<br />Environment production<br />Database adapter mysql<br />Database schema version 20100221100219</p> Redmine - Patch #5035 (New): Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/50352010-03-10T13:40:42ZMike Stupalov
<p>I have written a patch for a script of migration from Trac.</p>
The list of the brought changes:
<ol>
<li>More complete <strong>regular expressions</strong> in many replacements of formatting wiki pages.</li>
<li>The <strong>first and last name</strong> of the user are correctly recognised</li>
<li>convert <strong>[[BR]]</strong> - before all</li>
<li><strong>Titles</strong> correctly converted and only h1. to h6. (Also work for <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Trac to Redmine wiki migration problems (New)" href="https://www.redmine.org/issues/3910">#3910</a>)</li>
<li><strong>External Links</strong> correctly converted (include mailto: links)</li>
<li><strong>Ticket links</strong> correctly converted</li>
<li><strong>Internal Links</strong> correctly converted</li>
<li><strong>Inline code</strong> are converted</li>
<li><strong>Tables</strong> are converted</li>
<li><strong>Lists</strong> correctly converted (include numbered)</li>
<li><strong>Inline images</strong> are converted</li>
<li>Changed default database adapter to <strong>sqlite3</strong></li>
</ol>
<p>The patch works for audit 3517 and above<br />The additional information is in remarks. The patch works for <a class="changeset" title="Fixed: Trac importer creates duplicate wiki records (#4743)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3517">r3517</a> and above.</p>
<p>File: <a class="attachment" href="https://www.redmine.org/attachments/3332">migrate_from_trac_v1.patch</a></p> Redmine - Patch #5027 (New): hook in the mail_handlerhttps://www.redmine.org/issues/50272010-03-10T07:11:34ZJie Ma
<p>Add a hook in the models/mail_handler.rb, and change the get_keyword() to public, which I can call it in plugin.</p>
<p>I can get more (like start_date) or some custom keywords through this patch.</p>
<p>Not sure is it safe if I change the get_keyword() to public.</p>
<p>Thanks.</p> Redmine - Patch #4977 (New): LDAP user cant change username and emailhttps://www.redmine.org/issues/49772010-03-03T16:30:15ZAaron Fischer
<p>If the user is authenticated over ldap, he should not change email and username in the profile.<br />Patch included.</p> Redmine - Patch #4878 (Resolved): More Hook Featureshttps://www.redmine.org/issues/48782010-02-18T17:28:59ZThomas Löber
<p>Hi!</p>
<p>I added some features to <code>hook.rb</code>:</p>
<ul>
<li>cleaned-up <code>call_hook</code></li>
</ul>
<ul>
<li>added an <code>:if</code> option to <code>render_on</code>, so you can write:<br /><pre>
render_on :view_issues_form_details_bottom, :partial => "test", :if => :really?</pre></li>
</ul>
<ul>
<li>added <code>render_to_string</code> to <code>ActionMailer</code> so <code>call_hook</code> can also be called from the mail templates in <code>app/views/mailer</code></li>
</ul>
<p>Unfortunately I didn't manage to write the matching test for @hook_test.rb" so far.</p> Redmine - Patch #4705 (New): Allow selection of up to five fields in timelog reporthttps://www.redmine.org/issues/47052010-02-01T12:27:10ZFrédéric Moulins
<p>It is useful if you want to match the detailed view (<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Custom fields should become addable to Spent Time list/report (Closed)" href="https://www.redmine.org/issues/1766">#1766</a>), or, like me, if you use custom fields in time entries.</p>
<p>For example, you can create a report like "Member, Custom Field, Project, Issue or Activity".</p> Redmine - Patch #4665 (New): Projects not calling EnabledModule callbacks in some caseshttps://www.redmine.org/issues/46652010-01-27T09:04:30ZEnrique Garcia
<p>Implementation of Project.enabled_module_names= still calls modules.clear() in some cases (if nil is passed as parameter).</p>
<p>This has the risk of not invoking module callbacks (before_create, after_create, before_destroy, after_destroy) correctly.</p>
<p>Proposed change is to remove all traces of modules.clear(). Example:</p>
<pre>
def enabled_module_names=(module_names=[])
module_names = module_names.collect(&:to_s)
# remove disabled modules
enabled_modules.each {|mod| mod.destroy unless module_names.include?(mod.name)}
# add new modules
module_names.reject {|name| module_enabled?(name)}.each {|name| enabled_modules << EnabledModule.new(:name => name)}
end
</pre>
<p>Regards!</p> Redmine - Patch #4662 (New): Handled-mail should use set issue.assigned_to to the first "To" addresshttps://www.redmine.org/issues/46622010-01-27T02:58:12ZTed Behling
<p>I wanted to be able to send an e-mail "To" a certain person, and CC: the Redmine address, to have Redmine "assign" the resulting new issue to that person. The attached two-line patch to the MailHandler model seems to achieve that, in my limited testing. The assumption with this patch is that Redmine's "role" address is not assigned to a user. If the To: address is not found as a User, no user is assigned.</p> Redmine - Patch #4571 (New): Allow labels for Redmine linkshttps://www.redmine.org/issues/45712010-01-13T14:40:45ZAndy Fowler
<p>Allow wiki syntax like:<br /><pre>
"some important ticket":#34
and
"this big commit":r123
</pre></p>
<p>Added via attached patch (against <a class="changeset" title="Set a white list of issue attributes that can be mass-assigned from controllers." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3308">r3308</a>) (and at <a class="external" href="http://github.com/andyfowler/redmine/commit/bcc4dbca53629a61ea9551d62c6c6b7d8d44247f">http://github.com/andyfowler/redmine/commit/bcc4dbca53629a61ea9551d62c6c6b7d8d44247f</a>). I also sent a pull request to Eric Davis. Not sure what the best way was to submit this.</p> Redmine - Patch #4535 (New): Import Target Version from Mantishttps://www.redmine.org/issues/45352010-01-07T22:25:37ZWim Heirman
<p>Currently, the Mantis importer only looks at the "Fixed in Version" which gets stored in Redmine's Target version field. All my open issues loose their target version now though, since they only have a Target version and no Fixed In version. This patch does the (for me logical) thing of importing the Fixed in version if it exists, and else the Target version.</p> Redmine - Patch #4277 (New): Add "hide prefixed projectname from issuesubject on issuelist" settinghttps://www.redmine.org/issues/42772009-11-24T00:54:39ZMischa The Evil
<p>This issue is extracted from <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Better display of subprojects activiry and tickets. (Closed)" href="https://www.redmine.org/issues/3100">#3100</a> and it's relatives. The patch adds a new system-wide, issue-tracking setting (<code>hide_prefixed_projectname_from_issuesubject_on_issuelist</code>) which provides the administrator an option to hide the subproject name (which is prefixed in front of the issue descriptions on mainproject issue lists) completely.<br />Such a setting can be useful if the site is configured to display the <code>project</code>-column be default.</p>
<p>The default setting is equal to as it is currently(the projectnames are shown prefixed to the descriptions).</p> Redmine - Patch #4071 (New): Accept more input when replying to a ticket using e-mailhttps://www.redmine.org/issues/40712009-10-21T14:18:43ZOxan -
<p>Currently, you can only set the status field when you reply at a ticket using e-mail. This patch adds the possibility to change the priority, category, tracker, target version, done ratio, project and custom fields, with respecting the allow_override setting.</p>
<p>You can delete the target version field with setting it to 'none'. The target version is named Target and the done ratio is named Done.</p>
<p>Example mail:<br /><pre>Here your comment
Target: 0.9
Done: 50
Tracker: Defect
Priority: Low</pre></p>
<p>Diff is made against 0.8.6, but should work for trunk too.</p> Redmine - Patch #4029 (New): Deletion of redmine-project should delete svn-project, toohttps://www.redmine.org/issues/40292009-10-14T13:05:57ZLars Scheithauer
<p>This small modification adds another argument --delete to <em>extra/svn/reposman.rb</em>.</p>
<p>Adding this argument to the cronjob will match the registered redmine projects against the folders in the svn repository directory and delete any obsolete svn repositories.</p> Redmine - Patch #3901 (New): Make length of short project description customizablehttps://www.redmine.org/issues/39012009-09-22T12:10:26ZBernhard Furtmueller
<p>Introducing a configurable length of the short project description.</p>
<p>If you have many project with long descriptions some overview pages<br />get to long otherwise.</p>
<p>Thanks for feedback,<br />bernhard</p> Redmine - Patch #3803 (New): Show custom user fields in csv export of time entry reportshttps://www.redmine.org/issues/38032009-09-01T12:31:05ZRoderik van der Veer
<p>Ok, fist of all, this was my first morning of ruby hacking, so code quality = 0. But it does what i need for now, and i wanted to share it.</p>
<p>The idea is as follows, i use these csv's to get my data in categories and per user into excel and do analysis on them. The problem is that not all users work at the same rate, and that is kinda vital to my analysis. I also don't want to copy paste in excel until i have a "rate" column for every user in every category in every product. The Rate plugin did,'t integrate with the normal time tracking export so i changed some core code by myself.</p>
<p>So i created a custom field on user (Rate) and i added some "if" statements in report_ ... _to_csv in the timeloghelper.rb. If "Member" is in the criteria, i add the custom fields of user just behind the Member column. This way i would have a colum "Member" and a column "Rate" (or any other custom user field i make.</p>
<p>To make it work i changed these to methods like so:</p>
<pre>
Index: timelog_helper.rb
===================================================================
--- timelog_helper.rb (revision 2847)
+++ timelog_helper.rb (working copy)
@@ -68,6 +68,8 @@
ic = Iconv.new(l(:general_csv_encoding), 'UTF-8')
decimal_separator = l(:general_csv_decimal_separator)
custom_fields = TimeEntryCustomField.find(:all)
+ #custom_user_fields = UserCustomField.find(:all)
+ #raise custom_user_fields.inspect
export = StringIO.new
CSV::Writer.generate(export, l(:general_csv_separator)) do |csv|
# csv header fields
@@ -115,6 +117,11 @@
CSV::Writer.generate(export, l(:general_csv_separator)) do |csv|
# Column headers
headers = criterias.collect {|criteria| l(@available_criterias[criteria][:label]) }
+ #logger.info{headers.inspect}
+ if headers.include?("Member")
+ custom_user_fields = UserCustomField.find(:all)
+ headers += custom_user_fields.collect(&:name)
+ end
headers += periods
headers << l(:label_total)
csv << headers.collect {|c| to_utf8(c) }
@@ -141,6 +148,14 @@
next if hours_for_value.empty?
row = [''] * level
row << to_utf8(format_criteria_value(criterias[level], value))
+ #logger.info criterias.inspect
+ if (criterias[level] == "member")
+ k = @available_criterias[criterias[level]][:klass]
+ user = k.find_by_id(value.to_i)
+ custom_user_fields = UserCustomField.find(:all)
+ #logger.info user.inspect
+ row += custom_user_fields.collect {|f| show_value(user.custom_value_for(f)) }
+ end
row += [''] * (criterias.length - level - 1)
total = 0
periods.each do |period|
</pre> Redmine - Patch #3749 (New): Wiki. TOC. The standardised anchors and admissible "fragment" part o...https://www.redmine.org/issues/37492009-08-17T23:10:11ZRoman Musin
<p>In such browsers as Opera 9/10 links in TOC menu does not work, this patch make link as much as possible compatible.</p>
<p>OS: Linux devis 2.6.26-2-686 <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: permissions if not admin (Closed)" href="https://www.redmine.org/issues/1">#1</a> SMP Sun Jun 21 04:57:38 UTC 2009 i686 GNU/Linux<br />Browser: Google Chrome 3.0.190.2, Opera 9.64, Firefox 3.08<br />Check XHTML with HTML Validator 0.8.5.8 (0 warnings, 0 errors)</p>
<hr />
<p>First patch for current trunk.</p>
<p>./script/about:<br /><pre>
About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.2
Rails version 2.2.2
Active Record version 2.2.2
Action Pack version 2.2.2
Active Resource version 2.2.2
Action Mailer version 2.2.2
Active Support version 2.2.2
Application root /home/devis/RedmineCurrent
Environment development
Database adapter sqlite3
Database schema version 20090614091200
</pre></p>
<p>svn info<br /><pre>
Path: .
URL: svn://rubyforge.org/var/svn/redmine/trunk
Repository Root: svn://rubyforge.org/var/svn/redmine
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 2845
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 2845
Last Changed Date: 2009-08-17 20:37:31 +0400 (Пнд, 17 Авг 2009)
</pre></p>
<p>Without patch one test failed:<br /><pre>
1) Failure:
test_show_atom(IssuesControllerTest)
[./test/functional/issues_controller_test.rb:377:in `test_show_atom'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `__send__'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `run']:
<false> is not true.
</pre></p>
<p>With patch one test failed too:<br /><pre>
1) Failure:
test_show_atom(IssuesControllerTest)
[./test/functional/issues_controller_test.rb:377:in `test_show_atom'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `__send__'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `run']:
<false> is not true.
</pre></p>
<hr />
<p>Second patch for stable branch.</p>
<p>./script/about:<br /><pre>
About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.4
Rails version 2.1.2
Active Record version 2.1.2
Action Pack version 2.1.2
Active Resource version 2.1.2
Action Mailer version 2.1.2
Active Support version 2.1.2
Application root /home/devis/Redmine
Environment development
Database adapter sqlite3
Database schema version 101
</pre></p>
<p>svn info:<br /><pre>
Path: .
URL: svn://rubyforge.org/var/svn/redmine/branches/0.8-stable
Repository Root: svn://rubyforge.org/var/svn/redmine
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 2845
Node Kind: directory
Schedule: normal
Last Changed Author: edavis10
Last Changed Rev: 2831
Last Changed Date: 2009-08-01 22:28:57 +0400 (Сбт, 01 Авг 2009)
</pre></p> Redmine - Patch #3608 (New): migrate_from_mantis encoding patchhttps://www.redmine.org/issues/36082009-07-11T10:07:15ZMykhaylo Sorochan
<p>Encoding was not set for database connection</p> Redmine - Patch #3477 (New): Fix access handler to remove the need for a separate svn-private/git...https://www.redmine.org/issues/34772009-06-10T19:54:22ZFaidon Liambotis
<p>The attached patch "fixes" the Apache access handler to accomodate for Apache's "Satisfy any" option.</p>
<p>Using this, I've successfully served (non-public) projects with authentication to members but no authentication to Redmine's browser. I've updated the sample Apache configuration, it should be quite straightforward.</p> Redmine - Patch #3437 (New): Textile parser regression with !! urlhttps://www.redmine.org/issues/34372009-06-02T14:13:40ZVianney Lecroart
<p>In <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Insert image macro corrupts urls with excalamation marks (Closed)" href="https://www.redmine.org/issues/3209">#3209</a> you added support for excalamation marks in url but it disabled the possibility to do linkable image.</p>
<p>Suggested patch:</p>
<p>When we arrive at evaluating this re, the input looks like either like:<br /><pre>
<p>!/attachments/download/1!</p> <-- we want to expand
or
<p>http://www.pouet.com/ahah!lol! <-- we don't want to expand
</pre></p>
<p>But also like, when we have "p=." <br /><pre>
<p :redsh#1:>!/attachments/download/1!</p>
</pre></p>
<p>Therefore I suggest to use this re in redcloth3.rb :</p>
<pre>
IMAGE_RE = /
(<p>|<p\s:.*:>|\s|^) # start of line?
\! # opening
</pre> Redmine - Patch #3357 (New): Revision log relative to current location in the Repository Browserhttps://www.redmine.org/issues/33572009-05-13T19:15:18ZLance Sanchez
<p>we recently converted from track to redmine an a feature request I'm getting at the office is in the repository browser to show the changesets that effect the current directory and lower</p> Redmine - Patch #3274 (New): Wiki Page Categorieshttps://www.redmine.org/issues/32742009-04-30T11:21:59ZSven Schwyn
<p>This patch is a preliminary implementation of wiki page categories (think: Wikipedia) for Redmine.</p>
<p>The patch is against Redmine 0.8.3. Watch it in action here:<br /><a class="external" href="http://www.bitcetera.com/assets/media/wiki_page_categories.mov">http://www.bitcetera.com/assets/media/wiki_page_categories.mov</a></p>
<p>Please note that I haven't written nor adapted any tests/fixtures yet. If you choose to adopt this patch, I'll catch up on this.</p> Redmine - Patch #3123 (Needs feedback): Check additional mail headers when creating issues via emailhttps://www.redmine.org/issues/31232009-04-05T15:54:45ZDuncan Harris
<p>We have a setup with Redmine where users often send mail using different from addresses in the email. We use Google Apps for email, but this would apply to other mail systems where users can set up multiple from addresses in their email.</p>
<p>If users send email with a different from address than their registered one then Redmine ignores the incoming email.</p>
<p>To fix this issue I created the attached modification which checks the mail headers "Return-Path", "Sender" and finally "From" (as before) for a match to a user account.</p>
<p>The "Return-Path" header relies on getting mail server to set this to the envelope sender address. I use the preline program with qmail to get this set.</p>
<p>This works because Google Apps email (and GMail) always set the Sender and envelope sender addresses to the users main or canonical email address even if they choose a different "From" address.</p> Redmine - Patch #3117 (New): Add the possibility to select the comment field to /timelog/reporthttps://www.redmine.org/issues/31172009-04-03T13:53:28ZNicolas Maeder
<p>Sometimes, I need to see the comments in the report, so I added <strong>comment</strong> to the list of additional details</p>
<p>URL for details report: <code>/timelog/report</code></p> Redmine - Patch #3052 (New): Patch for Redmine to persist form state when adding multiple issueshttps://www.redmine.org/issues/30522009-03-26T04:09:39ZHenrique Bastos
<p>When creating multiple issues in Redmine, I wanted that "save and continue" to persist some of the form states for the next issue.</p>
<p>To do it, I made this little patch that enables a new issue to inspire itself on another issue.</p>
<p>I’ve tested the patch against the stable releases 0.8.1 and 0.8.2.</p> Redmine - Patch #2862 (New): Make user sorting by his localized encoding name instead of utf-8 en...https://www.redmine.org/issues/28622009-02-28T09:11:15ZChaoqun Zou
<p>For those using non-ASCII systems, sorting user by name using a utf-8 encoding name and sorting user by name using their localized encoding name have different results.</p>
<p>For example: there are three users: user1, user2, user3.<br />If we sort them by name using the original utf-8 strings, the order may be: user1, user2, user3.<br />But when we convert the name string to another encoding(like gb2312) first, and then sort them by name, the result's order may be: user2, user1, user3.<br />And the second result is more acceptable than the first one.</p>
<p>So I thought that it would be great to convert the name string from utf-8 to the localized encoding before sorting user by name.</p>
<p>Since there is just one line bo be add to the user's model class, I didn't attach a diff file.<br />About line 217:<br /><pre>
<code class="ruby syntaxhl"> <span class="k">def</span> <span class="nf"><</span><span class="o">=></span><span class="p">(</span><span class="n">user</span><span class="p">)</span>
<span class="n">ic</span> <span class="o">=</span> <span class="no">Iconv</span><span class="p">.</span><span class="nf">new</span><span class="p">(</span><span class="n">l</span><span class="p">(</span><span class="ss">:general_csv_encoding</span><span class="p">),</span> <span class="s1">'UTF-8'</span><span class="p">)</span>
<span class="n">ic</span><span class="p">.</span><span class="nf">iconv</span><span class="p">(</span><span class="nb">self</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="p">)</span> <span class="o"><=></span> <span class="n">ic</span><span class="p">.</span><span class="nf">iconv</span><span class="p">(</span><span class="n">user</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="p">)</span>
<span class="k">end</span>
</code><br /></pre></p> Redmine - Patch #2750 (New): Project tinyurlhttps://www.redmine.org/issues/27502009-02-14T14:03:48ZSimone Carletti
<p>Some months ago, before the great restful reorganization patch (<a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: RESTful URLs for everything (Closed)" href="https://www.redmine.org/issues/1901">#1901</a>), I created a small feature called project tinyurl.<br />This is a supersimple action that provides an unique permalink to a project path and redirects any request to the real project URL.</p>
<p>Example:</p>
<p><a class="external" href="http://www.redmine.org/redmine">http://www.redmine.org/redmine</a> => <a class="external" href="http://www.redmine.org/projects/show/redmine">http://www.redmine.org/projects/show/redmine</a><br /><a class="external" href="http://www.redmine.org/foobar">http://www.redmine.org/foobar</a> => <a class="external" href="http://www.redmine.org/projects/show/foobar">http://www.redmine.org/projects/show/foobar</a></p>
<p>Here's a couple of real world examples:</p>
<p><a class="external" href="http://code.simonecarletti.com/www-delicious">http://code.simonecarletti.com/www-delicious</a><br /><a class="external" href="http://code.simonecarletti.com/apachelogregex">http://code.simonecarletti.com/apachelogregex</a></p>
<p>I forked Eric's repos on GitHub and provided a full patch along with functional and integration tests.</p>
<p><a class="external" href="http://github.com/weppos/redmine">http://github.com/weppos/redmine</a></p>
<p>All changes are available in a separate branch called <code>tinuyrl</code> (ehm... I mispelled it on creation!).</p> Redmine - Patch #2748 (New): Improved Trac-Importer with subversion repository migrationhttps://www.redmine.org/issues/27482009-02-13T22:22:29ZMathias Kühn
<p>I've spent some time improving the trac import script and also to provide a tool to also migrate the associated Subversion repository.</p>
The following changes were done to the trac migration process:
<ul>
<li>The original trac ticket id is stored in a new custom field named <strong><b>TracID</b></strong></li>
<li>The modification of all Wiki-like texts is done after all tickets have been migrated as only then all newly assigned ticket ids are defined.</li>
<li>Numbered lists are now supported</li>
<li>Source links are done the same way as milestones are treated</li>
<li>The modification of any Wiki-like texts (Milestone descriptions, Issue descriptions, Issue change notes, and Wiki pages) was added</li>
</ul>
<p>In addition to the migration of the trac repository, we had to modify the associated svn repository since the checkin comments were also having references to tickets in the commit messages. The new rake task <strong><b>redmine:migrate_svn_commits</b></strong> can be run after the trac repository has been migrated. The new task is recreating the association between trac ticket id and newly created redmine ticket id. Then all commit messages in the provided repository are extracted and converted with the same wiki translation during the trac migration. All ticket references are modified to point to the newly assigned redmine ticket identifiers.</p>
<p>Running the tool gives you the following output:<br /><pre>
rake redmine:migrate_svn_commits RAILS_ENV="production"
WARNING: all commit messages with references to trac pages will be modified
Are you sure you want to continue ? [y/N] y
Subversion repository url []: http://svn.server.dom/project
Subversion repository username []: user
Subversion repository password []: secret
Redmine project identifier []: project-id
</pre></p>
<p>In order for the script to succeed, the subversion repository must allow modification<br />of revision properties. This can be accomplished by enabling the <strong><b>pre-revprop-change</b></strong> hook script<br />that returns 0 to the caller. The script can be as simple as the following:</p>
<p>A Windows <strong><b>pre-revprop-change.cmd</b></strong>:<br /><pre>
exit 0
</pre></p>
<p>...or a unix executable script <strong><b>pre-revprop-change</b></strong><br /><pre>
#!/bin/sh
exit 0
</pre></p> Redmine - Patch #2696 (New): Add subcategory to categoryhttps://www.redmine.org/issues/26962009-02-07T22:40:44ZRob Elsner
<p>This patch contains 2 migrations to add a column to issues and a table called issue_subcategories. This will allow users to have Categories, and a subcategory grouping below that.</p>
<p>I have tried to add the necessary parts for English, and use similar names for category.</p>
<p>This was diff'd against svn trunk revision 2399.</p> Redmine - Patch #2576 (New): Partially decouple application_helper.rb from Gravatarhttps://www.redmine.org/issues/25762009-01-24T22:17:36ZBrad Beattie
<p>The application_helper.rb directly accesses the Gravatar function by email. I would argue that it would be better to instead use vendor/plugins/gravatar/lib/gravatar.rb's gravatar_for function with the user object.</p>
<p>The situation I have here is that my local instance has modified the Gravatar plugin to use locally stored avatars linked by email address (as dictated by application_helper.rb). Occasionally, users change their email addresses, which requires renaming their avatar files. If the change I proposed was implemented, this local avatar plugin would be doable. Without it, the avatar system is intrinsically tied to email addresses.</p>
<p>I'm not sure what patch formats you prefer, so here's the proposed change:</p>
<pre><code class="ruby syntaxhl"><span class="k">def</span> <span class="nf">avatar</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="n">options</span> <span class="o">=</span> <span class="p">{</span> <span class="p">})</span>
<span class="k">if</span> <span class="no">Setting</span><span class="p">.</span><span class="nf">gravatar_enabled?</span>
<span class="k">return</span> <span class="n">gravatar_for</span><span class="p">(</span><span class="n">user</span><span class="p">)</span> <span class="k">unless</span> <span class="n">user</span><span class="p">.</span><span class="nf">mail</span><span class="p">.</span><span class="nf">blank?</span> <span class="k">rescue</span> <span class="kp">nil</span>
<span class="k">end</span>
<span class="k">end</span>
</code></pre>
<p>Apologies if my syntax is wrong. I'm so very, very new to Ruby.</p> Redmine - Patch #2510 (New): [SCM, Bazaar] Prefer revision's "author" field over "committer" if a...https://www.redmine.org/issues/25102009-01-14T17:58:54ZDaniel Schömer
<p>I'm using the Bazaar SCM Adapter. Some revisions have the <code>author</code> field set to show that the committer of that revision was not the author of that change. This info is given by the <code>--author</code> option of Bazaar's <code>commit</code> command.</p>
<p>The current Bazaar SCM Adapter always uses the <code>committer</code> field to set the author of a revision.</p>
<p>I like the Bazaar SCM Adapter to prefer the <code>author</code> field over the <code>committer</code> field, if the <code>author</code> field is set. The attached patch changes <code>lib/redmine/scm/adapters/bazaar_adapter.rb</code> accordingly.</p> Redmine - Patch #2457 (Needs feedback): Different style of new issue/timelog interfacehttps://www.redmine.org/issues/24572009-01-07T13:49:09ZMischa The Evil
<p>For my own Redmine instance I modified the interface regarding the "entry-links" for new issues and new timelogs a long time ago. I used several other patches and sources to come to the final result. I always wanted to create a configurable patch for others who might be interested, but never came to it. Now, here it finally is...</p>
<p>The urge for the modifications came from the fact that I needed to have cross-project, direct-access to the new-links for both the issues and the timelogs (the only two things which a user enters frequently).</p>
I added/modified the following things:
<ul>
<li>Added setting <code>main_new_links_enabled</code> which enables the changes from this patch (defaults to 0/false) and at the same time removes the default "New issue"-tab on the project-menu</li>
<li>Added new-issue link right above the main issuelist (view: issues/index) which get rendered <code>if_authorized</code></li>
<li>Added JavaScripted top-menu items for new issue and new timelog (only rendered when the visitor is a logged-in user && the current logged-in user has at least one membership (role)) which opens dynamic-menu's (based on the project-selector) showing the projects for which the current logged-in user has a role.</li>
</ul>
As mentioned earlier I based my modifications on some other patches and contributions:
<ul>
<li>Patch <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Patch for #1003 (Closed)" href="https://www.redmine.org/issues/1022">#1022</a> (Patch for <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Allow "New Issue" from anywhere (Closed)" href="https://www.redmine.org/issues/1003">#1003</a> [Allow "New Issue" from anywhere]) by Rocco Stanzione; This was my starting point for this patch. I've refactored the CSS to better fit the current trunk's default theme. I've also modified the conditions under which the links are displayed.</li>
<li>Patch <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Jump-in for 'add time' (Closed)" href="https://www.redmine.org/issues/249">#249</a> (Jump-in for 'add time') by Michael Pirogov; This patch made me realize I wanted the new timelog-liks integrated just as the new issue-links. This also gave me the insights about how this could be merged with patch <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Patch for #1003 (Closed)" href="https://www.redmine.org/issues/1022">#1022</a> to implement my needs for the new timelog-links.</li>
<li><a href="http://forge.typo3.org/repositories/diff/team-forge?rev=905" class="external">Revision 905</a> of Typo3's Redmine-fork by Sebastian Kurfürst; This changeset gave me the idea and basic-code for adding the new issue-link also in the main issuelist and for removing the new-issue tab.</li>
</ul>
<p>Like stated before I've added a setting for the modifications I've made. This means that with the patch applied (but no configuration) the default behaviour/UI isn't modified. The modifications specifically needs to be configured to be used.</p>
<p>This patch is not specifically shared/posted to get integrated into the Redmine core since I think it is more a personal request to have these changes integrated rather then that it is a community one.</p>
<p>Hope someone can appreciate the patch. Just to note: I've kept the code as seperated as possible (ie duplicated lots of it for both the JavaScripted menu's, instead for combining it at a higher-level). This will allow more easy extraction of parts of this patch.</p> Redmine - Patch #2195 (New): wiki marco to link to fileshttps://www.redmine.org/issues/21952008-11-15T16:34:35ZAnh Kỳ Huỳnh
<p>I create an wiki macro so I can link to attachment file easier:<br /><pre>
{{file(id:Title)}}
{{file(id/filename:Title)}}
</pre></p>
<p>I don't know how to get the filename from the file's identity. I hope the someone may help me:)</p>
<p>Hope this is usefull :)</p> Redmine - Patch #2173 (Needs feedback): Update the Git repository automaticallyhttps://www.redmine.org/issues/21732008-11-13T08:03:48ZDavid Holm
<p>The Wiki suggests (<a class="external" href="http://www.redmine.org/wiki/redmine/RedmineRepositories">http://www.redmine.org/wiki/redmine/RedmineRepositories</a>) that you should set up a cron job to update the Git bare repository, the one redmine points to, automatically. This is unneccessary since you could just as easily use Git's hooking mechanism to have it automatically update the repo on each push.</p>
<p>1. chmod a+x post-receive-redmine<br />2. Put post-receive-redmine in <redmine dir>/doc/git-hooks<br />3. Change into your main git repo dir (the one you push to)<br />4. Edit ./hooks/post-receive and add a line that says ". <redmine dir>/doc/git-hooks/post-receive-redmine" <br />5. Run "git config --add hooks.redmineGitBase <base path to redmine bare repos, i.e. /var/lib/redmine/git_repos>" <br />6. You're done!</p>
<p>The script could be updated to create the bare repo if it doesn't already exist but it would need to know which permissions to change it to for redmine to read it so I didn't add this feature.</p> Redmine - Patch #2114 (New): Fixed Bugs in Importer Areahttps://www.redmine.org/issues/21142008-10-30T21:15:19ZKarl Heinz Marbaise
<p>Hi,<br />i have created separate class and unit test to fix the following issues: <br /><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Milestones after Migration from Trac to Redmine are not marked as closed (Closed)" href="https://www.redmine.org/issues/1949">#1949</a>, <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Content of the Milestone page is not converted. (Closed)" href="https://www.redmine.org/issues/1950">#1950</a>, <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Migration from Trac to Redmine import of highlighting code is not correct (Closed)" href="https://www.redmine.org/issues/2023">#2023</a>, <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Milestones will not correctly converted. (Closed)" href="https://www.redmine.org/issues/2052">#2052</a>, <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Trac: Migration of ticket:123 or [ticket:34] do not work (Closed)" href="https://www.redmine.org/issues/2053">#2053</a>, <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Trac Tables are not converted into Redmine (New)" href="https://www.redmine.org/issues/2054">#2054</a>, <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: [source:XYZ@latest#L142 Line 3434] will not be converted (New)" href="https://www.redmine.org/issues/2068">#2068</a>, <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: [mailto:supose@soebes.de] will not correctly converted (New)" href="https://www.redmine.org/issues/2089">#2089</a></p>
<p>It will make <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Summarization of #1949, #1950 and #2023 (Closed)" href="https://www.redmine.org/issues/2050">#2050</a> needless. Other information for example in which directories they should be put into, can be found in the <a href="http://www.redmine.org/boards/1/topics/show/2761" class="external">forum discussion</a></p>
<p>Suggestions about the code etc. are appreciated.<br />Kind regards<br />Karl Heinz Marbaise</p> Redmine - Patch #1857 (New): Make {{toc}} render as properly nested list + skip supporthttps://www.redmine.org/issues/18572008-09-04T14:34:40ZJim Jones
<p>The attached patch changes the {{toc}}-macro to render as a properly nested HTML unordered list.<br />Furthermore it adds a parameter to skip the first n headlines, because at least the first one is usually not interesting:</p>
<p>Example:
{{toc:1}} skips the first headline.
{{toc:3}} skips the first three headlines.</p>
<p>The patch also removes the (now superflous) css indentation rules for the <li> elements.</p> Redmine - Patch #1783 (New): automatic repository creationhttps://www.redmine.org/issues/17832008-08-13T14:42:52Zpietro abate
<p>Hello everybody. This is my first patch. Be nice. I'm a ruby, rails and redmine newbie.</p>
<p>The patch attached (generated from git following [1]) adds the ability for the <br />project manager to decide weather to specify an external repository, or to<br />have one automatically created for him/her on the hosting site.</p>
<p>I've added a new script repomangen that works exactly as repoman, but ideally<br />for all kind of scm.</p>
<p>In the process I think I've also found a bug in app/controllers/sys_controller.rb<br />but since I'm not really sure that it's really a bug I'm bundling everything together.</p>
<p>I think this patch still needs some love, but I'd love to see it upstream, or at least<br />for testing, in John Goerzen git repo.</p>
<p>Comments are welcome.</p>
<p>[1]http://www.redmine.org/wiki/1/RedmineGitTracking</p> Redmine - Patch #1764 (New): Add session_config option-stubs to environment-confighttps://www.redmine.org/issues/17642008-08-11T01:56:41ZMischa The Evil
<p>This is a multi-branch (trunk and stable-0.7.3) patch which simply adds two session-related configuration-directive stubs to <em>./config/environment.rb</em>.</p>
The given stubs are for:
<ul>
<li><code>session_key</code></li>
<li><code>session_path</code></li>
</ul>
<p>I created (and provide) this patch due to the fact that one of both directives is required to run multiple Redmine (or other apps which use the same session-names as Redmine) deployments on the <strong>same domain</strong> (though <strong>seperate installs</strong> under several <strong>different sub-URI's</strong>) without suffering from <em>session-mangling</em>.<br />Both directives aren't documented (sufficiently) imho at the Redmine website or the Redmine Code-base. That is the reason why I'd propose to add something like provided with this patch. If it is not taken into the project I would propose to add an entry to the Redmine FAQ about these issues. I am volunteering already... :-)</p>
I already found some related issues and threads:
<ul>
<li><a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Append suffix to cookie name (Closed)" href="https://www.redmine.org/issues/540">#540</a></li>
<li><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: login problem with 2 redmine installation on the same server (Closed)" href="https://www.redmine.org/issues/1041">#1041</a></li>
<li><a class="external" href="http://www.redmine.org/boards/2/topics/show/150#message-163">http://www.redmine.org/boards/2/topics/show/150#message-163</a></li>
</ul>
<p>Both issues contain comments which faulty "documents" the session_key directive. This faultyness is due to the fact that rake will crash if the session_key directive is used in <em>./config/enviroment.rb</em> as commented in both issues probably caused by the rake-scripts which aren't accepting Rails 2.1 syntaxis.<br />The mentioned forum-thread gives to correct syntaxis though it is mixed with another config-directive in some another case.</p>
<p><strong>Beware</strong>: This patch only adds config-stubs which solves the session-mangling behaviour in the given environment. It does not fix any related problems with the so-called autologin-cookie. I created a sepereate specific issue for that (<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Autologin-cookie should be configurable (Closed)" href="https://www.redmine.org/issues/1763">#1763</a>).<br />See also <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Append suffix to cookie name (Closed)" href="https://www.redmine.org/issues/540">#540</a> and partly <a class="issue tracker-2 status-1 priority-3 priority-lowest" title="Feature: option to set secure flag on session and autologin cookie (New)" href="https://www.redmine.org/issues/982">#982</a> regarding the problems with the autologin-cookie.</p> Redmine - Patch #1705 (New): Use Rails timezones supporthttps://www.redmine.org/issues/17052008-07-29T13:09:33ZArtem Vasiliev
<p>This switches off previous time offset calculation when showing time values to user, relying on Rails timezones support instead.</p>
<p>This is essential for cases when time is entered by user, so we need this for our <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Start/end time tracking for timelogging (New)" href="https://www.redmine.org/issues/1650">#1650</a> patch (otherwise user sees his time +his timezone offset).</p>
<p>This doesn't bring much to current Redmine as all the time fields are populated automatically currently. May be it could be used to correct SCM timestamps if some give it in non-UTC. And surely this will help time values in custom fields when they support it.</p>
<p>After this patch is applied all the datetimes in the database will be interpreted as being in UTC, so if they don't they need to be updated. For this new redmine:convert_database_times_to_utc rake task is included. Be sure to correct its LOCAL_UTC_OFFSET and back up the database prior to running.</p>
<p>Contributed by Texuna Technologies.</p> Redmine - Patch #1601 (New): Make second level navigation for all views in repository controllerhttps://www.redmine.org/issues/16012008-07-08T12:22:18ZBradley Whittington
<p>We are using redmine for internal project management, and we found it lacking a consistent second level navigation while browsing files, reviewing diffs, etc. under the repositories controller.</p>
<p>This patch moves the navigation originally provided on the "changes" view, into a partial template called _entry_nav.rhtml, expands it to include links for annotation, view, and a link back to the changes view, labelled as "History".</p>
<p>the partial can take an additional variable called current_view which hints to the second level nav which view is currently being shown, so it can hide the irrelevant link.</p>
<p>The patch also moves the navigation provided in the revision view (the next changeset, previous changeset) into a partial called _changeset_nav.rhtml so that it can be used on the 'browse' view, and later could be expanded to be used on the 'entry', 'annotation' etc. view, so one could navigate changesets relevant to that file, providing a temporal navigation to the repositories.</p>
<p>We have found it to be a nice improvement because it is easy to jump from a changeset listing to a file's annotation, diff, view, and history</p>
<p>I built the patch against an svn checkout of the 0.7-stable branch</p> Redmine - Patch #1382 (New): Add a global notification cc https://www.redmine.org/issues/13822008-06-05T07:27:21ZJames Turnbull
<p>We cc'ed all notifications to a mailing list when we were using Trac and I wanted to add the same functionality to Redmine. Attached is a patch that adds a global cc to all notifications and adds a setting, mail_cc, to the Email Notifications settings panel.</p> Redmine - Patch #1059 (New): Fully integrates svn/dav apache authenticationhttps://www.redmine.org/issues/10592008-04-15T07:00:33ZLionel Molinier
This patch provides:
<ul>
<li>User authentication based on the Redmine authentication module (including external source, such as LDAP) via the Redmine WebService. The password is ciphered in AES for the communication</li>
<li>Depending on their role on the project, users can have read/write access or read only access (new permission commit_repositories)</li>
<li>A fully configurable cache system has been deployed to improve performance (WebServices are quite slow).</li>
</ul> Redmine - Patch #1021 (New): Patch for #1013 (uniqueness-validation of custom query name within u...https://www.redmine.org/issues/10212008-04-08T18:58:53ZRocco Stanzione
<p>This adds a validator for uniqueness of a custom query name within the scope of the user.</p> Redmine - Patch #1008 (New): redmine:migrate_from_trac doesn't work when multibyte characters are...https://www.redmine.org/issues/10082008-04-07T06:54:20Zokkez _
<p>redmine:migrate_from_trac doesn't work when I use multibyte characters in trac.<br />So I wrote a simple patch for this problem.</p>
<p>I think this patch makes the task so slow.</p>
<p>Why the task doesn't work?<br />Because Ruby's String#[pos, length] counts bytes (Ruby1.8), but database counts characters (varchar(30)).</p>
<p>Another way, you fix database schema. <br />For example:<br /><pre>
issue_categories name varchar(30) -> varchar(255)
</pre></p>
<p>But this way cannot solves real problem in the task.</p> Redmine - Patch #257 (New): Optional project repository creation when using reposman.rbhttps://www.redmine.org/issues/2572008-01-28T15:33:00ZThomas Kjosmoen
<p>This is a patch set to give the administrator/manager the option exclude projects from being automatically created when<br />using the reposman.rb script.</p>
<p>To apply the patch, run the following command from inside your redmine directory:<br />patch -p0 < /path/to/redmine-autocreate-repository.patch</p>
<p>One of the implications is that you can allow a subproject to use a folder in the parent project's repository, instead<br />of creating completely separate repositories every time.</p>
<p>Hopefully, this patch will be useful.</p>