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

Allow Hiding of PATCH Repository

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • ambari-web
    • None

    Description

      When patches are reverted and no longer desired, there should be a way to remove them directly from the Stacks and Versions page. Removal of a repository should only be allowed if:

      • The repository type is PATCH and is in the INSTALLED or INSTALL_FAILED state
      • The repository is NOT_REQUIRED (not distributed) regardless of type

      In the dropdown of actions for the repository, we should add a "Discard" action which does this by executing a PUT against the {stackName}/versions/{stackVersion}/repository_versions endpoint.

      A new property will be exposed, RepositoryVersions/hidden which will be set to a value of true by the web client. When the web client queries for compatible repositories, any which expose RepositoryVersions/hidden as true should not be shown.

      Attachments

        1. AMBARI-21831_trunk.patch
          19 kB
          Andrii Tkach
        2. AMBARI-21831.patch
          21 kB
          Andrii Tkach

        Activity

          People

            atkach Andrii Tkach
            atkach Andrii Tkach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: