-
-
Notifications
You must be signed in to change notification settings - Fork 825
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-21052 - Activity API - Allow opt-out of CiviCase activity history #10842
Conversation
settings/Case.setting.php
Outdated
'name' => 'civicaseActivityRevisions', | ||
'type' => 'Boolean', | ||
'quick_form_type' => 'YesNo', | ||
'default' => TRUE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the default should be false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trade-off:
- For existing CiviCase users,
TRUE
maintains the status-quo. It's arguably buggy, but it's the bug they know -- and sometimes folks have implicit dependencies on a long-standing quirks. - For new CiviCase adopters,
FALSE
will leave their data ready to go to CiviCase 5 without any extra migration steps. However, if we're going to change the default, then we really need a more active round of communications.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I was thinking mostly about new installs, I think it should be FALSE
for them. TRUE
is ok for existing installs, agree that's safer.
…ue doing so by default. Otherwise, don't.
f8d87fd
to
58e9d36
Compare
@colemanw ok, I've made a few changes based on the feedback:
|
@totten check test failures |
@colemanw the test issue should be addressed now. |
Overview
In case-management, it's often useful to track the detailed revision for
each activity.
This patch helps the CiviCase 5 extension change the mechanism used --
instead of adding special records in
civicrm_activity
withoriginal_id
and
is_current_revision
, it will rely on the general-purpose revisionhistory (the shadow tables in
log_civicrm_*
).Note: This makes no change to the default behavior of any CiviCase screens.
It is purely an opt-in for sites using CiviCase 5.
Before
If you create a
Case
and update anActivity
in the case usingActivity
API, it records an extra record in the
civicrm_activity
table.After
You can toggle an option in "Administer => CiviCase => CiviCase Settings"
called "Enable Embedded Activity Revisions".
TRUE
, then activity updates lead to new records (as before).FALSE
, then activity updates save directly without any extra rows.(Updates per feedback) The default value for this setting is based on the following rules:
FALSE
. This ensures a smoother upgrade path to CiviCase 5.TRUE
orFALSE
depending on whether the tablecivicrm_activity
contains any revision history:is_current_revision=0
ororiginal_id IS NOT NULL
, then continue to generate more such records.