Redmine: Issueshttps://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292024-03-07T16:40:16ZRedmine
Redmine Redmine - Defect #40362 (New): Autocomplete double hash keep system test failshttps://www.redmine.org/issues/403622024-03-07T16:40:16ZMassimo Rossello
<p>In latest versions of Redmine (5.0.8 and 5.1.2) the system test 'test_inline_autocomplete_for_issues_with_double_hash_keep_syntax' fails for no '.tribute-container' section is found</p> Redmine - Defect #35345 (Closed): Redmine::Plugin::compare_versions fails with stable and devel b...https://www.redmine.org/issues/353452021-06-02T12:16:08ZMassimo Rossello
<p>A plugin using Redine::Plugin::require_redmine always fails against stable and development branches. In fact, a version like e.g. 4.0.9.stable (from the latest 4.0.9 tag) can't be matched either against 4.0.9 or 4.0.9.0.</p>
<p>Attached a workaround based on trunk, which is not satisfactory as it isn't using collect(&:to_i) in compare_versions. But it works.</p> Redmine - Patch #33315 (Closed): IssuesSystemTest#test_bulk_watch_issues_via_context_menu randoml...https://www.redmine.org/issues/333152020-04-19T14:18:22ZMassimo Rossello
<p>Sometimes, the IssuesSystemTest#test_bulk_watch_issues_via_context_menu test fails for click_link loosing the focus on the context menu entry.<br />According to my googling, this seems to be a known sporadic Capybara issue. Solution seems to use find().hover.click instead of click_link. The hover seems to help ensure that click is not applied out of element boundaries whatever the javascript asynchronous execution.<br />Refer to this comment: <a class="external" href="http://aokolish.me/blog/2012/01/22/testing-hover-events-with-capybara/#comment-2118167329">http://aokolish.me/blog/2012/01/22/testing-hover-events-with-capybara/#comment-2118167329</a></p>
<p>Adding sleeps either before or after click_link has no effect instead.</p>
<p>How to reproduce:<br />the following fails sporadically</p>
<p>RAILS_ENV=test bundle exec rails test:system TESTOPTS="-n '/^(?:IssuesSystemTest#(?:test_bulk_watch_issues_via_context_menu))$/'"</p>
<p>Attached my proposed path. Thanks</p> Redmine - Defect #19464 (Closed): Possible to log time on project without time trackinghttps://www.redmine.org/issues/194642015-03-24T11:30:31ZMassimo Rossello
<p>How to reproduce:</p>
<ul>
<li>go to /my/page</li>
<li>add the "Spent time" block</li>
<li>click "Log time" </li>
<li>issue autocompletion shows issues into projects where 'time tracking' is disabled, too</li>
<li>add time entry for such an issue</li>
<li>timelog is shown in the Spent time block in My Page</li>
<li>click "Spent time" link in the block</li>
</ul>
Results:
<ul>
<li>the added time log entry is not displayed in the Spent time page</li>
<li>there is no way to delete the time entry unless the 'time tracking' module is enabled in the issue's project</li>
</ul>
Expected:
<ul>
<li>user not allowed to add timelogs on issues into projects where the time tracking module is not enabled</li>
</ul>
<p>Tried with redmine 3.0.1 but should be present in older versions too</p> Redmine - Feature #16141 (New): View hook for issue querieshttps://www.redmine.org/issues/161412014-02-20T17:01:20ZMassimo Rossello
<p>For my plugin I need a new hook for the contextual menu in issues view.<br />This will allow to add further operations on the current query (in the specific, to set/reset it as default in the project).</p>
<p>Thanks</p> Redmine - Patch #16042 (New): Nicer overview boxeshttps://www.redmine.org/issues/160422014-02-06T15:24:18ZMassimo Rossello
<p>Reformatting some entries in the project overview to display as nice boxes.</p>
<p>Subprojects list is refactored as a table summarizing open, close, total issues in subprojects.</p>
<p>Other reformatted boxes are: homepage, project custom fields</p>
<p><img src="https://www.redmine.org/attachments/download/11088/Nicer_overview_boxes.png" alt="" /></p> Redmine - Patch #16002 (Closed): Assigned-to-my-group css corrupts user.groups association cachehttps://www.redmine.org/issues/160022014-01-30T18:16:41ZMassimo Rossello
<p><a class="changeset" title="Adds 'assigned-to-my-group' css class to issues that are assigned to a user's group (#12681)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12006">r12006</a> made for issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Treat group assignments as assigned to me (Closed)" href="https://www.redmine.org/issues/12681">#12681</a> generated a corruption in association caches for using an assignment '=' instead of equality '=='.</p>
<p>Therefore </p>
<pre><code>User.current.groups.map(&:id)</code></pre>
<p>then returns an array of nils (most probably).</p>
<p>Attached the patch.</p>
<p>Regards,<br /> Massimo</p> Redmine - Defect #15983 (Closed): Project.activities returns different types depending on contexthttps://www.redmine.org/issues/159832014-01-28T11:17:58ZMassimo Rossello
Project.active_activities, Project.all_activities and, ultimately, Project.activities return:
<ul>
<li>a database relation if the activities on the project are untouched (through TimeEntryActivity.shared.active)</li>
<li>an Array if some activities are overridden (through Project.system_activities_and_project_overrides).</li>
</ul>
<p>This makes any calling code unable to make further operations on the results, and leads to errors that are hard to understand.</p> Redmine - Feature #14273 (New): Project settings: show only relevant custom fieldshttps://www.redmine.org/issues/142732013-06-13T10:22:59ZMassimo Rossello
<p>I have some trackers with many optional custom fields.</p>
<p>In order to keep things clear, it would be good if project settings page would show only the custom fields that are relevant only for enabled trackers</p> Redmine - Feature #14236 (New): Configurable shared version visibility to non project membershttps://www.redmine.org/issues/142362013-06-07T10:20:26ZMassimo Rossello
<p>The attached patch solves the problem raised by <a class="external" href="http://www.redmine.org/boards/1/topics/34344">http://www.redmine.org/boards/1/topics/34344</a></p>
<p>A new global setting under the project tab (which by default leaves the current behavior) allows to specify if the administrator wants to list other projects' shared versions to users that do not belong to the original versions' project.</p>
<p>This solves IMHO a security issue since version names (if used e.g. as contracts) could be nicely shared e.g. to an upper level "control panel" project, but only to users that have visibility to the specific projects.</p>
<p>Contracts, and more importantly their custom attributes, advancement and number of open issues, could be sensible information not to disclose to everybody.</p>
<p>The patch applies over version 2.3.1</p> Redmine - Defect #14178 (Closed): PDF API broken in version 2.3.1https://www.redmine.org/issues/141782013-05-30T15:51:41ZMassimo Rossello
<p>The change in number of arguments in issues_to_pdf_draw_borders() in file lib/redmine/export/pdf.rb introduced by <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: PDF export generates the issue id twice (Closed)" href="https://www.redmine.org/issues/13630">#13630</a> (<a class="changeset" title="Fixed that issue list PDF export displays ID column twice (#13630). Contributed by F Schroedter." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/11693">r11693</a>) breaks some plugins (namely redmine_wktime).</p>
<p>Would it be possible to restore the same arguments, even if id_width argument not used, for API compatibility?</p>
<p>Thanks</p>