-
Notifications
You must be signed in to change notification settings - Fork 6
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
Activity Log: Published Activity is not appearing for a Content Item #2377
Comments
@markelmad need your input on this, I tried checking and whenever a content item is published now, despite the request payload being correct it is being tagged as a "Scheduled publish" on activity log. As per my checking, on the frontend we differentiate publish types by checking if the word "scheduled" exists on the The code above was never changed and was last touched 16 months ago that's why I am wondering if there were any changes made to how the |
@theofficialnar I am potentially wondering if this is tied to the Content Title Bar update we made as our Publish button also acts as a schedule button in one use case. @agalin920 any thoughts on the same? |
@zcolah when I checked the request payload it is still being sent as |
@markelmad just wanted to follow up on this. |
@markelmad @theofficialnar I got some more context from @shrunyan on this issue. Apparently no content item ever gets a published action. If the item gets published, it always gets a scheduled action instead. |
@zcolah so if that's the case then wouldn't that mean this bug has been there since activity log was made? Now I'm wondering how we can differentiate a publish now from a scheduled publish in the activity log, wouldn't it make sense to just remove the "Published" action filter? |
@theofficialnar The Audit log always has a message with the word 'scheduled' on it whether it is being published now or scheduled. Since you mentioned you only check for existing 'scheduled' strings from the message, I guess the fix could be done on how the message is constructed within the audit logging. I'll dig deeper into this and see if we really need to have the fix within the audit part or it could be within the publishing part (which would be more tedious work). I'll give updates once I have some answers. ANd I believe we should not remove the 'Published' action filter. @theofficialnar you are using 'scheduled' keyword and 'published' keyword for this to distinguish? |
@markelmad Currently it only checks if the word "scheduled" is present on |
@markelmad @theofficialnar @shrunyan @ardeay Would love to hear your thoughts on what I have written down below. I have an idea for the situation where we make no changes to the back-end where "both schedule and publish actions are marked as scheduled". What if on the front end we write some logic where we display: 1. Published Action: If the schedule action was within the same minute as the scheduled for time This helps with the data integrity issue as the user is now aware of when the item was published vs scheduled. There is one drawback to this solution I would recommend we do this for displaying all of the past actions. This way no update needs to be made to the database. I do recommend we investigate a much better long term solution for future actions, so we do not need to do this workaround. In the long term ideally, when the user clicks on the publish button, a publish action should be logged in the back end, and when the user clicks on the schedule button, a schedule action should be logged in the back end. |
@markelmad is there any particular reason why recently the logs response seem to have changed? I found a publish action log dated Nov 30, 2022 which has 2 publish actions log both created at the same time, one says scheduled while the other just says published. But currently whenever a user publishes something either via publish now or scheduled publish it now only returns one log which always says "scheduled" even if it was not scheduled. In the meantime, a quick fix as suggested by @agalin920 which is to check if the createdAt/happenedAt log is the same as the datetime on the action message, it would be treated as a "Published" action has been created (#2570) but a long term fix would be probably be ideal. |
Describe the bug
I have published an article multiple times over the last 14 days in the Zesty 2022 Marketing Instance. I wanted to review the activity log today for this item and noticed that there were 0 publish logs. I am not sure why this is the case because this article is live which means it should have at least 1 publish present and I know for sure I have edit it, saved it and published it multiple times after that as well.
One key observation @theofficialnar and I made was that the Scheduled for Publish action does appear despite the Published action not appearing.
This is a very important issue to look into as it concerns multiple key customers of ours who need this feature to be working perfectly.
Content Item Link:
https://8-aaeffee09b-7w6v22.manager.zesty.io/content/6-45a908-qfw88c/7-a4f6c6bdc5-kkztvh/
Activity Log Link:
https://8-aaeffee09b-7w6v22.manager.zesty.io/reports/activity-log/resources/7-a4f6c6bdc5-kkztvh?from=2023-11-04&to=2023-12-04&action=4
Screenshot:

The text was updated successfully, but these errors were encountered: