task: #3582234 Split publishing logic from state logic

Closes #3582234

Merge request reports

Loading