Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69724

[Regression] No restore button in jobProjectHistory

      I'm unable to restore this job config.
      I guess the problem is located here.
      https://github.com/jenkinsci/job-config-history-plugin/blob/04b66d78555e2473d17f870019d25166661c369e/src/main/resources/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction/index.jelly#L98-L114

      Query Address:
      http://<jenkins_base_url>/jobConfigHistory/history?name=adsasdasdfdsfsdfdsf_deleted_20220928_051630_293

      I was trying to locate and fix this bug by myself but i wasn't able to do this.
      I guess one of my changes connected to ux broke this.

          [JENKINS-69724] [Regression] No restore button in jobProjectHistory

          Tim Jacomb added a comment -

          Tim Jacomb added a comment - cc notmyfault

          dumam Which view are you at there? I got the restore button just fine, on Jenkins 2.373 and JCH 1176.v1b_4290db_41a_5

          Alexander Brandes added a comment - dumam Which view are you at there? I got the restore button just fine, on Jenkins 2.373 and JCH 1176.v1b_4290db_41a_5

          Bartosz Nowak added a comment -

          To reproduce this:

          -> please remove any job (you should be able to restore it from global config history)
          -> main dashboard
          -> select config history
          -> select filter to list deleted items

          Then next to removed job should be visible restore button. On this page you can also view config changes of every removed item. When you open it, last table row has info about removed job. Next to it should be a button to restore job.

          Bartosz Nowak added a comment - To reproduce this: -> please remove any job (you should be able to restore it from global config history) -> main dashboard -> select config history -> select filter to list deleted items Then next to removed job should be visible restore button. On this page you can also view config changes of every removed item. When you open it, last table row has info about removed job. Next to it should be a button to restore job.

          As seen in JENKINS-63606 and JENKINS-67808, if your project is in a folder, then the restore button won't show up. If the project is located at the top level in Jenkins (not in a folder), then the restore button is visible.

          MisterBlueBear added a comment - As seen in JENKINS-63606 and JENKINS-67808 , if your project is in a folder, then the restore button won't show up. If the project is located at the top level in Jenkins (not in a folder), then the restore button is visible.

            Unassigned Unassigned
            dumam Bartosz Nowak
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: