We need to be able to distinguish between regular issues and publishing requests. There may be several states for a publishing request in a future, so I suggest using a string field for that.
We also need to store publish from/to dates for a publishing request (both are optional). As of now, they will be used to update publish from/to dates for all of the items inside the publishing request from UI, but later on we'll have a service which will use these fields to schedule publishing.
The funny thing is that we already store items array inside an object called publishRequest:
Or maybe we should break things down and move items out of publishRequest and consider an issue to be a publishing request when there's publishRequest object on an issue:
We need to be able to distinguish between regular issues and publishing requests. There may be several states for a publishing request in a future, so I suggest using a string field for that.
We also need to store publish from/to dates for a publishing request (both are optional). As of now, they will be used to update publish from/to dates for all of the items inside the publishing request from UI, but later on we'll have a service which will use these fields to schedule publishing.
The funny thing is that we already store items array inside an object called
publishRequest
:We could either add the new fields inside
publishRequest
and consider an issue to be a publishing request whenever there'spublishRequest.state
field.Or maybe we should break things down and move
items
out ofpublishRequest
and consider an issue to be a publishing request when there'spublishRequest
object on an issue: