civicrm-core.git
2 years agoMerge pull request #23531 from eileenmcnaughton/import_goned
Eileen McNaughton [Sat, 21 May 2022 00:49:44 +0000 (12:49 +1200)]
Merge pull request #23531 from eileenmcnaughton/import_goned

[Import] Remove empty if

2 years agoMerge pull request #23530 from eileenmcnaughton/import_gone
Eileen McNaughton [Sat, 21 May 2022 00:37:44 +0000 (12:37 +1200)]
Merge pull request #23530 from eileenmcnaughton/import_gone

Remove always-true if-check

2 years agoMerge pull request #23496 from colemanw/fixCustomGroupJoinable
Eileen McNaughton [Sat, 21 May 2022 00:37:31 +0000 (12:37 +1200)]
Merge pull request #23496 from colemanw/fixCustomGroupJoinable

SearchKit - Fix in-place editing custom relationship fields

2 years agoMerge pull request #23509 from eileenmcnaughton/import_except
colemanw [Fri, 20 May 2022 23:32:05 +0000 (19:32 -0400)]
Merge pull request #23509 from eileenmcnaughton/import_except

[Import] Remove handling for unavailable field current_employer

2 years ago[Import] Remove empty if
Eileen McNaughton [Fri, 20 May 2022 22:21:22 +0000 (10:21 +1200)]
[Import] Remove empty if

2 years agoRemove always-true if-check
Eileen McNaughton [Fri, 20 May 2022 22:18:20 +0000 (10:18 +1200)]
Remove always-true if-check

2 years agoMerge pull request #23508 from eileenmcnaughton/import_subkid
colemanw [Fri, 20 May 2022 21:38:35 +0000 (17:38 -0400)]
Merge pull request #23508 from eileenmcnaughton/import_subkid

[Import] Fix & test check on contact subtype change

2 years agoMerge pull request #23526 from eileenmcnaughton/import_sub
colemanw [Fri, 20 May 2022 21:38:17 +0000 (17:38 -0400)]
Merge pull request #23526 from eileenmcnaughton/import_sub

[Import] Check subtype validity in validate rather than wait for 'imort'

2 years agoSearchKit - Fix in-place editing custom relationship fields for related contacts
Coleman Watts [Thu, 19 May 2022 02:16:15 +0000 (22:16 -0400)]
SearchKit - Fix in-place editing custom relationship fields for related contacts

Before: In-place edit updates the wrong record for custom relationship fields
After: Fixed

2 years agoMerge pull request #23525 from aydun/yesno
Eileen McNaughton [Fri, 20 May 2022 20:51:59 +0000 (08:51 +1200)]
Merge pull request #23525 from aydun/yesno

Fixes dev/core#3475 - Allow 'yesno' as a valid value of `html_type`

2 years agoMerge pull request #23331 from colemanw/post
Eileen McNaughton [Fri, 20 May 2022 20:50:41 +0000 (08:50 +1200)]
Merge pull request #23331 from colemanw/post

SearchKit - Use POST to send contact ids to action forms

2 years ago[Import] Check subtype validity in validate rather than wait for 'import', test
Eileen McNaughton [Wed, 18 May 2022 23:28:32 +0000 (11:28 +1200)]
[Import] Check subtype validity in validate rather than wait for 'import', test

2 years agoFixes dev/core#3475 - Allow 'yesno' as a valid value of `html_type`I
Aidan Saunders [Fri, 20 May 2022 18:47:27 +0000 (19:47 +0100)]
Fixes dev/core#3475 - Allow 'yesno' as a valid value of `html_type`I

2 years agoMerge pull request #23521 from eileenmcnaughton/dead
Yashodha Chaku [Fri, 20 May 2022 14:27:08 +0000 (19:57 +0530)]
Merge pull request #23521 from eileenmcnaughton/dead

Ensure setting deceased date sets is_deceased in the BAO

2 years agoMerge pull request #23524 from mattwire/contributiontestfixes
demeritcowboy [Fri, 20 May 2022 13:29:25 +0000 (09:29 -0400)]
Merge pull request #23524 from mattwire/contributiontestfixes

Payment forms test fixes

2 years agoMerge pull request #23523 from eileenmcnaughton/import_little
demeritcowboy [Fri, 20 May 2022 11:25:05 +0000 (07:25 -0400)]
Merge pull request #23523 from eileenmcnaughton/import_little

Re-use code in test

2 years agoBuild form properly for CRM_Financial_Form_PaymentEditTest::testSubmitOnCheckNumberChange
Matthew Wire [Tue, 22 Mar 2022 18:57:39 +0000 (18:57 +0000)]
Build form properly for CRM_Financial_Form_PaymentEditTest::testSubmitOnCheckNumberChange

2 years agoBuild form properly for PaymentEditTest::testSubmitOnPaymentInstrumentChange
Matthew Wire [Mon, 21 Mar 2022 14:31:57 +0000 (14:31 +0000)]
Build form properly for PaymentEditTest::testSubmitOnPaymentInstrumentChange

2 years agoBuild form properly for FinancialItemTest::testGetPreviousFinancialItemHavingTax
Matthew Wire [Mon, 21 Mar 2022 14:30:46 +0000 (14:30 +0000)]
Build form properly for FinancialItemTest::testGetPreviousFinancialItemHavingTax

2 years agoRe-use code in test
Eileen McNaughton [Fri, 20 May 2022 09:11:10 +0000 (21:11 +1200)]
Re-use code in test

2 years agoMerge pull request #23518 from eileenmcnaughton/import_meta
Tim Otten [Fri, 20 May 2022 08:16:16 +0000 (01:16 -0700)]
Merge pull request #23518 from eileenmcnaughton/import_meta

[REF] Move list of fields that have been upgraded

2 years agoEnsure setting deceased date sets is_deceased in the BAO
Eileen McNaughton [Fri, 20 May 2022 07:48:07 +0000 (19:48 +1200)]
Ensure setting deceased date sets is_deceased in the BAO

2 years agoMerge pull request #23517 from eileenmcnaughton/import_comments
Seamus Lee [Fri, 20 May 2022 05:11:09 +0000 (15:11 +1000)]
Merge pull request #23517 from eileenmcnaughton/import_comments

[NFC] Improve comment blocks for mapper

2 years ago[REF] Move list of fields that have been upgraded
Eileen McNaughton [Fri, 20 May 2022 03:39:43 +0000 (15:39 +1200)]
[REF] Move list of fields that have been upgraded

2 years agoImprove comment blocks for mapper
Eileen McNaughton [Thu, 19 May 2022 22:17:56 +0000 (10:17 +1200)]
Improve comment blocks for mapper

2 years agoMerge pull request #23511 from eileenmcnaughton/import_unused
colemanw [Fri, 20 May 2022 01:36:51 +0000 (21:36 -0400)]
Merge pull request #23511 from eileenmcnaughton/import_unused

[Ref] [Import] Cleanup function return

2 years agoMerge pull request #23498 from eileenmcnaughton/import_cust_extract
colemanw [Fri, 20 May 2022 01:34:14 +0000 (21:34 -0400)]
Merge pull request #23498 from eileenmcnaughton/import_cust_extract

Ref Extract import validation

2 years agoMerge pull request #23512 from eileenmcnaughton/part_count
Seamus Lee [Fri, 20 May 2022 01:18:13 +0000 (11:18 +1000)]
Merge pull request #23512 from eileenmcnaughton/part_count

Cleanup sql query

2 years agoMerge pull request #23504 from eileenmcnaughton/import_replace
colemanw [Fri, 20 May 2022 01:11:42 +0000 (21:11 -0400)]
Merge pull request #23504 from eileenmcnaughton/import_replace

[Import] Remove svn whimsy - DUPLICATE_REPLACE

2 years agoMerge pull request #23501 from eileenmcnaughton/import_json
Tim Otten [Fri, 20 May 2022 00:00:17 +0000 (17:00 -0700)]
Merge pull request #23501 from eileenmcnaughton/import_json

Fix use of not-universally supported mysql field type

2 years agoMerge pull request #23510 from yashodha/ckeditor_issue_5
Eileen McNaughton [Thu, 19 May 2022 23:20:33 +0000 (11:20 +1200)]
Merge pull request #23510 from yashodha/ckeditor_issue_5

fix to get around link issues in ckeditor when opening scheduled remi…

2 years agoCleanup sql query
Eileen McNaughton [Thu, 19 May 2022 23:07:30 +0000 (11:07 +1200)]
Cleanup sql query

On digging into this query I found that is uses protected words like value & count
so I have fixed the query to no longer use those & re-formatted to add comments.

I suspect the actual fix might need to sit around pending community input so I think it is good to
get this tidy up merged to make it all clearer

2 years ago[Ref] [Import] Cleanup function return
Eileen McNaughton [Thu, 19 May 2022 20:36:12 +0000 (08:36 +1200)]
[Ref] [Import] Cleanup function return

2 years agofix to get around link issues in ckeditor when opening scheduled reminder in popup
yashodha [Thu, 19 May 2022 15:52:09 +0000 (21:22 +0530)]
fix to get around link issues in ckeditor when opening scheduled reminder in popup

2 years agoMerge pull request #23507 from eileenmcnaughton/import_match2
colemanw [Thu, 19 May 2022 14:40:51 +0000 (10:40 -0400)]
Merge pull request #23507 from eileenmcnaughton/import_match2

[REF] Remove unreachable code

2 years agoMerge pull request #23495 from eileenmcnaughton/import_unused
demeritcowboy [Thu, 19 May 2022 14:21:20 +0000 (10:21 -0400)]
Merge pull request #23495 from eileenmcnaughton/import_unused

[REF] [Import] Remove unused parameter

2 years agoMerge pull request #23493 from eileenmcnaughton/import_rel
colemanw [Thu, 19 May 2022 13:35:35 +0000 (09:35 -0400)]
Merge pull request #23493 from eileenmcnaughton/import_rel

[Import] Remove silly param

2 years ago[Import] Remove handling for unavailable field current_employer
Eileen McNaughton [Thu, 19 May 2022 11:18:58 +0000 (23:18 +1200)]
[Import] Remove handling for unavailable field current_employer

2 years ago[Import] Fix & test check on contact subtype change
Eileen McNaughton [Thu, 19 May 2022 00:19:25 +0000 (12:19 +1200)]
[Import] Fix & test check on contact subtype change

2 years ago[REF] Remove unreachable code
Eileen McNaughton [Thu, 19 May 2022 09:30:12 +0000 (21:30 +1200)]
[REF] Remove unreachable code

2 years ago[Import] Remove svn whimsy - DUPLICATE_REPLACE
Eileen McNaughton [Thu, 19 May 2022 08:42:35 +0000 (20:42 +1200)]
[Import] Remove svn whimsy - DUPLICATE_REPLACE

2 years agoAdd unit tests to cover date field imports
Eileen McNaughton [Thu, 19 May 2022 06:23:37 +0000 (18:23 +1200)]
Add unit tests to cover date field imports

2 years agoFix use of not-universally supported mysql field type
Eileen McNaughton [Thu, 19 May 2022 06:42:06 +0000 (18:42 +1200)]
Fix use of not-universally supported mysql field type

2 years agoMerge pull request #23500 from civicrm/5.50
Eileen McNaughton [Thu, 19 May 2022 05:29:20 +0000 (17:29 +1200)]
Merge pull request #23500 from civicrm/5.50

5.50 to master

2 years agoMerge pull request #23497 from totten/5.50-schedrem-bool
Eileen McNaughton [Thu, 19 May 2022 05:28:44 +0000 (17:28 +1200)]
Merge pull request #23497 from totten/5.50-schedrem-bool

Restore `civicrm_action_schedule.limit_to` (5.50)

2 years ago[Import] Remove silly param
Eileen McNaughton [Thu, 19 May 2022 01:49:50 +0000 (13:49 +1200)]
[Import] Remove silly param

2 years agoMerge pull request #23494 from eileenmcnaughton/import_if
Eileen McNaughton [Thu, 19 May 2022 04:58:25 +0000 (16:58 +1200)]
Merge pull request #23494 from eileenmcnaughton/import_if

[Import] Remove `if (1) {` (whitespace intensive)

2 years agoRef Extract import validation
Eileen McNaughton [Thu, 19 May 2022 02:40:14 +0000 (14:40 +1200)]
Ref Extract import validation

2 years agoMerge pull request #23492 from totten/master-silly-method
Eileen McNaughton [Thu, 19 May 2022 03:35:18 +0000 (15:35 +1200)]
Merge pull request #23492 from totten/master-silly-method

(REF) CRM_Upgrade_Form - Remove silly method `runQuery`

2 years agoFiveFortyNine - Tweak task title
Tim Otten [Thu, 19 May 2022 02:32:46 +0000 (19:32 -0700)]
FiveFortyNine - Tweak task title

2 years agoFiveFortyNine - Revise message about "limit to"
Tim Otten [Wed, 18 May 2022 23:33:37 +0000 (16:33 -0700)]
FiveFortyNine - Revise message about "limit to"

1. This fixes a problem where the message shows at the opposite-of-correct time
   (ie it should display on builds that have already run 5.49.{beta,0,1}, but
   it actually displayed on builds that have not run 5.49.{beta,0,1})

2. This makes the pre+post messages match.

2 years agoFiveFortyNine - Don't munge soft credit 'limit-to'
Tim Otten [Wed, 18 May 2022 22:02:12 +0000 (15:02 -0700)]
FiveFortyNine - Don't munge soft credit 'limit-to'

I'm not sure what it even means to limit a scheduled-reminder to a "soft_credit_type".

But it's a thing - I can use the 5.48 GUI to create it. Here's how it looks in the DB (in 5.48):

+----+------------------------------------------+------------------+----------+------------------+-------------------+----------+
| id | title                                    | recipient        | limit_to | recipient_manual | recipient_listing | group_id |
+----+------------------------------------------+------------------+----------+------------------+-------------------+----------+
| 11 | Limit To - Soft Credit                   | soft_credit_type |        1 | NULL             | in_memory_of      |     NULL |
+----+------------------------------------------+------------------+----------+------------------+-------------------+----------+

The `changeBooleanColumnLimitTo()` was coercing down to `limit_to=null` because it lacked `recipient_manual` and `group_id`.

2 years agoFiveFortyNine - Fix guard on `changeBooleanColumnLimitTo()`
Tim Otten [Wed, 18 May 2022 21:58:42 +0000 (14:58 -0700)]
FiveFortyNine - Fix guard on `changeBooleanColumnLimitTo()`

2 years agoadd pre+post upgrade message
Monish Deb [Wed, 18 May 2022 11:41:09 +0000 (17:11 +0530)]
add pre+post upgrade message

2 years agoFiveFortyNine - Draft message for 5.49.2
Monish Deb [Wed, 18 May 2022 04:36:43 +0000 (10:06 +0530)]
FiveFortyNine - Draft message for 5.49.2

2 years agoRevert civicrm_action_schedule.limit_to boolean column to be NULL
Monish Deb [Tue, 17 May 2022 07:01:23 +0000 (12:31 +0530)]
Revert civicrm_action_schedule.limit_to boolean column to be NULL

2 years ago[REF] [Import] Remove unused parameter
Eileen McNaughton [Thu, 19 May 2022 02:13:51 +0000 (14:13 +1200)]
[REF] [Import] Remove unused parameter

2 years ago[Import] Remove if (1) {
Eileen McNaughton [Thu, 19 May 2022 02:08:56 +0000 (14:08 +1200)]
[Import] Remove if (1) {

2 years ago(REF) CRM_Upgrade_Form - Remove silly method `runQuery`
Tim Otten [Sat, 12 Dec 2015 04:01:35 +0000 (20:01 -0800)]
(REF) CRM_Upgrade_Form - Remove silly method `runQuery`

This function just wraps `CRM_Core_DAO::executeQuery`, and it's only
used once.

2 years agoMerge pull request #23476 from eileenmcnaughton/import_dupe_more
colemanw [Thu, 19 May 2022 00:16:33 +0000 (20:16 -0400)]
Merge pull request #23476 from eileenmcnaughton/import_dupe_more

[Import] Simplify checking contact type is valid

2 years agoSearchKit - Use POST to send contact ids to action forms
Coleman Watts [Sat, 30 Apr 2022 20:59:19 +0000 (22:59 +0200)]
SearchKit - Use POST to send contact ids to action forms

2 years agoMerge pull request #23489 from colemanw/filterCustomFields
Eileen McNaughton [Wed, 18 May 2022 21:07:31 +0000 (09:07 +1200)]
Merge pull request #23489 from colemanw/filterCustomFields

APIv4 - Filter custom fields based on supplied values

2 years agoValidate subtype change
Eileen McNaughton [Tue, 17 May 2022 23:09:33 +0000 (11:09 +1200)]
Validate subtype change

2 years ago[Import] Simplify checking contact type is valid
Eileen McNaughton [Tue, 17 May 2022 06:28:41 +0000 (18:28 +1200)]
[Import] Simplify checking contact type is valid

2 years ago[Import] Duplicate finding cleanup
Eileen McNaughton [Tue, 17 May 2022 03:22:25 +0000 (15:22 +1200)]
[Import] Duplicate finding cleanup

2 years agoText user supplied dedupe rule is used during import.
Darrick Servis [Sat, 14 May 2022 22:07:35 +0000 (15:07 -0700)]
Text user supplied dedupe rule is used during import.

2 years ago[REF] [Import] Extraction of get related contacts function
Eileen McNaughton [Tue, 17 May 2022 23:37:33 +0000 (11:37 +1200)]
[REF] [Import] Extraction of get related contacts function

2 years agoMerge pull request #23484 from eileenmcnaughton/import_get_type
colemanw [Wed, 18 May 2022 19:01:13 +0000 (15:01 -0400)]
Merge pull request #23484 from eileenmcnaughton/import_get_type

Cleanup gender handling in contact import + add test

2 years agoAPIv4 - Filter custom fields based on supplied values
Coleman Watts [Mon, 9 May 2022 00:13:07 +0000 (20:13 -0400)]
APIv4 - Filter custom fields based on supplied values

This allows targeted getfields for a particular entity or type of entity

2 years agoMerge pull request #23461 from eileenmcnaughton/import_woohoo
Yashodha Chaku [Wed, 18 May 2022 14:15:28 +0000 (19:45 +0530)]
Merge pull request #23461 from eileenmcnaughton/import_woohoo

[REF] [Import] Remove now-unused code

2 years agoCleanup gender handling in contact import
Eileen McNaughton [Wed, 18 May 2022 02:39:49 +0000 (14:39 +1200)]
Cleanup gender handling in contact import

2 years agoMerge pull request #23470 from eileenmcnaughton/import_dataform
Monish Deb [Wed, 18 May 2022 02:47:21 +0000 (08:17 +0530)]
Merge pull request #23470 from eileenmcnaughton/import_dataform

[REF] [Import] Stop calling Parser in MapField mode (contact import)

2 years agoMerge pull request #23483 from eileenmcnaughton/import_get
Monish Deb [Wed, 18 May 2022 02:27:16 +0000 (07:57 +0530)]
Merge pull request #23483 from eileenmcnaughton/import_get

Painstaking unravelling of function

2 years agoMerge pull request #23475 from eileenmcnaughton/imp_fold
colemanw [Wed, 18 May 2022 00:37:02 +0000 (20:37 -0400)]
Merge pull request #23475 from eileenmcnaughton/imp_fold

[Import] Add tests for contact type & contact subtype handling

2 years agoMerge pull request #23452 from colemanw/exportCustomFieldWithOptions
colemanw [Wed, 18 May 2022 00:28:03 +0000 (20:28 -0400)]
Merge pull request #23452 from colemanw/exportCustomFieldWithOptions

APIv4 - Export options along with custom field

2 years agoFold array building in
Eileen McNaughton [Wed, 18 May 2022 00:13:50 +0000 (12:13 +1200)]
Fold array building in

2 years agoSet up related Contact Key earlier
Eileen McNaughton [Wed, 18 May 2022 00:02:50 +0000 (12:02 +1200)]
Set up related Contact Key earlier

2 years agoFurther simplification
Eileen McNaughton [Wed, 18 May 2022 00:01:40 +0000 (12:01 +1200)]
Further simplification

2 years agoSimply value building
Eileen McNaughton [Wed, 18 May 2022 00:00:21 +0000 (12:00 +1200)]
Simply value building

2 years agoSimplify related contact assignment
Eileen McNaughton [Tue, 17 May 2022 23:53:39 +0000 (11:53 +1200)]
Simplify related contact assignment

2 years agoRemove always-true-if
Eileen McNaughton [Tue, 17 May 2022 23:42:38 +0000 (11:42 +1200)]
Remove always-true-if

2 years agoMerge pull request #23481 from alifrumin/rn5.50
Eileen McNaughton [Tue, 17 May 2022 19:33:14 +0000 (07:33 +1200)]
Merge pull request #23481 from alifrumin/rn5.50

[NFC] First pass at 5.50 release notes

2 years ago[NFC] first stab at 5.50 release notes
Alice Frumin [Fri, 13 May 2022 00:29:23 +0000 (20:29 -0400)]
[NFC] first stab at 5.50 release notes

2 years agoMerge pull request #23480 from demeritcowboy/too-many-questions
demeritcowboy [Tue, 17 May 2022 16:57:05 +0000 (12:57 -0400)]
Merge pull request #23480 from demeritcowboy/too-many-questions

Remove extra question mark from url

2 years agoremove extra question mark
demeritcowboy [Tue, 17 May 2022 15:01:42 +0000 (11:01 -0400)]
remove extra question mark

2 years agoMerge pull request #23469 from mlutfy/schemaTranslation
demeritcowboy [Tue, 17 May 2022 14:59:19 +0000 (10:59 -0400)]
Merge pull request #23469 from mlutfy/schemaTranslation

Fix Schema System Check translation and show missing Custom Field ID

2 years agoAPIv4 - Export option groups along with custom fields
Coleman Watts [Fri, 13 May 2022 01:35:30 +0000 (21:35 -0400)]
APIv4 - Export option groups along with custom fields

2 years agoFix Schema System Check translation
Mathieu Lutfy [Mon, 16 May 2022 16:46:55 +0000 (12:46 -0400)]
Fix Schema System Check translation

2 years agoMerge pull request #23446 from colemanw/searchKitDefaultAgg
Seamus Lee [Tue, 17 May 2022 07:26:33 +0000 (17:26 +1000)]
Merge pull request #23446 from colemanw/searchKitDefaultAgg

SearchKit - Pick better default for aggregate functions

2 years agoMerge pull request #23472 from colemanw/exportMaxLentgh
Seamus Lee [Tue, 17 May 2022 07:24:25 +0000 (17:24 +1000)]
Merge pull request #23472 from colemanw/exportMaxLentgh

APIv4 - Respect max length for name with export action

2 years agoFigure out & test what happens with ext identifier & type, subtype combos
Eileen McNaughton [Tue, 17 May 2022 04:20:25 +0000 (16:20 +1200)]
Figure out & test what happens with  ext identifier & type, subtype combos

2 years agoMerge pull request #23464 from eileenmcnaughton/import_on_dup
colemanw [Tue, 17 May 2022 02:56:45 +0000 (22:56 -0400)]
Merge pull request #23464 from eileenmcnaughton/import_on_dup

[REF] [Import] Minor simplification

2 years agoAPIv4 - Respect max length for name with export action
Coleman Watts [Tue, 17 May 2022 02:30:33 +0000 (22:30 -0400)]
APIv4 - Respect max length for name with export action

2 years agoMerge pull request #23459 from darrick/dev/core#2300
Eileen McNaughton [Tue, 17 May 2022 01:15:40 +0000 (13:15 +1200)]
Merge pull request #23459 from darrick/dev/core#2300

dev/core#2300 Can not use Custom Fields defined on a contact_sub_type in dedupe…

2 years ago[REF] [Import] Stop calling Parser in MapField mode
Eileen McNaughton [Mon, 16 May 2022 21:51:14 +0000 (09:51 +1200)]
[REF] [Import] Stop calling Parser in MapField mode

2 years agoMerge pull request #23463 from eileenmcnaughton/import_proc
Yashodha Chaku [Mon, 16 May 2022 18:17:21 +0000 (23:47 +0530)]
Merge pull request #23463 from eileenmcnaughton/import_proc

[REF] [Import] Remove unused variable

2 years agoMerge pull request #23466 from totten/master-timeout-guzzle
Eileen McNaughton [Mon, 16 May 2022 08:59:17 +0000 (20:59 +1200)]
Merge pull request #23466 from totten/master-timeout-guzzle

CRM_Utils_Check - Catch Guzzle exception, same as core exception

2 years agoMerge pull request #23457 from eileenmcnaughton/import_more_part
Yashodha Chaku [Mon, 16 May 2022 06:07:42 +0000 (11:37 +0530)]
Merge pull request #23457 from eileenmcnaughton/import_more_part

Consolidate datasource form - event import

2 years agoCRM_Utils_Check - Catch Guzzle exception, same as core exception
Tim Otten [Mon, 16 May 2022 06:02:57 +0000 (23:02 -0700)]
CRM_Utils_Check - Catch Guzzle exception, same as core exception

Overview
--------

`checkExtensions()` is supposed to show status-messages which report on
any out-of-date extensions.  This requires a list of available updates.

Alas, the Internet is a big and scary place, and sometimes the list is
unavailable.  DNS servers, HTTP servers, timeouts, yadda yadda.  If it can't
get the list of extensions, it should show a status-message about this
problem.

Before
------

Throws an exception, causing a full failure in the page-view that does
the status-check.

After
-----

Catches the exception. Reports a status-message about the failure.

Comments
--------

It appears that this was probably the behavior before (ie `checkExtension()`
already has a try/catch for this kind of problem). However, the underlying
HTTP request was changed a versions back (ie from `HttpClient` to `Guzzle`)
which means that errors can get reported in other ways.

To simulate errors, I did this:

1. Run buggy/placeholder TCP service (`nc -l 8199`)
2. Hack `CRM_Extension_Browser::__construct()` to set `$this->repoUrl` to `http://localhost:8199`
3. Run `cv api System.check`

2 years agoMerge pull request #23289 from eileenmcnaughton/import_summ
Yashodha Chaku [Mon, 16 May 2022 05:55:22 +0000 (11:25 +0530)]
Merge pull request #23289 from eileenmcnaughton/import_summ

[REF] [Import] Activity - clean up copy & paste