##// END OF EJS Templates
scm: git: performance improvements in fetching revisions (#8857, #9472)...
scm: git: performance improvements in fetching revisions (#8857, #9472) Parse a revision for a given branch, just if we haven't parsed it for any branches before. Moved the db check to for existing revisions into a grouped search. Search for many revisions at once: this reduces db load. Revisions are grouped into sets of 100. This is to improve memory consumption. There will be just one query instead of each 100. The above two methods significantly increase parsing speed. Test case was a git repo with 6000+ commits on a master branch, and several other branches originating for master. Speed improved from 1.4h to 18min. Contributed by Gergely Fábián. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9144 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r8188:0d5df3a73e06
r9024:999a4ba30d7b
Show More
bulk_edit.html.erb
50 lines | 1.6 KiB | text/plain | TextLexer
/ app / views / timelog / bulk_edit.html.erb
Toshi MARUYAMA
add view for bulk edit time entries (#7996)....
r5191 <h2><%= l(:label_bulk_edit_selected_time_entries) %></h2>
Jean-Philippe Lang
Invalid HTML generated with ruby1.9....
r8131 <ul>
<%= @time_entries.collect {|i| content_tag('li',
Toshi MARUYAMA
Rails3: view: html_safe for timelog/bulk_edit.html.erb...
r8188 link_to(h("#{i.spent_on.strftime("%Y-%m-%d")} - #{i.project}: #{l(:label_f_hour_plural, :value => i.hours)}"),
{ :action => 'edit', :id => i })
)}.join("\n").html_safe %>
Jean-Philippe Lang
Invalid HTML generated with ruby1.9....
r8131 </ul>
Toshi MARUYAMA
add view for bulk edit time entries (#7996)....
r5191
<% form_tag(:action => 'bulk_update') do %>
Toshi MARUYAMA
Rails3: view: html_safe for timelog/bulk_edit.html.erb...
r8188 <%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join.html_safe %>
Toshi MARUYAMA
add view for bulk edit time entries (#7996)....
r5191 <div class="box tabular">
<div>
<p>
<label><%= l(:field_issue) %></label>
<%= text_field :time_entry, :issue_id, :size => 6 %>
</p>
<p>
<label><%= l(:field_spent_on) %></label>
<%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %>
</p>
<p>
<label><%= l(:field_hours) %></label>
<%= text_field :time_entry, :hours, :size => 6 %>
</p>
<% if @available_activities.any? %>
<p>
<label><%= l(:field_activity) %></label>
<%= select_tag('time_entry[activity_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_activities, :id, :name)) %>
</p>
<% end %>
<p>
<label><%= l(:field_comments) %></label>
<%= text_field(:time_entry, :comments, :size => 100) %>
</p>
<% @custom_fields.each do |custom_field| %>
Jean-Philippe Lang
Fixed: empty list for user/version custom fields on bulk edit form (#2096)....
r5234 <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('time_entry', custom_field, @projects) %></p>
Toshi MARUYAMA
add view for bulk edit time entries (#7996)....
r5191 <% end %>
<%= call_hook(:view_time_entries_bulk_edit_details_bottom, { :time_entries => @time_entries }) %>
</div>
</div>
<p><%= submit_tag l(:button_submit) %></p>
<% end %>