Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3676

[Schedulables] Add a way to get some information about a runnable status from JS

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.0
    • None
    • None
    • None
    • 4.5 RC1

      Some tools depend on the status of runnables (running, success, fail, waiting, deactivate).

      To do so, we need some API in Scheduler, callable from the JS.

          [RUNTIME-3676] [Schedulables] Add a way to get some information about a runnable status from JS

          Caroline Bayle made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Bérénice Maurel made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Bérénice Maurel made changes -
          Status Original: Reopened [ 4 ] New: In Progress [ 3 ]
          Bérénice Maurel made changes -
          Assignee Original: Caroline Bayle [ cbayle ] New: Bérénice Maurel [ bmaurel ]
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Problems on loading JS and rights needed to check the job status.
          For example, on launching a pilotage report, I get this error:

          The user UserIdentity [login=admin, population=ametys-demo-users] tried to access the callable method [public java.util.List<java.util.Map<java.lang.String, java.lang.Object>> org.ametys.plugins.core.schedule.Scheduler.getTasksInformation(java.util.List<java.lang.String>) throws org.quartz.SchedulerException] without sufficient rights
          org.ametys.runtime.authentication.AccessDeniedException: The user UserIdentity [login=admin, population=ametys-demo-users] tried to access the callable method [public java.util.List<java.util.Map<java.lang.String, java.lang.Object>> org.ametys.plugins.core.schedule.Scheduler.getTasksInformation(java.util.List<java.lang.String>) throws org.quartz.SchedulerException] without sufficient rights
              at org.ametys.core.ui.ExecuteClientCallsAction._checkAccess(ExecuteClientCallsAction.java:224)
              at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:203)
              at org.ametys.core.ui.ExecuteClientCallsAction.act(ExecuteClientCallsAction.java:182)
             [...]

          Bérénice Maurel added a comment - Problems on loading JS and rights needed to check the job status. For example, on launching a pilotage report, I get this error: The user UserIdentity [login=admin, population=ametys-demo-users] tried to access the callable method [ public java.util.List<java.util.Map<java.lang. String , java.lang. Object >> org.ametys.plugins.core.schedule.Scheduler.getTasksInformation(java.util.List<java.lang. String >) throws org.quartz.SchedulerException] without sufficient rights org.ametys.runtime.authentication.AccessDeniedException: The user UserIdentity [login=admin, population=ametys-demo-users] tried to access the callable method [ public java.util.List<java.util.Map<java.lang. String , java.lang. Object >> org.ametys.plugins.core.schedule.Scheduler.getTasksInformation(java.util.List<java.lang. String >) throws org.quartz.SchedulerException] without sufficient rights at org.ametys.core.ui.ExecuteClientCallsAction._checkAccess(ExecuteClientCallsAction.java:224) at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:203) at org.ametys.core.ui.ExecuteClientCallsAction.act(ExecuteClientCallsAction.java:182) [...]
          Caroline Bayle made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Ready to merge [ 10208 ] New: Resolved [ 5 ]
          Caroline Bayle made changes -
          Status Original: Code review OK [ 10206 ] New: Ready to merge [ 10208 ]
          Laurence Aumeunier made changes -
          Status Original: Available for review [ 10005 ] New: Code review OK [ 10206 ]
          Laurence Aumeunier made changes -
          Status Original: Reopened [ 4 ] New: Available for review [ 10005 ]
          Laurence Aumeunier made changes -
          Status Original: Ready to merge [ 10208 ] New: Reopened [ 4 ]

            bmaurel Bérénice Maurel
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: