Open karenmajewicz opened 9 months ago
Ahhh... Yes, you cannot change state that way, as state is held in the document_transitions table. You can only import the current state.
We might be able to fire a callback to ensure state is sync'd after import tho... I'll think it over.
OK - otherwise, if we cannot change the state this way, we should remove it from the import table.
I think the answer here is to just simplify publication state and NOT track document transitions between draft => published => unpublished. State tracking is nice for long running jobs like URI analysis, but it's far less helpful if you want to import publication state.
I think we refactor publication state here to just be a select option on the document table itself.
Publication State is now importable and exportable. However, I don't think the import is working. Itested importing a set to change records from 'unpublished' to 'published' but the state did not change.