batches: add and use a new field for the desired publication state
Created by: LawnGnome
This PR includes #21005; I'm going to open it up for review just to speed things up, but please excuse the duplicate code.
This PR adds a new database field to track the UI publication state of each changeset, and extends the reconciler to be able to handle looking up that field when required. What it doesn't include is anything to actually manipulate that field (without directly updating the database).
Part three of #18277 (closed).