Commit 69107bffd7da006b7daf3a8a304aa0d865ec57d7

Authored by Diego Camarinha
Committed by Paulo Meireles
1 parent e421a803

[Mezuro] Started to write new action for controller

plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb
... ... @@ -124,10 +124,11 @@ class MezuroPluginProfileController < ProfileController
124 124 range
125 125 end
126 126  
127   - def get_module_metrics_history
  127 + def module_metrics_history
  128 + metric_name = params[:metric_name]
128 129 content = profile.articles.find(params[:id])
129   - module_history = Kalibro::Client::ModuleResultClient.new
130   - module_history.result_history(content.project.name, params[:module_name])
  130 + module_history = content.result_history(content.project.name, params[:module_name])
  131 +#precisamos que uma variável receba um array com os valores da métrica passada a partir do result history
131 132 render :partial => 'content_viewer/show_history', :locals => {:module_history => module_history }
132 133 end
133 134  
... ...