Commit 69107bffd7da006b7daf3a8a304aa0d865ec57d7
Committed by
Paulo Meireles
1 parent
e421a803
Exists in
staging
and in
42 other branches
[Mezuro] Started to write new action for controller
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb
| @@ -124,10 +124,11 @@ class MezuroPluginProfileController < ProfileController | @@ -124,10 +124,11 @@ class MezuroPluginProfileController < ProfileController | ||
| 124 | range | 124 | range |
| 125 | end | 125 | end |
| 126 | 126 | ||
| 127 | - def get_module_metrics_history | 127 | + def module_metrics_history |
| 128 | + metric_name = params[:metric_name] | ||
| 128 | content = profile.articles.find(params[:id]) | 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 | render :partial => 'content_viewer/show_history', :locals => {:module_history => module_history } | 132 | render :partial => 'content_viewer/show_history', :locals => {:module_history => module_history } |
| 132 | end | 133 | end |
| 133 | 134 |