diff --git a/plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb b/plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb index efd9f32..aea2d07 100644 --- a/plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb +++ b/plugins/mezuro/controllers/profile/mezuro_plugin_repository_controller.rb @@ -1,4 +1,3 @@ -#TODO terminar esse controler e seus testes funcionais class MezuroPluginRepositoryController < MezuroPluginProfileController append_view_path File.join(File.dirname(__FILE__) + '/../../views') diff --git a/plugins/mezuro/public/javascripts/processing.js b/plugins/mezuro/public/javascripts/processing.js index 8950174..b2ea343 100644 --- a/plugins/mezuro/public/javascripts/processing.js +++ b/plugins/mezuro/public/javascripts/processing.js @@ -2,17 +2,18 @@ var processingTree = false; var metricName; jQuery(function (){ jQuery('.source-tree-link').live("click", reloadModule); - jQuery('[show-metric-history]').live("click", display_metric_history); - jQuery('[show-grade-history]').live("click", display_grade_history); - jQuery('#project_date_submit').live("click", reloadProjectWithDate); + jQuery('[show-metric-history]').live("click", display_metric_history); //TODO review for project history + jQuery('[show-grade-history]').live("click", display_grade_history); //TODO review for project history + jQuery('#project_date_submit').live("click", reloadProjectWithDate); //TODO review for project history showLoadingProcess(true); showProcessing(); }); function showProcessing() { - callAction('processing', 'processing_state', {}, showProcessingFor); + callAction('processing', 'processing', {}, showProcessingFor); } +//TODO review for project history function display_metric_history() { var module_name = jQuery(this).attr('data-module-name'); var metric_name = jQuery(this).attr('show-metric-history'); @@ -22,6 +23,7 @@ function display_metric_history() { return false; } +//TODO review for project history function display_grade_history() { var module_name = jQuery(this).attr('data-module-name'); toggle_mezuro("#historical-grade"); @@ -29,10 +31,12 @@ function display_grade_history() { return false; } +//TODO review for project history function show_metrics(content) { jQuery('#historical-' + metricName).html(content); } +//TODO review for project history function show_grades(content) { jQuery('#historical-grade').html(content); } @@ -42,6 +46,7 @@ function toggle_mezuro(element){ return false; } +//TODO Waiting for ModuleResultController refactoring function reloadModule(){ var results_root_id = jQuery(this).attr('results_root_id'); showLoadingProcess(false); @@ -51,11 +56,13 @@ function reloadModule(){ return false; } +//TODO review for project history function reloadProjectWithDate(date){ reloadProject(date + "T00:00:00+00:00"); return false; } +//TODO review for project history function reloadProject(date){ showLoadingProcess(true); @@ -73,9 +80,9 @@ function showProcessingFor(state){ jQuery('#msg-time').html(''); jQuery('#processing-state').html('