civicrm-core.git
2 years agoMerge pull request #23790 from mattwire/editcontributionlinkshook
colemanw [Wed, 15 Jun 2022 22:21:34 +0000 (18:21 -0400)]
Merge pull request #23790 from mattwire/editcontributionlinkshook

Add hook to modify 'contribution payment links'

2 years agoAdd hook to modify 'contribution payment links'
Matthew Wire [Tue, 14 Jun 2022 17:42:02 +0000 (18:42 +0100)]
Add hook to modify 'contribution payment links'

2 years agoMerge pull request #23799 from turrisxyz/Pinned-Dependencies-GitHub
demeritcowboy [Wed, 15 Jun 2022 12:50:14 +0000 (08:50 -0400)]
Merge pull request #23799 from turrisxyz/Pinned-Dependencies-GitHub

chore: Set permissions for GitHub actions

2 years agoMerge pull request #23797 from eileenmcnaughton/remove_field_types
Eileen McNaughton [Wed, 15 Jun 2022 01:41:09 +0000 (13:41 +1200)]
Merge pull request #23797 from eileenmcnaughton/remove_field_types

[REF] Remove param that has a set value

2 years agochore: Set permissions for GitHub actions
nathannaveen [Wed, 15 Jun 2022 00:59:10 +0000 (00:59 +0000)]
chore: Set permissions for GitHub actions

 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
2 years agoMerge pull request #23774 from demeritcowboy/recur-curious
Seamus Lee [Tue, 14 Jun 2022 23:53:48 +0000 (09:53 +1000)]
Merge pull request #23774 from demeritcowboy/recur-curious

dev/financial#199 - Add failing test to demonstrate the problem

2 years ago[REF] Remove param that has a set value
Eileen McNaughton [Tue, 14 Jun 2022 23:33:13 +0000 (11:33 +1200)]
[REF] Remove param that has a set value

2 years agoMerge pull request #23789 from civicrm/5.51
Eileen McNaughton [Tue, 14 Jun 2022 20:56:13 +0000 (08:56 +1200)]
Merge pull request #23789 from civicrm/5.51

5.51

2 years agoMerge pull request #23753 from eileenmcnaughton/import_validate_int
colemanw [Tue, 14 Jun 2022 20:13:04 +0000 (16:13 -0400)]
Merge pull request #23753 from eileenmcnaughton/import_validate_int

Add integer validation to import

2 years agoMerge pull request #23763 from eileenmcnaughton/act_test
colemanw [Tue, 14 Jun 2022 20:12:21 +0000 (16:12 -0400)]
Merge pull request #23763 from eileenmcnaughton/act_test

Fix target contact label back to include target

2 years agoMerge pull request #23764 from eileenmcnaughton/activity_update_mutli
colemanw [Tue, 14 Jun 2022 20:11:37 +0000 (16:11 -0400)]
Merge pull request #23764 from eileenmcnaughton/activity_update_mutli

dev/core#2706 dev/core#2308 fix activity import to update multi-select fields

2 years agoMerge pull request #23749 from colemanw/uiUtils
Eileen McNaughton [Tue, 14 Jun 2022 20:10:57 +0000 (08:10 +1200)]
Merge pull request #23749 from colemanw/uiUtils

AngularJS - Remove UI-Utils library

2 years agoMerge pull request #23788 from ufundo/5.51
Eileen McNaughton [Tue, 14 Jun 2022 20:08:40 +0000 (08:08 +1200)]
Merge pull request #23788 from ufundo/5.51

only check batch currency match when adding a financial_trxn

2 years agoMerge pull request #23791 from mattwire/phpnotice1
Eileen McNaughton [Tue, 14 Jun 2022 20:05:17 +0000 (08:05 +1200)]
Merge pull request #23791 from mattwire/phpnotice1

NFC: Fix PHP notice on ContributionRecurSelector.tpl

2 years agoMerge pull request #23792 from mattwire/recordrefund
Eileen McNaughton [Tue, 14 Jun 2022 19:33:31 +0000 (07:33 +1200)]
Merge pull request #23792 from mattwire/recordrefund

Make it clear what "record refund" form does

2 years agoMake it clear what record refund form does
Matthew Wire [Tue, 14 Jun 2022 17:56:40 +0000 (18:56 +0100)]
Make it clear what record refund form does

2 years agoFix PHP notice
Matthew Wire [Tue, 14 Jun 2022 17:53:47 +0000 (18:53 +0100)]
Fix PHP notice

2 years agoMerge pull request #23786 from mattwire/devfinancial199
demeritcowboy [Tue, 14 Jun 2022 17:12:47 +0000 (13:12 -0400)]
Merge pull request #23786 from mattwire/devfinancial199

dev/financial#199 Fix additional details on edit template contribution

2 years agoFix additional details on edit template contribution
Matthew Wire [Tue, 14 Jun 2022 14:45:13 +0000 (15:45 +0100)]
Fix additional details on edit template contribution

2 years agoonly check batch currency match when adding a financial_trxn
ufundo [Thu, 9 Jun 2022 16:29:32 +0000 (16:29 +0000)]
only check batch currency match when adding a financial_trxn

2 years agoMerge pull request #23783 from totten/5.51-snapshots
Eileen McNaughton [Tue, 14 Jun 2022 03:58:59 +0000 (15:58 +1200)]
Merge pull request #23783 from totten/5.51-snapshots

FiveFiftyOne - Enable snapshots for data modified data

2 years agoFiveFiftyOne - Enable snapshots for data modified data
Tim Otten [Tue, 14 Jun 2022 02:06:05 +0000 (19:06 -0700)]
FiveFiftyOne - Enable snapshots for data modified data

Before
------

The 5.51.alpha upgrade modifies a some data-structures (`civicrm_mapping_*`, `civicrm_queue`),
but it doesn't take any snapshots.

After
-----

It does snapshots.

Comments
--------

Both tables should generally be quite small.

Strictly, the `civicrm_mapping_*` updates are more in-place modifications,
so that's more important.  The `civicrm_queue` changes are only adding new
columns.  But the table is so small - it doesn't hurt.

I suppose one could argue that these particular fields aren't likely to have
problems - but it's important to get in the habit of enabling snapshots so
that we have them when they do matter.

2 years agoMerge pull request #23781 from civicrm/5.51
Eileen McNaughton [Tue, 14 Jun 2022 00:00:58 +0000 (12:00 +1200)]
Merge pull request #23781 from civicrm/5.51

5.51 to master

2 years agoMerge pull request #23771 from eileenmcnaughton/cont_update
Eileen McNaughton [Tue, 14 Jun 2022 00:00:29 +0000 (12:00 +1200)]
Merge pull request #23771 from eileenmcnaughton/cont_update

dev/core#3651 dev/core#1337 Fix failure to show last column data in output, spaces in names

2 years agoadd failing test
demeritcowboy [Sun, 12 Jun 2022 21:17:17 +0000 (17:17 -0400)]
add failing test

2 years agoMerge pull request #23780 from totten/5.51-hush
Eileen McNaughton [Mon, 13 Jun 2022 22:19:02 +0000 (10:19 +1200)]
Merge pull request #23780 from totten/5.51-hush

(dev/core#3653) CRM_Queue_Runner - Fix upgrade warnings. Extract disableBackgroundExecution().

2 years agoMerge pull request #23776 from eileenmcnaughton/electro
Tim Otten [Mon, 13 Jun 2022 20:42:19 +0000 (13:42 -0700)]
Merge pull request #23776 from eileenmcnaughton/electro

(dev/core#2198) Switch to more maintained phpQuery

2 years agoMerge pull request #23766 from eileenmcnaughton/cont_up
Tim Otten [Mon, 13 Jun 2022 20:34:06 +0000 (13:34 -0700)]
Merge pull request #23766 from eileenmcnaughton/cont_up

dev/core#3513 Remove 'done' from sumary/import monitoring page

2 years agoCRM_Queue_Runner - Fix upgrade warnings. Extract disableBackgroundExecution().
Tim Otten [Mon, 13 Jun 2022 19:55:51 +0000 (12:55 -0700)]
CRM_Queue_Runner - Fix upgrade warnings. Extract disableBackgroundExecution().

This is a revision to #23775.  As before, it prevents a hard error when
upgrading to 5.51.  However, the try-catch produces confusing error messages
in the `CiviCRM.log.*` (ie they indicate a SQL error, but the situation is
actually a normal/expected during upgrade).  This avoids the error messages.

Tested (`r-run`) with `civicrm/upgrade`, `drush civicrm-upgrade-db`, and `cv
upgrade:db` -- for both 5.45=>5.51 and 5.45=>5.49=>5.51.

2 years agoMerge pull request #23741 from ufundo/entitybatchcurrency
Matthew Wire [Mon, 13 Jun 2022 16:24:07 +0000 (17:24 +0100)]
Merge pull request #23741 from ufundo/entitybatchcurrency

only check batch currency match when adding a financial_trxn

2 years agoMerge pull request #23777 from darrick/fix_import_disableUSPS
Eileen McNaughton [Mon, 13 Jun 2022 06:01:48 +0000 (18:01 +1200)]
Merge pull request #23777 from darrick/fix_import_disableUSPS

fix disableUSPS since import running in separate context of Queue.

2 years agofix disableUSPS since import running in separate context of Queue.
Darrick Servis [Sat, 11 Jun 2022 22:53:56 +0000 (15:53 -0700)]
fix disableUSPS since import running in separate context of Queue.

2 years agoMerge pull request #23778 from civicrm/5.51
Eileen McNaughton [Mon, 13 Jun 2022 02:40:28 +0000 (14:40 +1200)]
Merge pull request #23778 from civicrm/5.51

5.51

2 years agoMerge pull request #23775 from eileenmcnaughton/5.51
demeritcowboy [Mon, 13 Jun 2022 00:54:20 +0000 (20:54 -0400)]
Merge pull request #23775 from eileenmcnaughton/5.51

dev/core#3653 Fix on queue runner not working in upgrade

2 years agodev/core#2198 switch to more mainted phpquery
Eileen McNaughton [Sun, 12 Jun 2022 23:09:22 +0000 (11:09 +1200)]
dev/core#2198 switch to more mainted phpquery

2 years agodev/core#3653 Fix on queue runner not working in upgrade
Eileen McNaughton [Sun, 12 Jun 2022 22:13:07 +0000 (10:13 +1200)]
dev/core#3653 Fix on queue runner not working in upgrade

2 years agoMerge pull request #23773 from civicrm/5.51
Eileen McNaughton [Sun, 12 Jun 2022 06:06:01 +0000 (18:06 +1200)]
Merge pull request #23773 from civicrm/5.51

5.51 to master

2 years agoMerge pull request #23772 from eileenmcnaughton/cont_contact_fields
Eileen McNaughton [Sun, 12 Jun 2022 06:03:38 +0000 (18:03 +1200)]
Merge pull request #23772 from eileenmcnaughton/cont_contact_fields

Fix import regression - contribution import borks on do_not_import

2 years agoMerge pull request #23757 from colemanw/dupeFixAgain
Eileen McNaughton [Sun, 12 Jun 2022 00:29:37 +0000 (12:29 +1200)]
Merge pull request #23757 from colemanw/dupeFixAgain

Deduepe - Fix form buttons (again)

2 years agodev/core#3651 dev/core#1337 Fix failure to show last column data in output, spaces...
Eileen McNaughton [Sat, 11 Jun 2022 23:36:09 +0000 (11:36 +1200)]
dev/core#3651 dev/core#1337 Fix failure to show last column data in output, spaces in names

2 years agoFix import regression - contribution import borks on do_not_import
Eileen McNaughton [Sun, 12 Jun 2022 00:21:18 +0000 (12:21 +1200)]
Fix import regression - contribution import borks on do_not_import

2 years agoMerge pull request #23769 from civicrm/5.51
demeritcowboy [Sat, 11 Jun 2022 21:15:22 +0000 (17:15 -0400)]
Merge pull request #23769 from civicrm/5.51

5.51

2 years agodev/core#3513 Remove 'done' from sumary/import monitoring page
Eileen McNaughton [Sat, 11 Jun 2022 02:59:20 +0000 (14:59 +1200)]
dev/core#3513 Remove 'done' from sumary/import monitoring page

See dev/core#3513 for why it's confusing

2 years agoMerge pull request #23759 from colemanw/fixTotalCount
demeritcowboy [Sat, 11 Jun 2022 19:38:42 +0000 (15:38 -0400)]
Merge pull request #23759 from colemanw/fixTotalCount

[REGRESSION] SearchKit - Fix angular console error when totalCount is not given

2 years agoMerge pull request #23754 from eileenmcnaughton/act_date
demeritcowboy [Sat, 11 Jun 2022 19:19:38 +0000 (15:19 -0400)]
Merge pull request #23754 from eileenmcnaughton/act_date

dev/core#2325 import second-handling fix

2 years agoMerge pull request #21809 from demeritcowboy/site-path
colemanw [Sat, 11 Jun 2022 18:16:38 +0000 (14:16 -0400)]
Merge pull request #21809 from demeritcowboy/site-path

dev/drupal#167 - Deprecated service to be removed in Drupal 10

2 years agoMerge pull request #23765 from eileenmcnaughton/guzzle_it
colemanw [Sat, 11 Jun 2022 15:41:21 +0000 (11:41 -0400)]
Merge pull request #23765 from eileenmcnaughton/guzzle_it

Catch & convert Guzzle exception

2 years agoMerge pull request #23758 from colemanw/noCiviGrant
demeritcowboy [Sat, 11 Jun 2022 15:37:01 +0000 (11:37 -0400)]
Merge pull request #23758 from colemanw/noCiviGrant

Setup - Remove CiviGrant from available components

2 years agoMerge pull request #23760 from eileenmcnaughton/validate_fields
colemanw [Sat, 11 Jun 2022 14:11:06 +0000 (10:11 -0400)]
Merge pull request #23760 from eileenmcnaughton/validate_fields

dev/core#3511 Improve handling of invalid saved mapping fields

2 years agoMerge pull request #23761 from eileenmcnaughton/invalid_state_with_country
colemanw [Sat, 11 Jun 2022 13:56:47 +0000 (09:56 -0400)]
Merge pull request #23761 from eileenmcnaughton/invalid_state_with_country

dev/core#3512 fix rc fatal error when state is invalid

2 years agoSetup - Remove CiviGrant from available components
Coleman Watts [Fri, 10 Jun 2022 16:25:32 +0000 (12:25 -0400)]
Setup - Remove CiviGrant from available components

Fixes dev/core#3485

2 years agoSearchKit - Fix angular console error when totalCount is not given
Coleman Watts [Fri, 10 Jun 2022 16:37:56 +0000 (12:37 -0400)]
SearchKit - Fix angular console error when totalCount is not given

Before: Error: [$compile:nonassign] Expression 'undefined' in attribute 'totalCount' used with directive 'crmSearchDisplayTable' is non-assignable!

After: Fixed, and totalCount still functions correctly for its indended purpose with SearchSegments.

2 years agoDeduepe - Fix form buttons (again)
Coleman Watts [Fri, 10 Jun 2022 16:08:52 +0000 (12:08 -0400)]
Deduepe - Fix form buttons (again)

Fixes dev/core#3421
Also see dev/core#3135
And the original cause: a6f2a80

2 years agoCatch & convert Guzzle exception
Eileen McNaughton [Sat, 11 Jun 2022 01:25:36 +0000 (13:25 +1200)]
Catch & convert Guzzle exception

2 years agodev/core#2706 fix activity import to update multi-select fields
Eileen McNaughton [Fri, 10 Jun 2022 23:57:49 +0000 (11:57 +1200)]
dev/core#2706 fix activity import to update multi-select fields

2 years agoFix target contact label back to include target
Eileen McNaughton [Fri, 10 Jun 2022 23:27:53 +0000 (11:27 +1200)]
Fix target contact label back to include target

2 years agoMerge pull request #23762 from civicrm/5.51
Eileen McNaughton [Fri, 10 Jun 2022 23:18:48 +0000 (11:18 +1200)]
Merge pull request #23762 from civicrm/5.51

5.51 to master

2 years agoMerge pull request #23471 from totten/master-exceptions
Eileen McNaughton [Fri, 10 Jun 2022 23:17:45 +0000 (11:17 +1200)]
Merge pull request #23471 from totten/master-exceptions

Exceptions - What could possibly go wrong?

2 years agoMerge pull request #23615 from totten/master-mysql-bump
Eileen McNaughton [Fri, 10 Jun 2022 23:17:02 +0000 (11:17 +1200)]
Merge pull request #23615 from totten/master-mysql-bump

dev/core#1681 - Update requirements to MySQL 5.7+ and MariaDB 10.2+

2 years agodev/core#2325 import second-handling fix
Eileen McNaughton [Fri, 10 Jun 2022 06:50:53 +0000 (18:50 +1200)]
dev/core#2325 import second-handling fix

2 years agodev/core#3512 fix rc fatal error when state is invalid
Eileen McNaughton [Fri, 10 Jun 2022 23:09:20 +0000 (11:09 +1200)]
dev/core#3512 fix rc fatal error when state is invalid

2 years agodev/core#3511 Improve handling of invalid saved mapping fields
Eileen McNaughton [Fri, 10 Jun 2022 22:27:34 +0000 (10:27 +1200)]
dev/core#3511 Improve handling of invalid saved mapping fields

2 years agoMerge pull request #23756 from eileenmcnaughton/import_to_group
Tim Otten [Fri, 10 Jun 2022 22:27:59 +0000 (15:27 -0700)]
Merge pull request #23756 from eileenmcnaughton/import_to_group

dev/core#3160 fix inability to import 'just contactid' and add to group

2 years agoMerge pull request #23755 from eileenmcnaughton/import_ivory_coast
Tim Otten [Fri, 10 Jun 2022 21:58:48 +0000 (14:58 -0700)]
Merge pull request #23755 from eileenmcnaughton/import_ivory_coast

dev/core#3505, dev/core#3506 dev/core#3052 Import fixes for unicode url, Côte d’Ivoire

2 years agoAngularJS - Remove UI-Utils library
Coleman Watts [Fri, 10 Jun 2022 01:05:44 +0000 (21:05 -0400)]
AngularJS - Remove UI-Utils library

The [UI-Utils Libary](https://github.com/angular-ui/ui-utils/tree/v0.1.1) was introduced in 2014,
but never used for much of anything. It remains very underutilized, and is the source of a major bug
(see https://lab.civicrm.org/dev/core/-/issues/2688).
Since it's abandonware, it seems best to stop using it rather than try to patch it.

Fixes dev/core#2688

2 years agodev/core#3160 fix inability to import 'just contactid' and add to group
Eileen McNaughton [Fri, 10 Jun 2022 09:59:25 +0000 (21:59 +1200)]
dev/core#3160 fix inability to import 'just contactid' and add to group

2 years agoMerge pull request #23738 from eileenmcnaughton/syntax
Matthew Wire [Fri, 10 Jun 2022 10:14:09 +0000 (11:14 +0100)]
Merge pull request #23738 from eileenmcnaughton/syntax

Remove another no-run test from SyntaxConformance

2 years agodev/core#3505, dev/core#3506 Import fixes for unicode url, Côte d’Ivoire
Eileen McNaughton [Fri, 10 Jun 2022 08:32:46 +0000 (20:32 +1200)]
dev/core#3505, dev/core#3506 Import fixes for unicode url, Côte d’Ivoire

2 years agoSet version to 5.52.alpha1
CiviCRM [Fri, 10 Jun 2022 07:59:36 +0000 (07:59 +0000)]
Set version to 5.52.alpha1

2 years agoSet version to 5.51.beta1
CiviCRM [Fri, 10 Jun 2022 07:34:02 +0000 (07:34 +0000)]
Set version to 5.51.beta1

2 years agoMerge pull request #23747 from eileenmcnaughton/import_contribution
Tim Otten [Fri, 10 Jun 2022 07:29:23 +0000 (00:29 -0700)]
Merge pull request #23747 from eileenmcnaughton/import_contribution

Remove some more unused code

2 years agoAdd integer validation to import
Eileen McNaughton [Fri, 10 Jun 2022 07:09:23 +0000 (19:09 +1200)]
Add integer validation to import

2 years agoMerge pull request #23750 from eileenmcnaughton/test_cruft
Seamus Lee [Fri, 10 Jun 2022 06:41:36 +0000 (16:41 +1000)]
Merge pull request #23750 from eileenmcnaughton/test_cruft

Reduce test output spam

2 years agoMerge pull request #23748 from eileenmcnaughton/guzzle
Seamus Lee [Fri, 10 Jun 2022 06:41:18 +0000 (16:41 +1000)]
Merge pull request #23748 from eileenmcnaughton/guzzle

Update guzzle to 6.5.7

2 years agoRemove some more unused code
Eileen McNaughton [Fri, 10 Jun 2022 01:05:36 +0000 (13:05 +1200)]
Remove some more unused code

2 years agoMerge pull request #23751 from eileenmcnaughton/test_member
Eileen McNaughton [Fri, 10 Jun 2022 04:51:53 +0000 (16:51 +1200)]
Merge pull request #23751 from eileenmcnaughton/test_member

Fix for failing test in master

2 years agoMerge pull request #23746 from totten/master-queue-flag
Eileen McNaughton [Fri, 10 Jun 2022 03:31:58 +0000 (15:31 +1200)]
Merge pull request #23746 from totten/master-queue-flag

CRM_Queue_Runner - Add basic/skeletal support for `runAllInteractively()`

2 years agoMerge pull request #23679 from totten/master-queue-tpl-inclusive
Eileen McNaughton [Fri, 10 Jun 2022 03:00:25 +0000 (15:00 +1200)]
Merge pull request #23679 from totten/master-queue-tpl-inclusive

Civi::queue() - Add support for 'template' queues

2 years agoMerge pull request #23744 from eileenmcnaughton/import_csv
Eileen McNaughton [Fri, 10 Jun 2022 02:59:43 +0000 (14:59 +1200)]
Merge pull request #23744 from eileenmcnaughton/import_csv

Fix unrelease regression - malformed MapField without skipColumnHeaders

2 years agoFix for failing test in master
Eileen McNaughton [Fri, 10 Jun 2022 02:06:46 +0000 (14:06 +1200)]
Fix for failing test in master

2 years agoMerge pull request #23745 from eileenmcnaughton/obsolete_activity
Eileen McNaughton [Fri, 10 Jun 2022 01:40:38 +0000 (13:40 +1200)]
Merge pull request #23745 from eileenmcnaughton/obsolete_activity

Remove obsolete/unused code, fix notices - activity import

2 years agoMerge pull request #23743 from totten/master-queue-runas
Eileen McNaughton [Fri, 10 Jun 2022 01:39:57 +0000 (13:39 +1200)]
Merge pull request #23743 from totten/master-queue-runas

CRM_Queue_Task - Track an optional `$runAs` property

2 years agoReduce test output spam
Eileen McNaughton [Fri, 10 Jun 2022 01:25:21 +0000 (13:25 +1200)]
Reduce test output spam

2 years agoUpdate guzzle to 6.5.7
Eileen McNaughton [Fri, 10 Jun 2022 01:08:19 +0000 (13:08 +1200)]
Update guzzle to 6.5.7

2 years agoFix unrelease regression - malformed MapField without skipColumnHeaders
Eileen McNaughton [Thu, 9 Jun 2022 23:01:33 +0000 (11:01 +1200)]
Fix unrelease regression - malformed MapField without skipColumnHeaders

2 years agoRemove obsolete/unused code - activity import
Eileen McNaughton [Thu, 9 Jun 2022 23:17:29 +0000 (11:17 +1200)]
Remove obsolete/unused code - activity import

2 years agoMerge pull request #23742 from eileenmcnaughton/import_remove
Eileen McNaughton [Thu, 9 Jun 2022 23:57:05 +0000 (11:57 +1200)]
Merge pull request #23742 from eileenmcnaughton/import_remove

Remove more obsolete import code

2 years agodemoqueue - Switch from `runAllViaWeb()` to `runAllInteractive()`
Tim Otten [Tue, 7 Jun 2022 10:32:31 +0000 (03:32 -0700)]
demoqueue - Switch from `runAllViaWeb()` to `runAllInteractive()`

2 years agoImplement runAllInteractive and assertRequirements*
Tim Otten [Tue, 7 Jun 2022 06:12:47 +0000 (23:12 -0700)]
Implement runAllInteractive and assertRequirements*

2 years agoCRM_Queue_Runner - runAllViaWeb should run exclusively via web
Tim Otten [Tue, 7 Jun 2022 02:36:12 +0000 (19:36 -0700)]
CRM_Queue_Runner - runAllViaWeb should run exclusively via web

This is a preventative measure.

2 years agocivicrm/queue/monitor - Add skeletal page for monitoring status
Tim Otten [Sat, 4 Jun 2022 08:09:42 +0000 (01:09 -0700)]
civicrm/queue/monitor - Add skeletal page for monitoring status

2 years agocrmQueueMonitor - Skeletal module
Tim Otten [Tue, 7 Jun 2022 00:31:57 +0000 (17:31 -0700)]
crmQueueMonitor - Skeletal module

2 years agoAdd experimental setting `enableBackgroundQueue`
Tim Otten [Sat, 4 Jun 2022 04:44:35 +0000 (21:44 -0700)]
Add experimental setting `enableBackgroundQueue`

2 years agoCRM_Queue_Runner - Conditionally inherit the queue's error-policy
Tim Otten [Tue, 7 Jun 2022 01:36:09 +0000 (18:36 -0700)]
CRM_Queue_Runner - Conditionally inherit the queue's error-policy

2 years agoFix test fatal
Eileen McNaughton [Thu, 9 Jun 2022 23:40:20 +0000 (11:40 +1200)]
Fix test fatal

2 years agoRemove more obsolete import code
Eileen McNaughton [Thu, 9 Jun 2022 22:32:23 +0000 (10:32 +1200)]
Remove more obsolete import code

2 years agoUserJob - Add property `is_template`
Tim Otten [Thu, 9 Jun 2022 23:32:45 +0000 (16:32 -0700)]
UserJob - Add property `is_template`

Eileen requested, and it's easiest to add now, and it seems safe+consistent.

2 years agoCivi::queue() - Add support for 'template' queues
Tim Otten [Fri, 3 Jun 2022 01:14:41 +0000 (18:14 -0700)]
Civi::queue() - Add support for 'template' queues

Overview
--------

Suppose you are in the habit of making separate queue-instances for
different batches of work.  However, you want to allow the sysadmin to
configure options like `type`, `batch_limit`, and `retry_interval`.

Solution: Make a template

After
-----

```php
// Use the API to register a template, eg
\Civi\Api4\Queue::create()->setValues([
  'name' => 'template-name',
  'is_template' => TRUE,
  ...
])->execute();

// Later, create a queue from the template
$q = Civi::queue('new-queue', ['template' => 'template-name']);
```

2 years agoQueue - Add column `is_template`
Tim Otten [Thu, 9 Jun 2022 23:09:43 +0000 (16:09 -0700)]
Queue - Add column `is_template`

2 years agoCRM_Queue_Task - Track an optional `$runAs` property
Tim Otten [Wed, 27 Oct 2021 07:12:50 +0000 (00:12 -0700)]
CRM_Queue_Task - Track an optional `$runAs` property