-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
CRM-21434: Add activities to recent items on view and edit #11280
CRM-21434: Add activities to recent items on view and edit #11280
Conversation
Hi, Can you open a JIRA issue? https://docs.civicrm.org/dev/en/latest/core/contributing/ The test errors seem to be syntax-related, but from the github UI I don't think it shows the presence of tabs. Can you double-check? This is a new feature that might be somewhat disruptive to users who are not used to seeing activities in the Recent Items.
|
https://issues.civicrm.org/jira/browse/CRM-21434 Activities were added to the stack before but in an inconsistent manner. Some activities were, some not. I couldn't identify a rule which was followed. So this PR brings value to people who want activities to be seen in the stack. People disliking this feature may deselect activities provider in the corresponding setting (civicrm/admin/setting/misc -> Recent Items Providers). I do not think they would benefit from keeping the current random selection. |
Ah, hmm, right. Looking at other entities, they either get added to Recent Items from the BAO or the Form class, often both. The Activity BAO has quite a few conditions on how to add activities to the Recent Items (mostly permission-related), as well as parameters such as Do you have a specific use-case where an activity wasn't being added to the Recent Items? |
Thanks for your review! Activity BAO calls RecentItems's Add method only on create. Handling the view action here seems quite complicated and I don't know any massive benefits. Do you? |
@mlutfy This has been stalled for a while - do you think it's progressable? I share your reservation about doing the Update on the form layer - esp in the preProcess as it would happen when looking to update & then backing out. I'm OK with adding the VIEW links as they are in this function Regarding the optionality - CRM_Utils_Recent::add will not add items for entities that are not enabled for recent - ie |
Hmm, I'm not sure if my english skills are sufficient but I'm reading this as "Push the update related code to the BAO". I'm gonna have a look. |
@nielosz why don't you start by getting the view only part in a PR & merged since that part seems simple |
@nielosz are you OK to rebase this & squash to a single commit. @mlutfy I will merge the squashed 'view-only' version - unless you comment back to register concerns |
021b5aa
to
ee34b17
Compare
ee34b17
to
3f8f030
Compare
When viewing activities push them to the recent items stack.