Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-6444

component to service mapping should not be hardcode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.7.0
    • ambari-web
    • None

    Description

      App.QuickDataMapper.componentServiceMap() map and App.Service.DisplayNames map are hardcode in the UI. These should not be used in the ambari-web code.
      App.StackServiceComponent model can be used to retrieve a serviceName for give componentName for any service defined in a stack irrespective of it being installed or not.

      Service Display name can also be derived from displayName computed property in App.Service (model and it's extended models has information related to installed services like service health and JMX retrived information) and App.StackService (model that has general information related to all services in stack).

      Also remove hard-coded references to the service names in add_controller.js for add service wizard. These references are used to conditionally skip Assign Slaves step. Everytime a new service with slave component is introduced we needed to add a hard-coded reference to it. For example experimental feature Flume service has slave component Flume handler but no reference is being done over here code and so while adding a Flume service, wizard skips "Assign Slave" step. These hard-coded logic should be removed to fetch service with slave components dynamically.

      Attachments

        Activity

          People

            jaimin Jaimin Jetly
            jaimin Jaimin Jetly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: