The pulp repository sync API gives the user these options on POST /<repo_href/sync/:

      {
        "mirror": false,
        "optimize": true
      }

      With the old APIs, we hid them from the end user by setting both of them to true, however now that we have the option to give user's a choice here, we should.

       

      When the user clicks the "Sync" button on a repository, we should show a modal that gives the user's the option to check "optimize" and "mirror". By default both should be set to true.

      Additionally, this form should have the following descriptions:

      • Mirror: If selected all content that is not present in the remote repository will be removed from the local repository, otherwise sync will be add missing content.
      • Optimize: Only perform the sync if no changes are reported by the remote server. To force a sync to happen, deselect this option.

      It's worth noting that synclists will not remove collections from local repositories unless this this feature is added, since the current default is mirror=false.

            [AAH-2301] Add sync options - modal

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Red Hat Ansible Automation Platform 2.4 Product Release Update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHBA-2023:5271

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Red Hat Ansible Automation Platform 2.4 Product Release Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:5271

              mhradil-1 Martin Hradil
              dnewswan David Newswanger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: