Plugins Directory » Redmine Queries For Time Report

24327 Author: Jérôme BATAILLE
Website: https://github.com/Smile-SA/redmine_queries_for_time_report
Code repository: https://github.com/Smile-SA/redmine_queries_for_time_report
Registered on: 2019-11-14 (28 days ago)
Current version: 1.0.1
Compatible with: Redmine 4.0.x
User ratings:   (0)

Redmine plugin that adds Queries to Time Report like Time Entry Queries.

It allows to add such saved queries to My Page

Be careful, because of the nature of Time Report, records count will not be limited to 10 records, unlike other My Page Blocks.

It also allows to add Time Entry queries to My Page.

How it is implemented

  • Rewrites the report TimelogController action method
  • Rewrites the following views :
    • To add icons to the query block title
      • /my/blocks/_calendar.html.erb
      • /my/blocks/_documents.html.erb
      • /my/blocks/_issues.erb
      • /my/blocks/_news.html.erb
      • /my/blocks/_timelog.html.erb
    • To add the project in the query block title
      • /my/blocks/_issue_query_selection.html.erb
  • Adds / Rewrites the following My Page block views
    • /my/blocks/partials/_timelogs.html.erb
    • /my/blocks/partials/_timereport.html.erb
  • Adds My Page block views helper partials :
    • /my/blocks/partials/_timelog_query_selection.html.erb
    • /my/blocks/partials/_timereport_query_selection.html.erb
  • Adds new TimeReportQuery model
  • Extends My Helper by adding the methods :
    • render_timelogquery_block
    • render_timereportquery_block
  • Extends Timelog Helper by adding the methods :
    • prepare_report_object
    • time_entry_scope
  • Extends Redmine::MyPage to :
    • Add new My Page blocks in the CORE_BLOCKS hash
    • Override additional_blocks class method to manage partials overridden in plugins

Installation notes

  • This plugin has no dependency
  • No migration ! uses Single table inheritance Redmine model
  • No new route !
  • Be careful with the plugin folder directory, it must be exactly the plugin name

Changelog

1.0.1 (2019-11-15)

Compatible with Redmine 4.0.x.