Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.4.4
    • Fix Version/s: None
    • Component/s: Job, REST
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Right now you can get the status of a job trough REST but you only get what is provided by org.xwiki.job.event.status.JobStatus.

      The problem is that many job statuses also expose custom methods which are important. For example the install plan when you execute install plan job. If you can't access it the status is pretty much useless.

      The difficulty is find how to serialize custom values.
      Here are a few ideas:

      • allow any extension to customize the serialization of the job status REST POJO (i.e. produce an extended instance of org.xwiki.rest.model.jaxb.JobStatus)
      • introduce Map<Strin, Object> like properties in JobStatus which to expose public data to serialize in the REST POJO (like we do for the job request in XWIKI-12136)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: