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

View.onJobRenamed should be deprecated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      View.onJobRenamed does not work well with item groups. Jenkins could instead include a single ItemListener which told views when a job was renamed, relieving the code doing the rename (such as in Jenkins or Folder) from having to call this method. (Same for deletions.) That would also allow views to be notified when a job in a subfolder (which ListView now supports) is renamed, which is currently not possible. Perhaps onJobRenamed should be deprecated, and a new callback introduced which can handle jobs in subfolders and also cross-folder moves.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: