Results 1 to 5 of 5

Thread: How to set sort order in batch-admin jobs view

  1. #1
    Join Date
    Jun 2005
    Posts
    14

    Default How to set sort order in batch-admin jobs view

    Hi all,
    Is it possible to set the sort order for the jobs in the batch-admin jobs view?
    I'm on spring-batch 2.1.9 and batch-admin 1.2.1.

    br Svante

  2. #2
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    351

    Default

    Unfortunately there isn't an easy way to set or pass the sort for the lists that are displayed. However, that's a good idea and contributions are encouraged.
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  3. #3
    Join Date
    Sep 2011
    Posts
    2

    Default

    Quote Originally Posted by mminella View Post
    Unfortunately there isn't an easy way to set or pass the sort for the lists that are displayed. However, that's a good idea and contributions are encouraged.
    Hi, What is the default sorting logic? It does not seem to be the order of jobs in the config files.

  4. #4
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    351

    Default

    We actually don't sort the entire collection. The jobs that are in the jobRepository are sorted by name, but they are added after the ones that are currently available within the current context (via a JobLocator) and those are not sorted in any way. This is definitely a reasonable request. Please create a Jira issue to track adding it.
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  5. #5
    Join Date
    Sep 2011
    Posts
    2

    Default

    Quote Originally Posted by mminella View Post
    We actually don't sort the entire collection. The jobs that are in the jobRepository are sorted by name, but they are added after the ones that are currently available within the current context (via a JobLocator) and those are not sorted in any way. This is definitely a reasonable request. Please create a Jira issue to track adding it.
    Thanks. Can I make the changes myself? This feature is needed very much as our project is in testing phase and the test team, which includes business guys are involved. We have a big list of jobs which keep changing positions everyday as we code.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •