Projects: Issueshttp://projects.andriylesyuk.com/http://projects.andriylesyuk.com/plugin_assets/andriy_lesyuk/images/s-andy.ico2016-10-29T20:06:32ZProjects
Redmine ISSUE-id - Bug #ISSUE-12 (Deferred): No route matches error for journals#newhttp://projects.andriylesyuk.com/issues/ISSUE-122016-10-29T20:06:32ZAndriy Lesyuks-andy@andriylesyuk.com
<p>Before Rails 4 it was possible to override name routes in <code>config/routes.rb</code>. But, in Rails 4 this is no longer possible, see <a class="source" href="http://projects.andriylesyuk.com/projects/issue-id/repository/revisions/21/entry/config/routes.rb#L12">source:config/routes.rb@21#L12</a>.</p>
<p>For Rails 4.1 it was possible to override the path helper method by including a custom module as follows:</p>
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="constant">Rails</span>.application.routes.url_helpers.send(<span class="symbol">:include</span>, <span class="constant">IssueRouterHelper</span>)
</span></code></pre>
<p>But, in Rails 4.2 this does not work as well. Redmine gives the error:</p>
<pre>
No route matches {:action⇒“new”, :controller⇒“journals”, :id⇒#<Issue id: 273, ..., project_key: “ADMIN”, issue_number: 8>} missing required keys: [:id]
</pre>
<p>I tried different methods including something like (found such on StackOverflow):</p>
<pre><code class="ruby syntaxhl"><span class="CodeRay"><span class="constant">Rails</span>.application.routes.named_routes.url_helpers_module.send(<span class="symbol">:include</span>, <span class="constant">IssueRouterHelper</span>)
</span></code></pre>
<p>But, no luck.</p>
<p>Currently, this is fixed by overriding <code>app/views/issues/show.html.erb</code> (see <a class="changeset" title="Fix #quoted_issue_path by overriding issues/show.html.erb (#ISSUE-8, #ISSUE-12)" href="http://projects.andriylesyuk.com/projects/issue-id/repository/revisions/23">r23</a>), but this is not a good workaround. A better one should be found! <em>I assume, Rails 4.3+ should have a fix for this.</em></p> OpenID Fix - Bug #2362 (Incomplete): Redmine 3 Compatibiltyhttp://projects.andriylesyuk.com/issues/23622015-03-10T14:27:44ZHarold Simpson
<p>Plugin is not compatible with Redmine 3 (rails 4.2)</p>
<p>I have made a quick patch : <a class="external" href="https://github.com/harold-s/harold-s/blob/master/patch_openid_fix_for_redmine3">https://github.com/harold-s/harold-s/blob/master/patch_openid_fix_for_redmine3</a></p> WikiNG - Bug #2329 (Under Verification): Mentions visibilityhttp://projects.andriylesyuk.com/issues/23292014-09-12T14:05:06ZRobert Roth
<p>Redmine setup:<br />Project A and B are not public projects, with several common members. Members of only one project can click the links of users involved in both projects, and in their activity they will see the mentions from the issues on the other projects, along with subject, project nam and other sensitive info. Mentions on objects belonging to a projwct whuch is not visible to the current usr should be hidden from activity streams.</p> Download Button - Bug #2216 (New): Missing partial download/sidebarhttp://projects.andriylesyuk.com/issues/22162013-09-01T11:19:16ZRoman M
<p>Hi,<br />I use latest Redmine 2.3.x from their SVN repository and latest version of “download-button” from <a class="external" href="http://svn.s-andy.com/download-button">http://svn.s-andy.com/download-button</a></p>
<p>I tested in development mode on Ubuntu.</p>
<p>Here is that I see in log on accessing of any path on localhost, even <a class="external" href="http://localhost:3001/">http://localhost:3001/</a><br /><pre><code>
Missing template, responding with 404
Rendered common/error.html.erb within layouts/base (0.8ms)
Completed 500 Internal Server Error in 1018ms
ActionView::Template::Error (Missing partial download/sidebar with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :rsb]}. Searched in:
* "/mnt/disk/Devel/RoR/redmine-2.3/app/views"
):
47: <div id="main-menu">
48: <%= render_main_menu(@project) %>
49: </div>
50: <% end %>
51: </div>
52:
53: <div id="main" class="<%= sidebar_content? ? '' : 'nosidebar' %>">
lib/redmine/hook.rb:111:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:158:in `call_hook'
app/helpers/application_helper.rb:1161:in `view_layouts_base_sidebar_hook_response'
app/helpers/application_helper.rb:1157:in `sidebar_content?'
app/views/layouts/base.html.erb:50:in `_app_views_layouts_base_html_erb__872624873_94244800'
app/controllers/application_controller.rb:397:in `block (2 levels) in render_error'
app/controllers/application_controller.rb:395:in `render_error'
app/controllers/application_controller.rb:383:in `render_404'
</code></pre></p>
<p>Do I miss something in installation?</p> Extended Fields - Support #2161 (In Progress): Internal error On New Issues tabhttp://projects.andriylesyuk.com/issues/21612013-03-06T17:23:48ZChristi Cummings
<p>Currently cannot input any new issues with this plugin<br />below is what the log reads.</p>
<pre>
Completed 200 OK in 1172ms (Views: 937.4ms | ActiveRecord: 78.1ms)
Started GET "/redmine/custom_fields/new?type=IssueCustomField" for 127.0.0.1 at 2013-03-06 11:04:51 -0600
Processing by CustomFieldsController#new as HTML
Parameters: {"type"=>"IssueCustomField"}
Current user: christi (id=1)
Rendered plugins/extended_fields/app/views/custom_fields/_extended.html.erb (15.6ms)
Rendered custom_fields/_form.html.erb (31.2ms)
Rendered custom_fields/new.html.erb within layouts/admin (46.9ms)
Completed 500 Internal Server Error in 47ms
ActionView::Template::Error (undefined method `hint' for #<IssueCustomField:0x2995020>):
21:
22: <% end %>
23:
24: <p><%= form.text_field(:hint, :size => 50) %></p>
25:
26: <!-- Rails 3 + jQuery -->
27: <% unless defined? observe_field %>
lib/redmine/views/labelled_form_builder.rb:31:in `text_field'
lib/redmine/hook.rb:111:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:158:in `call_hook'
app/views/custom_fields/_form.html.erb:29:in `_app_views_custom_fields__form_html_erb___723482694_23243244'
app/views/custom_fields/new.html.erb:6:in `block in _app_views_custom_fields_new_html_erb___727831247_21869232'
app/helpers/application_helper.rb:990:in `labelled_form_for'
app/views/custom_fields/new.html.erb:5:in `_app_views_custom_fields_new_html_erb___727831247_21869232'
</pre> Project Settings - Feature #2131 (In Progress): Redmine 2 / Rails 3 compatibilityhttp://projects.andriylesyuk.com/issues/21312012-12-09T17:26:01ZMarcus Ilgner
<p>Just tried to install the redmine-settings plugin into a Redmine 2 installation because I’m using it in one of my plugins.<br />Unfortunately, it isn’t compatible anymore since a few things changed with Rails 3.</p>
<p>I fiddled around with it for a bit and got so far to come up with this diff to at least avoid throwing exceptions. But still I had to add a manually-defined route for my settings page in my plugin and the view doesn’t show up anymore after the upgrade.</p>
<pre>
-require 'dispatcher'
-RAILS_DEFAULT_LOGGER.info 'Starting Project Settings Hook Plugin for Redmine'
+::Rails.logger.info 'Starting Project Settings Hook Plugin for Redmine'
-Dispatcher.to_prepare :project_settings_hook_plugin do
+Rails.configuration.to_prepare do
</pre>
<p>Do you have any plans to support Redmine 2 or should I roll my own settings hook?</p> SCM Creator (+Github) - Feature #2075 (Open): Make an option to fully automate repository creatio...http://projects.andriylesyuk.com/issues/20752012-06-26T13:59:32ZHumberto Anjos
<p>Here’s my situation: I need a SourceForge-like solution for internal use in my company, and Redmine seems like the best option. I need to create repositories only through Redmine, so this plugin fell like a glove <span class="wiking smiley smiley-smiley" title=":)"></span> Thing is, the URL field is fully editable, so users can create repos anywhere on the server <span class="wiking smiley smiley-sad" title=":("></span></p>
So my current options now are:
<ul>
<li>stick to Redmine 1.3 and SCM Creator 0.3; or</li>
<li>migrate to Redmine 2, SCM Creator 0.4, use the <a href="http://projects.andriylesyuk.com/projects/scm-creator/wiki/Common-configuration-scenarios#Force-repository-creation-for-all-projects" class="external">Force repository creation for all projects</a> configuration and limit repos to one per project (<code>max_repos: 1</code>), so the user never gets the option of editing the URL.</li>
</ul>
<p>The best solution (for me) would be for the URL field to be non-editable, and for the URL to be fully determined by the project name, the path in <code>scm.yml</code> and the repository identifier. So, for a path <code>/var/lib/svn</code>, a project <code>test</code> and an repository <code>main</code>, the repo’s full URL would be <code>file:///var/lib/svn/test/main</code>.</p>
<p>Of course, Redmine-based authentication should still work (it seems like a simple matter, but I don’t know if there’s any hidden surprises...).</p> Projects - Improvement #2021 (Incomplete): Spam protecthttp://projects.andriylesyuk.com/issues/20212012-04-07T10:39:59ZAndriy Lesyuks-andy@andriylesyuk.com
<p>I continue getting spam posts like:</p>
<pre>
Thanks for your marvelous posting! I actually enjoyed reading it, you will be a great author.I will ensure that I bookmark your blog and will come back in the foreseeable future. I want to encourage that you continue your great job, have a nice weekend! myFASHION-TRENDSCOM
</pre>
<p>Where “myFASHION-TRENDSCOM” is a link...</p>
<p>There should be some way to protect site against such messages... It looks to be some bot... Need more information about it.</p> Role Shift - Feature #1983 (Open): Default shiftshttp://projects.andriylesyuk.com/issues/19832012-02-19T12:59:00ZAndriy Lesyuks-andy@andriylesyuk.com
<p>Saying you have 3 proprietary and 50 open source projects. The easiest way is to allow <em>Anonymous</em> and <em>Non members</em> to access projects and shift these roles for proprietary ones... But <ins>this method is not recommended</ins> - <ins>basic roles should always be more strict than their shifts</ins> <em>(for a case something goes wrong and the plugin stops to work)</em>! So looks like one is better to define shifts for 50 projects... It’s approximately 100 shifts... And similar shifts should be defined for each new open source project!..</p>
<p>So to avoid this the idea is to define global default shifts which get automatically created when a new project is registered. In this case for proprietary projects you will just need to remove these shifts...</p> Role Shift - Feature #1982 (Open): Redmine.pm patch wanted http://projects.andriylesyuk.com/issues/19822012-02-19T12:54:51ZAndriy Lesyuks-andy@andriylesyuk.com
<p>Without such patch Redmine.pm will ignore role shifts...</p> WikiNG - Feature #1977 (Open): Conditional macro for users & groupshttp://projects.andriylesyuk.com/issues/19772012-02-16T08:43:48ZДмитрий Салашник
<p>I think something like <br /><pre>
{{visible for some_user1, some_user2, group1, group2, role1, role2 }}
This text is invisible for other peoples :)
{{visible}}
</pre></p>
<p>This is really required feature, it allow’s include some technical comments for developers <span class="wiking smiley smiley-smiley" title=":)"></span> or something else</p> Projects - Support #1910 (Open): Users verificationhttp://projects.andriylesyuk.com/issues/19102011-12-08T10:02:26ZAndriy Lesyuks-andy@andriylesyuk.com
<p>Seems it’s time to think about verifying OpenID users on login... Saw several spam comments from OpenID users...</p> Projects - Feature #1747 (Open): Some kind of site usage pluginhttp://projects.andriylesyuk.com/issues/17472011-05-12T14:06:17ZAndriy Lesyuks-andy@andriylesyuk.com
<p>Want per project statistics...</p> CD-Index - Feature #1722 (Open): Separate common code into libraryhttp://projects.andriylesyuk.com/issues/17222011-05-03T21:08:49ZAndriy Lesyuks-andy@andriylesyuk.com
<p>Currently source files are compiled into <code>*.o</code> files and then into <code>cdfind</code>, <code>cdindex</code> etc. If a new tool is added the same should be done for it. It’s not good for development for CD-Index. The corresponding code should be moved to e.g. <code>libcdindex</code> library.</p> Orangutan - Feature #1638 (Open): Orangutan bug reportinghttp://projects.andriylesyuk.com/issues/16382011-02-09T18:52:05ZAndriy Lesyuks-andy@andriylesyuk.com
<p>I’m thinking about how people are going to report bugs for Orangutan... Get URL, go for it, register or report anonymously? Too complicated! Most people will just ignore bugs...</p>
<p>How can I make Orangutan bug reporting easier?</p>
<p>The solution which came to my mind:</p>
<p>Orangutan can support special issue creation feature - when some special request is specified instead of local issue Orangutan creates “remote” issue for Orangutan website (which should use Redmine). He can even post this issue remotely using REST API. Of course, for bug reporting Orangutan should use issue creating contexts (maybe just in special mode). And, of course, trackers, categories etc should be taken from Orangutan website (can be hardcoded).</p>