-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
dev/core#1471 - Add system status alert for deleted custom fields in … #16267
Conversation
(Standard links)
|
In the alert message, instead of deleting problematic smart groups, I might suggest editing their search criteria and updating them to clean outdated fields from saved search. |
9dc1c01
to
f357a26
Compare
@francescbassas updated the msg to suggest editing and updating the search criteria. Also updated the table to list custom field labels of deleted fields that are included in the saved search form values. |
Great, looks better! Custom field value isn't displayed in my case. Maybe because they are deleted and not disabled? I would also add a ✏️ and ⚙️ to each row to link to the group search criteria edition |
@jitendrapurohit @francescbassas Edit/settings button sound good. Can the list be group title which is link to the results as well. |
In the column Custom field I would put:
|
@francescbassas sounds good. @jitendrapurohit Can you please make the requested changes? Is the test failure related? |
I don't think the test failure is related - @yashodha go ahead & merge this once you are happy with it |
test this please |
f357a26
to
5330c0d
Compare
CRM/Utils/Check/Component/Schema.php
Outdated
} | ||
} | ||
|
||
$html .= "<tr><td>{$id}</td><td>{$field['title']}</td><td class='disabled'>{$fieldName}</td>"; |
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.
To add edit and config group icons:
$groupEdit = '<a href="' . CRM_Utils_System::url('civicrm/contact/search/advanced', "?reset=1&ssID={$id}", TRUE) . '" title="' . ts('Edit search criteria') . '"> <i class="crm-i fa-pencil"></i> </a>';
$groupConfig = '<a href="' . CRM_Utils_System::url('civicrm/group', "?reset=1&action=update&id={$id}", TRUE) . '" title="' . ts('Group settings') . '"> <i class="crm-i fa-gear"></i> </a>';
$html .= "<tr><td>{$id} {$groupEdit} {$groupConfig}</td><td>{$field['title']}</td><td class='disabled'>{$fieldName}</td>";
Aso I would convert the 'ID' and 'Group Title' to one 'Group'
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.
Note that I put on $groupConfig the group ID when should be the SSID.
5330c0d
to
09b64ac
Compare
@francescbassas The above change has been made. Can you pls retest and confirm? Thanks. |
Tested and looks good. Thanks @jitendrapurohit. Looking again, I could just only up the last paragraph above the table. test this please |
test this please |
@francescbassas is this good to merge once tests pass? |
…smart groups additional changes from francescbassas
09b64ac
to
5405c11
Compare
done @francescbassas |
@jitendrapurohit Can you please update the latest screenshot in After section in which all the changes have been incorporated or is this the one https://user-images.githubusercontent.com/1064675/72603392-37b81d00-3919-11ea-8d93-1bc121f6be74.png? |
@yashodha Done - #16267 (comment) |
@jitendrapurohit looks good, merging this. Thanks! |
nice! Thanks all |
…smart groups
Overview
Add message alert on system status page for deleted custom fields on smart group.
Before
See https://lab.civicrm.org/dev/core/issues/1471. There is no indication or way to know which smart groups are responsible for errors on the group page.
After
System status show an alert with a list of groups responsible for smart group errors.
UPDATED text after QA -
Comments
Gitlab - https://lab.civicrm.org/dev/core/issues/1471