Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14023

Support custom status in REST

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 8.4.4
    • Job, REST
    • None
    • Unknown

    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

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

              Dates

                Created:
                Updated: