Sanctuary's avatar

Profile activity feed doesn't display message after edits

On the profile pages, it display the activity with the relevant info and etc., and that seems to work mostly fine. However, it doesn't seem to pickup on any updates you make (I'm assuming due to caching). A good example of this would be my post made here. If you check my profile (under the "Hide and show partials based on chosen option in a select." thread reply), you'll see that the post and the activity feed's content don't match up.

0 likes
3 replies
bobbybouwmann's avatar

Yes that's correct! This is intended behaviour so the server of Laracasts isn't too busy generating profile pages everytime. It's a good use case for caching in my opinion.

If you want to see your own activity you can click on "My Participation" on the right which is loaded instantly.

Sanctuary's avatar

I mean, I understand why this may be in place, but this doesn't seem like very good UX. Most people who notice this will treat it as a bug (as it should be treated, imo). I'm not so much worried about me seeing my own activity; I'm more concerned about others seeing misleading info on the profile pages. An initial reply could contain completely different content after an edit.

I honestly can't imagine this would put much stress on the servers either. Unless I'm missing something, wouldn't a simple cache update on thread/reply edits fix this?

sutherland's avatar

Could it be that a user's activities are stored as database notifications and the text displayed is read from data stored on the notification instead of directly off the related model?

Please or to participate in this conversation.