ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Remove dead code in IssueHelper (Feature #539)


Added by Gregor Schmidt at 2011-07-26 08:57 pm. Updated at 2012-01-04 02:32 am.


Status:Closed Start date:2011-07-26
Priority:Normal Due date:
Assignee:Holger Just % Done:

0%

Category:Journals / History
Target version:2.1.0
Remote issue URL: Affected version:2.0.0

Description

With the aaj-merge, the rather large IssueHelper#show_detail was replaced by JournalFormatter#render_detail. However, the original method was kept in place, possibly to keep backwards compatibility. But I guess, it is only there because somebody forgot about it. As far as I can tell, it also uses APIs that where removed with the merge so it is probably not working at the moment.

I propose to remove the method.

Attached is a pull request, which does that.

It also includes a TODO to refactor the test code. I'm currently not aware, where aaj-test-code is kept and therefore was not brave enough to move the code to the right places.


Associated revisions

Revision 8c9034f4
Added by Gregor Schmidt at 2011-07-26 11:00 pm

[#539] removing dead code - this went into JournalFormatter

Revision 008a29dc
Added by Gregor Schmidt at 2011-07-26 11:00 pm

[#539] removing helper method from tests, adding TODO

History

Updated by Gregor Schmidt at 2011-07-26 09:01 pm

  • Assignee deleted (Gregor Schmidt)
  • Status changed from Open to Ready for review

Updated by Holger Just at 2011-07-27 02:06 pm

Merged into master. Thanks Gregor!

  • Assignee set to Holger Just
  • Category set to Journals / History
  • Status changed from Ready for review to Closed

Updated by Fahrzin Hemmati at 2011-08-05 07:27 am

This change breaks compatibility with redmine_code_review which uses show_detail in their app/views/code_review/_reply.html.erb. I can't replace it with render_detail, @journal.render_detail, or @reply.render_detail. I'm creating a related issue in redmine_code_review to have them update, but in case they need help I'm letting you know ahead of time.

Updated by Simon Stearn at 2011-10-26 07:50 pm

Tactical hack: replace show_detail with puts until either a compatibility layer in chiliproject or a change to the plugin fixes this..

Updated by Andreas Schuh at 2012-01-04 02:32 am

Simon Stearn wrote:

Tactical hack: replace show_detail with puts until either a compatibility layer in chiliproject or a change to the plugin fixes this..

Such fix of the plugin is available at https://bitbucket.org/schuhschuh/redmine_code_review.

Also available in: Atom PDF