Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for view based priority sorting jelly #66

Merged
merged 1 commit into from
Nov 27, 2021

Conversation

monluk
Copy link
Contributor

@monluk monluk commented Apr 18, 2021

What was wrong
In Jenkins - starting from version 2.264 - it was not possible to add or make changes to priority sorter for "Jobs included in a view".
Format of data in a json was not handled properly.

What has been done
Structure of elements in UI was wrong. The part of the UI responsible for filtering based on regular expression was placed inside views selector.

How to test

  1. Install Jenkins version 2.264-2.277
  2. Go to Job Priority and Add new priority sorter
  3. Set "Jobs to include" to "Jobs included in a view"
  4. Save changes
    The test will result in "Oops!" page while using Priority Sorter plugin in version 4.0 and will work fine with the fixed version.

It has been tested and works fine on Jenkins 2.263.4 and 2.277.2

@monluk monluk force-pushed the bugfix/ViewBasedForJenkins277 branch from 2ab95ac to eb7bc24 Compare April 19, 2021 18:32
@monluk monluk force-pushed the bugfix/ViewBasedForJenkins277 branch from eb7bc24 to c203f62 Compare April 19, 2021 20:30
@MarkEWaite
Copy link
Contributor

MarkEWaite commented Nov 25, 2021

Thanks very much for the pull request.

I had hoped that it would resolve multiple issue reports like JENKINS-65859, JENKINS-66938, and JENKINS-67218. Unfortunately, when I save the Job Priorities page a second time with Jenkins 2.303.3 using this pull request, it throws the same exception.

Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Included in the fix for JENKINS-66938 in #88 . Thanks very much for detecting and fixing this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants