-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unpublished change query can pickup changes originating from the backend #4202
Comments
@bjester any ideas on reproducing this behaviour locally? |
Following the order of the change events listed should hopefully reproduce it. But either way, the issue is this change event which satisfies the query's filtering: (7035, 'channel', 2, True, False, {'key': '22fd1359d8d75ff1b0cad8e401a08f16', 'mods': {'publishing': False, 'last_published': '2023-07-06T19:08:47.467597Z'}}) We need to re-think how we approach this. |
Unassigning myself until more clarity is obtained on this issue. |
Hi @yash1378, thank you, this is already assigned to a team member |
Ultimately, I think this comes back down to our Change objects serving a dual purpose, as a message queue for real time updates, and as a change event log for channel edits. Ideally, we would only record change events for the latter, but until we implement a separate mechanism for a real time message queue (using websockets), it is still serving this dual purpose. |
Observed behavior
A channel was showing as publishable even though it had no new changes. We need to enforce that
created_by
is set more often, so_unpublished_changes_query
can't rely on that for filtering out changes which simply need to be returned from the backend and do not influence the status.Expected behavior
The
_unpublished_changes_query
produces the correct output for when there are actual publishable changes.User-facing consequences
Confusion regarding what changes haven't been published
The text was updated successfully, but these errors were encountered: