ClusterLabs/hawk

View on GitHub
hawk/app/assets/javascripts/module/resources.js

Summary

Maintainability
F
1 wk
Test Coverage

File resources.js has 775 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Copyright (c) 2009-2015 Tim Serong <tserong@suse.com>
// See COPYING for license.

$(function() {
  function executeAction(context, confirmMsg) {
Severity: Major
Found in hawk/app/assets/javascripts/module/resources.js - About 1 day to fix

    Function executeNodeSelectionAction has 95 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function executeNodeSelectionAction(context, message, defaultmsg) {
        var html = [
          '<div class="modal fade" id="nodeSelectionDialog" role="dialog" tabindex="-1" aria-hidden="true">',
          '<div class="modal-dialog">',
          '<div class="modal-content">',
    Severity: Major
    Found in hawk/app/assets/javascripts/module/resources.js - About 3 hrs to fix

      Function formatter has 88 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            formatter: function(value, row, index) {
              var operations = [];
              var dropdowns = [];
      
              var op_destination = "button";
      Severity: Major
      Found in hawk/app/assets/javascripts/module/resources.js - About 3 hrs to fix

        Function expandResourcesHandler has 84 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          var expandResourcesHandler = function (index, row, detail) {
            var columns = statesResourcesColumns.slice(0);
            var datasource = [];
            if (row.children || row.child || row.refs) {
              var datasource = [];
        Severity: Major
        Found in hawk/app/assets/javascripts/module/resources.js - About 3 hrs to fix

          Function applyFunction has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var applyFunction = function(dialog) {
                var nodename = dialog.find('#nodeSel').val();
                var url = "";
                if (nodename.length > 0) {
                  url = [
          Severity: Minor
          Found in hawk/app/assets/javascripts/module/resources.js - About 1 hr to fix

            Function resourceRoutes has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function resourceRoutes(row) {
                var cib = $('body').data('cib');
                var editRoute = null;
                var destroyRoute = null;
                var editNameRoute = Routes.edit_name_cib_resource_path(cib, row.id, { source: "edit"});
            Severity: Minor
            Found in hawk/app/assets/javascripts/module/resources.js - About 1 hr to fix

              Function formatter has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      formatter: function(value, row, index) {
                        var operations = [];
              
                        var rsc_routes = resourceRoutes(row);
              
              
              Severity: Minor
              Found in hawk/app/assets/javascripts/module/resources.js - About 1 hr to fix

                Function formatter has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        formatter: function(value, row, index) {
                          if (row.object_type == "group") {
                            return __("Group");
                          } else if (row.object_type == "master") {
                            return __("Multi-state");
                Severity: Minor
                Found in hawk/app/assets/javascripts/module/resources.js - About 1 hr to fix

                  Function formatter has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        formatter: function(value, row, index) {
                          var fmt = [];
                          switch(value) {
                          case "maintenance":
                            fmt.push('<i class="fa fa-wrench fa-lg text-info" title="', __("Maintenance Mode"), '"></i>');
                  Severity: Minor
                  Found in hawk/app/assets/javascripts/module/resources.js - About 1 hr to fix

                    Function ajax has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          ajax: function(params) {
                            var cib = $('body').data('content');
                            var tagname = tabletag.data('tagname');
                            var taglst = $.grep(cib.tags, function(t) { return t.id == tagname; });
                            if (taglst.length == 0) {
                    Severity: Minor
                    Found in hawk/app/assets/javascripts/module/resources.js - About 1 hr to fix

                      Function add_operation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              var add_operation = function(dest, path, path_class, icon_class, text) {
                      Severity: Minor
                      Found in hawk/app/assets/javascripts/module/resources.js - About 35 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return '<a href="' + Routes.cib_agent_path($('body').data('cib'), encodeURIComponent("@" + row.template)) + '" data-toggle="modal" data-target="#modal-lg">' + value + '</a>';
                        Severity: Major
                        Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                    return __("Bundle");
                          Severity: Major
                          Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return { classes: ["success"] };
                            Severity: Major
                            Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return { classes: ["success"] };
                              Severity: Major
                              Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                          return __("Tag");
                                Severity: Major
                                Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return {};
                                  Severity: Major
                                  Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return { classes: ["danger"] };
                                    Severity: Major
                                    Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                return row.type;
                                      Severity: Major
                                      Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return '<a href="' + Routes.cib_agent_path($('body').data('cib'), encodeURIComponent(agent)) + '" data-toggle="modal" data-target="#modal-lg">' + display + '</a>';
                                        Severity: Major
                                        Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                                    return agentLinkForResource(row);
                                          Severity: Major
                                          Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                                            Avoid too many return statements within this function.
                                            Open

                                                        return __("Bundle");
                                            Severity: Major
                                            Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                                              Avoid too many return statements within this function.
                                              Open

                                                          return row.type;
                                              Severity: Major
                                              Found in hawk/app/assets/javascripts/module/resources.js - About 30 mins to fix

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                      $.ajax({
                                                        dataType: 'json',
                                                        method: 'GET',
                                                        url: url,
                                                        success: function(data) {
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 1 other location - About 7 hrs to fix
                                                hawk/app/assets/javascripts/module/basics.js on lines 224..242

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 189.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                  $('#cib #middle table.resources, #cib #middle table.tagtable, #cib #middle .tag-controls').on("click", ".dropdown-toggle", function(event){
                                                    var button = $(this);
                                                    var open = button.attr('aria-expanded');
                                                    var dropdown = button.siblings('.dropdown-menu');
                                                    if (open) {
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 1 other location - About 7 hrs to fix
                                                hawk/app/assets/javascripts/module/nodes.js on lines 372..381

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 185.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                        var add_operation = function(dest, path, path_class, icon_class, text) {
                                                          if (dest == "menu") {
                                                            dropdowns.push([
                                                              '<li>',
                                                                '<a href="', path, '"class="', path_class, '">',
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 1 other location - About 3 hrs to fix
                                                hawk/app/assets/javascripts/module/nodes.js on lines 237..254

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 103.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                    } else if (row.state == "slave") {
                                                      return { classes: ["success"] };
                                                    } else if (row.state == "started") {
                                                      return { classes: ["success"] };
                                                    } else if (row.state == "stopped") {
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 1 other location - About 2 hrs to fix
                                                hawk/app/assets/javascripts/module/tickets.js on lines 114..122

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 88.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                        'click .cleanup': function (e, value, row, index) {
                                                          e.preventDefault();
                                                          return executeNodeSelectionAction($(this),
                                                                                            i18n.translate('Clean up %s').fetch(row.id),
                                                                                            __("Clean up on all nodes"));
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 1 other location - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 315..320

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 61.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                      ajax: function(params) {
                                                        var cib = $('body').data('content');
                                                        params.success(cib.resources, "success", {});
                                                        params.complete({}, "success");
                                                      },
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 1 other location - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/nodes.js on lines 21..25

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 61.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                        'click .migrate': function (e, value, row, index) {
                                                          e.preventDefault();
                                                          return executeNodeSelectionAction($(this),
                                                                                            i18n.translate('Migrate %s').fetch(row.id),
                                                                                            __("Away from current node"));
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 1 other location - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 325..330

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 61.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 7 locations. Consider refactoring.
                                                Open

                                                        'click .promote': function (e, value, row, index) {
                                                          e.preventDefault();
                                                          return executeAction($(this), i18n.translate('This will promote the resource %s. Do you want to continue?').fetch(row.id));
                                                        },
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 6 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 291..294
                                                hawk/app/assets/javascripts/module/resources.js on lines 295..298
                                                hawk/app/assets/javascripts/module/resources.js on lines 303..306
                                                hawk/app/assets/javascripts/module/resources.js on lines 307..310
                                                hawk/app/assets/javascripts/module/resources.js on lines 311..314
                                                hawk/app/assets/javascripts/module/resources.js on lines 321..324

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 56.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 7 locations. Consider refactoring.
                                                Open

                                                        'click .unmigrate': function (e, value, row, index) {
                                                          e.preventDefault();
                                                          return executeAction($(this), i18n.translate('This will remove any migration constraints for the resource %s. Do you want to continue?').fetch(row.id));
                                                        },
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 6 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 291..294
                                                hawk/app/assets/javascripts/module/resources.js on lines 295..298
                                                hawk/app/assets/javascripts/module/resources.js on lines 299..302
                                                hawk/app/assets/javascripts/module/resources.js on lines 303..306
                                                hawk/app/assets/javascripts/module/resources.js on lines 307..310
                                                hawk/app/assets/javascripts/module/resources.js on lines 311..314

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 56.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 7 locations. Consider refactoring.
                                                Open

                                                        'click .maintenance_off': function (e, value, row, index) {
                                                          e.preventDefault();
                                                          return executeAction($(this), i18n.translate('This will disable maintenance mode for resource %s. Do you want to continue?').fetch(row.id));
                                                        },
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 6 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 291..294
                                                hawk/app/assets/javascripts/module/resources.js on lines 295..298
                                                hawk/app/assets/javascripts/module/resources.js on lines 299..302
                                                hawk/app/assets/javascripts/module/resources.js on lines 303..306
                                                hawk/app/assets/javascripts/module/resources.js on lines 307..310
                                                hawk/app/assets/javascripts/module/resources.js on lines 321..324

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 56.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 7 locations. Consider refactoring.
                                                Open

                                                        'click .start': function (e, value, row, index) {
                                                          e.preventDefault();
                                                          return executeAction($(this), i18n.translate('This will start the resource %s. Do you want to continue?').fetch(row.id));
                                                        },
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 6 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 295..298
                                                hawk/app/assets/javascripts/module/resources.js on lines 299..302
                                                hawk/app/assets/javascripts/module/resources.js on lines 303..306
                                                hawk/app/assets/javascripts/module/resources.js on lines 307..310
                                                hawk/app/assets/javascripts/module/resources.js on lines 311..314
                                                hawk/app/assets/javascripts/module/resources.js on lines 321..324

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 56.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 7 locations. Consider refactoring.
                                                Open

                                                        'click .maintenance_on': function (e, value, row, index) {
                                                          e.preventDefault();
                                                          return executeAction($(this), i18n.translate('This will enable maintenance mode for resource %s. Do you want to continue?').fetch(row.id));
                                                        },
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 6 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 291..294
                                                hawk/app/assets/javascripts/module/resources.js on lines 295..298
                                                hawk/app/assets/javascripts/module/resources.js on lines 299..302
                                                hawk/app/assets/javascripts/module/resources.js on lines 303..306
                                                hawk/app/assets/javascripts/module/resources.js on lines 311..314
                                                hawk/app/assets/javascripts/module/resources.js on lines 321..324

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 56.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 7 locations. Consider refactoring.
                                                Open

                                                        'click .stop': function (e, value, row, index) {
                                                          e.preventDefault();
                                                          return executeAction($(this), i18n.translate('This will stop the resource %s. Do you want to continue?').fetch(row.id));
                                                        },
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 6 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 291..294
                                                hawk/app/assets/javascripts/module/resources.js on lines 299..302
                                                hawk/app/assets/javascripts/module/resources.js on lines 303..306
                                                hawk/app/assets/javascripts/module/resources.js on lines 307..310
                                                hawk/app/assets/javascripts/module/resources.js on lines 311..314
                                                hawk/app/assets/javascripts/module/resources.js on lines 321..324

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 56.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 7 locations. Consider refactoring.
                                                Open

                                                        'click .demote': function (e, value, row, index) {
                                                          e.preventDefault();
                                                          return executeAction($(this), i18n.translate('This will demote the resource %s. Do you want to continue?').fetch(row.id));
                                                        },
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 6 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 291..294
                                                hawk/app/assets/javascripts/module/resources.js on lines 295..298
                                                hawk/app/assets/javascripts/module/resources.js on lines 299..302
                                                hawk/app/assets/javascripts/module/resources.js on lines 307..310
                                                hawk/app/assets/javascripts/module/resources.js on lines 311..314
                                                hawk/app/assets/javascripts/module/resources.js on lines 321..324

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 56.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 3 locations. Consider refactoring.
                                                Open

                                                          } else if (row.state === "stopped") {
                                                            add_operation(op_destination, Routes.start_cib_resource_path($('body').data('cib'), row.id), 'start', 'play', __('Start'));
                                                          }
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 2 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 371..373
                                                hawk/app/assets/javascripts/module/resources.js on lines 375..377

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 55.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 3 locations. Consider refactoring.
                                                Open

                                                        if (row.state === "master") {
                                                          add_operation(op_destination, Routes.demote_cib_resource_path($('body').data('cib'), row.id), 'demote', 'thumbs-down', __('Demote'));
                                                        }
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 2 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 366..368
                                                hawk/app/assets/javascripts/module/resources.js on lines 375..377

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 55.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 3 locations. Consider refactoring.
                                                Open

                                                        if (row.state === "slave") {
                                                          add_operation(op_destination, Routes.promote_cib_resource_path($('body').data('cib'), row.id), 'promote', 'thumbs-up', __('Promote'));
                                                        }
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 2 other locations - About 1 hr to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 366..368
                                                hawk/app/assets/javascripts/module/resources.js on lines 371..373

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 55.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                        for (var i = 0; i < cib.resources.length; i++) {
                                                          recmatch(cib.resources[i]);
                                                        }
                                                Severity: Minor
                                                Found in hawk/app/assets/javascripts/module/resources.js and 1 other location - About 35 mins to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 598..600

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 46.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                            for (var i = 0; i < res.children.length; i++) {
                                                              recmatch(res.children[i]);
                                                            }
                                                Severity: Minor
                                                Found in hawk/app/assets/javascripts/module/resources.js and 1 other location - About 35 mins to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 603..605

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 46.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 6 locations. Consider refactoring.
                                                Open

                                                    case "master":
                                                      editRoute = Routes.edit_cib_master_path(cib, row.id);
                                                      destroyRoute = Routes.cib_master_path(cib, row.id);
                                                      break;
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 5 other locations - About 30 mins to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 139..142
                                                hawk/app/assets/javascripts/module/resources.js on lines 143..146
                                                hawk/app/assets/javascripts/module/resources.js on lines 147..150
                                                hawk/app/assets/javascripts/module/resources.js on lines 155..158
                                                hawk/app/assets/javascripts/module/resources.js on lines 159..162

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 45.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 6 locations. Consider refactoring.
                                                Open

                                                    case "tag":
                                                      editRoute = Routes.edit_cib_tag_path(cib, row.id);
                                                      destroyRoute = Routes.cib_tag_path(cib, row.id);
                                                      break;
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 5 other locations - About 30 mins to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 139..142
                                                hawk/app/assets/javascripts/module/resources.js on lines 143..146
                                                hawk/app/assets/javascripts/module/resources.js on lines 147..150
                                                hawk/app/assets/javascripts/module/resources.js on lines 151..154
                                                hawk/app/assets/javascripts/module/resources.js on lines 159..162

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 45.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 6 locations. Consider refactoring.
                                                Open

                                                    case "primitive":
                                                      editRoute = Routes.edit_cib_primitive_path(cib, row.id);
                                                      destroyRoute = Routes.cib_primitive_path(cib, row.id);
                                                      break;
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 5 other locations - About 30 mins to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 143..146
                                                hawk/app/assets/javascripts/module/resources.js on lines 147..150
                                                hawk/app/assets/javascripts/module/resources.js on lines 151..154
                                                hawk/app/assets/javascripts/module/resources.js on lines 155..158
                                                hawk/app/assets/javascripts/module/resources.js on lines 159..162

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 45.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 6 locations. Consider refactoring.
                                                Open

                                                    case "group":
                                                      editRoute = Routes.edit_cib_group_path(cib, row.id);
                                                      destroyRoute = Routes.cib_group_path(cib, row.id);
                                                      break;
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 5 other locations - About 30 mins to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 139..142
                                                hawk/app/assets/javascripts/module/resources.js on lines 147..150
                                                hawk/app/assets/javascripts/module/resources.js on lines 151..154
                                                hawk/app/assets/javascripts/module/resources.js on lines 155..158
                                                hawk/app/assets/javascripts/module/resources.js on lines 159..162

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 45.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 6 locations. Consider refactoring.
                                                Open

                                                    case "clone":
                                                      editRoute = Routes.edit_cib_clone_path(cib, row.id);
                                                      destroyRoute = Routes.cib_clone_path(cib, row.id);
                                                      break;
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 5 other locations - About 30 mins to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 139..142
                                                hawk/app/assets/javascripts/module/resources.js on lines 143..146
                                                hawk/app/assets/javascripts/module/resources.js on lines 151..154
                                                hawk/app/assets/javascripts/module/resources.js on lines 155..158
                                                hawk/app/assets/javascripts/module/resources.js on lines 159..162

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 45.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 6 locations. Consider refactoring.
                                                Open

                                                    case "template":
                                                      editRoute = Routes.edit_cib_template_path(cib, row.id);
                                                      destroyRoute = Routes.cib_template_path(cib, row.id);
                                                      break;
                                                Severity: Major
                                                Found in hawk/app/assets/javascripts/module/resources.js and 5 other locations - About 30 mins to fix
                                                hawk/app/assets/javascripts/module/resources.js on lines 139..142
                                                hawk/app/assets/javascripts/module/resources.js on lines 143..146
                                                hawk/app/assets/javascripts/module/resources.js on lines 147..150
                                                hawk/app/assets/javascripts/module/resources.js on lines 151..154
                                                hawk/app/assets/javascripts/module/resources.js on lines 155..158

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 45.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                There are no issues that match your filters.

                                                Category
                                                Status