Commit graph

73 commits

Author SHA1 Message Date
Jake Barnby
d15e85d1f6
Fix injecting invalid resource 2024-02-20 17:27:35 +13:00
Jake Barnby
710e08c109
Make sure to clear cache if file was downloaded from remote source 2024-02-20 00:11:10 +13:00
Jake Barnby
022c4678ec
Allow attaching files from storage to emails 2024-02-20 00:08:57 +13:00
Jake Barnby
afba7f75f0
Update appropriate total count when mutating topic 2024-02-15 17:23:30 +13:00
Jake Barnby
2ce85ce6ef
Add unknown error is delivered total is 0 but there were no delivery errors 2024-02-13 17:08:45 +13:00
Jake Barnby
37522ea66f
Merge branch '1.5.x' into fix-catch-exception 2024-02-13 12:47:36 +13:00
Jake Barnby
ff1f7e4819
Merge pull request #7569 from appwrite/fix-telesign-params
Fix telesign params
2024-02-13 12:38:49 +13:00
Jake Barnby
05884e154e
Update telesign credentials 2024-02-12 15:10:18 +13:00
Jake Barnby
18f7168160
Merge main 2024-02-12 14:18:19 +13:00
Steven Nguyen
4ace8ed027
Replace catching \Exception with \Throwable
\Exception doesn't work as a catch-all because not everything extends
\Exception. For example, there was a problem where the messaging worker
didn't catch an exception here:

} catch (\Exception $e) {
    $deliveryErrors[] = 'Failed sending to targets ' . $batchIndex + 1 . '-' . \count($batch) . ' with error: ' . $e->getMessage();
} finally {

As such, $deliveryErrors stayed as an empty array. In this case, the
$adapter->send() threw a TypeError which extends Error which implements
Throwable. Updating the catch to catch \Throwable ensures the error is
caught and $deliveryErrors gets updated.
2024-02-08 01:17:54 +00:00
Jake Barnby
f9e8216781
Fix FCM init 2024-02-06 04:13:56 +13:00
Jake Barnby
c32545fb49
Fix push message creation warnings 2024-02-06 04:13:35 +13:00
Jake Barnby
6e40973771
Fix response iteration 2024-02-06 04:11:40 +13:00
Jake Barnby
499f0a53ea
Update to standard namespacing for enums 2024-02-02 17:53:19 +13:00
Jake Barnby
836ae8a607
Fix adapter instantiation 2024-02-01 17:51:28 +13:00
Jake Barnby
d9f53cacfa
Add SMTP provider 2024-02-01 01:30:09 +13:00
Jake Barnby
8fd5a336af
Make sure target exists before updating 2024-01-19 20:18:10 +13:00
Jake Barnby
332fddac12
Merge remote-tracking branch 'origin/1.5.x' into feat-maintenance-delete-expired-targets 2024-01-19 19:18:04 +13:00
Jake Barnby
06b2b82fac
Fix cc + bcc targets fetched by identifier instead of $id 2024-01-19 17:26:06 +13:00
Jake Barnby
4c10e78e42
Merge remote-tracking branch 'origin/1.5.x' into feat-maintenance-delete-expired-targets
# Conflicts:
#	app/init.php
2024-01-19 16:56:51 +13:00
Jake Barnby
65573adad6
Use status enum 2024-01-19 16:15:54 +13:00
Jake Barnby
1701606593
Console warning instead of throw so error reporting isn't triggered 2024-01-19 14:41:53 +13:00
Jake Barnby
2f786c03a2
Merge remote-tracking branch 'origin/1.5.x' into feat-message-scheduling
# Conflicts:
#	tests/e2e/Services/GraphQL/Base.php
2024-01-17 19:07:40 +13:00
Jake Barnby
828f214d0f
Merge remote-tracking branch 'origin/feat-message-scheduling' into feat-maintenance-delete-expired-targets 2024-01-17 15:06:36 +13:00
Jake Barnby
fe0af8e2cd
Add missing provider filter for targets 2024-01-17 15:06:10 +13:00
Jake Barnby
ad40e0a3c5
Merge remote-tracking branch 'origin/feat-message-scheduling' into feat-maintenance-delete-expired-targets 2024-01-17 15:02:14 +13:00
Jake Barnby
aee1d44062
Set failed and delivery errors for failure cases 2024-01-17 14:57:29 +13:00
Jake Barnby
0ffe1d5346
Fix limits 2024-01-17 14:54:25 +13:00
Jake Barnby
4cc6d4161d
Merge branch 'feat-message-scheduling' into feat-maintenance-delete-expired-targets 2024-01-15 20:33:38 +13:00
Jake Barnby
4d9fb1d687
Merge remote-tracking branch 'origin/1.5.x' into feat-message-scheduling
# Conflicts:
#	src/Appwrite/Platform/Workers/Messaging.php
2024-01-15 20:07:01 +13:00
Jake Barnby
772617f231
Mark invalid targets on message send then delete on maintenance sweep 2024-01-15 19:52:40 +13:00
Jake Barnby
ce78d8c473
Set schedule inactive after message send so deletes worker picks it up 2024-01-15 19:29:19 +13:00
Jake Barnby
a05a5da9bb
Remove todo 2024-01-15 19:02:54 +13:00
Jake Barnby
a2d0385eba
Check more failure cases 2024-01-15 18:28:40 +13:00
Jake Barnby
099094f719
Fix target fetch limits in worker 2024-01-15 18:27:48 +13:00
Jake Barnby
44a28173e4
Merge branch '1.5.x' into feat-remove-apns-endpoint 2024-01-15 16:33:43 +13:00
Matej Bačo
ed28bb9295 Merge remote-tracking branch 'origin/1.5.x' into feat-improve-logging 2024-01-11 10:22:50 +00:00
Jake Barnby
6904285560
Check provider enabled 2024-01-11 15:55:08 +13:00
Jake Barnby
513ed9de05
Merge remote-tracking branch 'origin/1.5.x' into scheduling-temp
# Conflicts:
#	app/controllers/api/messaging.php
#	tests/e2e/Services/Messaging/MessagingBase.php
2024-01-11 13:06:15 +13:00
Steven Nguyen
e7d3797234
Remove the endpoint param for APNS providers
The endpoint was removed from utopia-php/messaging.
2024-01-09 21:30:56 +00:00
Steven Nguyen
01df91aee9
Replace backticks with double quotes 2024-01-04 23:58:48 +00:00
Matej Bačo
0ba768125d Merge remote-tracking branch 'origin/1.5.x' into feat-improve-logging 2024-01-02 11:08:47 +00:00
prateek banga
5d7eca7c99 lint fix and tests fix 2023-12-19 23:45:20 +05:30
Prateek Banga
1957bc57c2 makes messaging worker compatible with new messaging lib version 2023-12-19 18:28:25 +05:30
Jake Barnby
7b99fab512
Use targets for cc/bcc 2023-12-15 03:19:24 +13:00
Prateek Banga
b8aa2faa7b adds scheduling commit, still need to resolve pools error 2023-12-07 11:25:19 +01:00
Prateek Banga
194bbbb350 review changes 2023-12-05 19:24:55 +01:00
Prateek Banga
e7dca6b2d5 adds uniform logic for worker and extra params for email 2023-12-05 15:01:32 +01:00
prateek banga
6ead6f8094 misc changes
allow filtering by providerType, userId in subscribers. Adds cancelled status for message status. Validate targets when creating message. delete all targets when user is deleted. fix twilio bug. add db env vars in messaging worker compose.phtml
2023-12-01 03:39:43 +05:30
prateek banga
fa8dc133b4 Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-add-message-provider-type 2023-11-29 15:01:47 +05:30