hhuijser/liferay-portal — pull request #1834 by yuhai (2014-04-16 08:37:45+00:00)
Title: LPS-45934  Post-Upgrade Activities portlet doesn't show (wiki,message.blog,bookmark,calendar) links

Hi Hugo,,

Refer to your feedback from https://github.com/hhuijser/liferay-portal/pull/1832 and I resend the pull request.

Please refer to the fix explanation from https://github.com/hhuijser/liferay-portal/pull/1832#issue-31562844

The fix mainly includes two points:
1. Fix the data(extarData field) of blog, bookmark, calendar, MBmessage and entry's comment data in SocialActivity table.

2. For blog, bookmark, calendar, DLFileEntry and wikipage, we shouldn't firstly delete all related data by using classNameId and we should keep every type entry's comment data by appending type_ != 10005(TYPE_ADD_COMMENT).

As for your said "we can consolidate some duplicate logic". I am sorry that I don't find the good method to achieve it. I was blocked in that wikipage(or MBMessage, MB is using update method) was different other asset types(blog, bookmark, calendar and dl). In wikipage, we added "title and version" in extraData field (not only added title value).

Thanks,
Hai