-
-
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
[REF] Add in CiviCRM Status checks to check for inconsistencies betwe… #31538
base: master
Are you sure you want to change the base?
[REF] Add in CiviCRM Status checks to check for inconsistencies betwe… #31538
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
1030109
to
37302f0
Compare
also ping @demeritcowboy |
ext/civi_event/civi_event.php
Outdated
$messages[] = new CRM_Utils_Check_Message( | ||
'civi_event_participant_payments_missing', | ||
ts('The Following Participant Payments do not have a corresponding line item record linking the contribution to participant. This should be corrected either by updating the relevant line item record or adding a line item record as appropriate.</p> | ||
<p></p><table><thead><th>Contribution ID</th><th>Participant ID</th></thead><tbody>') . $strings . ts('</tbody></table></p>'), |
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.
The first ts should probably be split up. The very last one doesn't need ts.
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.
Should be fixed now
37302f0
to
6270c97
Compare
…en the membership_payment participant_payment and line item tables Updates As per Dave
6270c97
to
8c816d1
Compare
You can't do this with CiviCRM Core, right? So should the instructions include to download and install https://civicrm.org/extensions/line-item-editor |
I think you could by using the API Explorer right but yes for more of a GUI approach you would need that |
@seamuslee001 I would suggest linking to a page on gitlab or docs that is a 'living document' for the instructions |
I've come across this in the wild. As it stands:
Status checks:
I do like the idea of consistency checks but they must go hand in hand with helping fix these problems. Otherwise it makes CiviCRM look scrappy/buggy. IMO. |
I had similar thoughts to @artfulrobot where I wasn't sure where this belongs. And if it throws up a screen full of records but everything is still working then people will ignore it if they can't press a button to fix it. The price fields check currently has that problem. |
$messages[] = new CRM_Utils_Check_Message( | ||
'civi_event_participant_payments_missing', | ||
ts('The Following Participant Payments do not have a corresponding line item record linking the contribution to participant.') . ts('This should be corrected either by updating the relevant line item record or adding a line item record as appropriate.') . '</p> | ||
<p></p><table><thead><th>Contribution ID</th><th>Participant ID</th></thead><tbody>' . $strings . '</tbody></table></p>', |
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.
Sorry I wasn't clear what I meant. The paragraph of text should be together (the translator won't know what the word "this" means otherwise, and these sentences aren't going to be re-used elsewhere), and then the table should be separate except the column headers ts'd.
'<p>' . ts('The Following Participant Payments do not have a corresponding line item record linking the contribution to participant. This should be corrected either by updating the relevant line item record or adding a line item record as appropriate.')
. '</p><p><table><thead><th>' . ts('Contribution ID') . '</th><th>' . ts('Participant ID') . '</th></thead><tbody>' . $strings . '</tbody></table></p>',
Also there's some mismatched p's.
…en the membership_payment participant_payment and line item tables
Overview
We have "soft" deprecated the civicrm_membership_payment and civicrm_participant_table in favour of the civicrm_line_item table. This aims to add a status check to see if there is data inconsistencies between the two tables at least as far as the _payment tables having records that are not present in the line_item table
Before
No check on consistency
After
Check and an alert if data is not matching
Technical Details
I would be open to closing this if people didn't think it was useful but I think it might be helpful if in a future CiviCRM we stop actually adding records to the _payment tables and or drop them. I have also put these in the extensions so that they would only be shown if the system is using memberships or events. I would also be open to fixing language as needed
ping @JoeMurray @KarinG @eileenmcnaughton @mattwire @artfulrobot