Commit Graph

41 Commits

Author SHA1 Message Date
8f5d4ae8a0 fix: catch rejected promise if it is in a try-catch block 2024-01-23 18:45:46 +08:00
585957469c fix: init sentry sdk to disable tracing warning in cloud logs 2024-01-23 12:46:51 +08:00
1f421b3ebc put rule:${rule_name} as the source when adding labels by rule engine 2023-12-13 16:31:30 +08:00
4ae6c476f8 shows api error message 2023-10-14 13:18:40 +08:00
b46128c732 Add author and sitename for notifications 2023-09-07 18:45:21 +08:00
71487e14c3 filter rule event type in rule engine 2023-07-20 18:47:17 +08:00
4dad4a6fa3 revert push notification 2023-07-20 17:29:26 +08:00
6b3d7874ad Disable push notification action in rules engine 2023-04-05 12:39:07 +08:00
710abbfaf0 remove imageUrl from notification data 2022-12-13 15:28:09 +08:00
5650971042 Do not save recent searches for rule based queries 2022-12-12 17:40:40 +08:00
6be684fc43 Check event type in the filter 2022-12-12 17:10:12 +08:00
eba75f7571 Fix imageUrl being null in the sendNotification data 2022-12-09 18:07:53 +08:00
2cfb367a98 Add fallback notification data 2022-12-09 11:15:59 +08:00
4e8a58724e Change wording 2022-12-09 11:01:49 +08:00
181b401030 Update new recommendation notification message 2022-12-09 10:56:08 +08:00
e85ec51e6c Get notification data from params 2022-12-09 10:41:23 +08:00
b1ef8b8e4b Fix not setting labels due to the undefined labels in search API response 2022-11-28 10:29:27 +08:00
35e99350a5 Only set label if not exists 2022-11-25 10:35:31 +08:00
0732fb05dd Fix some errors in rule engine 2022-11-24 18:39:51 +08:00
1e6e2b82ee Run search API to filter rules 2022-11-24 15:04:59 +08:00
b77d718754 Fix a bug 2022-11-23 18:25:12 +08:00
83a619f826 Use promise.all to trigger all actions 2022-11-23 18:22:04 +08:00
52b1cb8cfa Add type filter 2022-11-23 17:41:09 +08:00
ffd7259523 Add read filter 2022-11-23 16:28:38 +08:00
60d23ca387 Add content filter 2022-11-23 14:24:47 +08:00
64ed6fee68 Fix api error 2022-11-23 13:51:02 +08:00
3c67900916 Update api client 2022-11-23 13:25:03 +08:00
aaa74c8ba3 Add mark page as read and archived action in rule engine 2022-11-23 11:55:01 +08:00
ce00274911 Validate pageId before adding labels 2022-11-23 10:41:02 +08:00
5f07f8cc64 Add add label action in the rule engine 2022-11-23 10:09:42 +08:00
ba730bdc3e Use default application credential 2022-11-22 13:00:01 +08:00
1ef862782f Catch error from sending notification api 2022-11-22 12:51:59 +08:00
2ae3226bdb Add sendNotification api 2022-11-22 12:48:17 +08:00
f7b0981b7d Parse subscription filter in rules 2022-11-22 12:12:12 +08:00
9344fae1b9 Add title and image url in notification 2022-11-22 10:50:38 +08:00
6b772c9248 Disable push notification reminders 2022-11-22 10:20:52 +08:00
06a3f906f8 Fix bug 2022-11-21 17:12:18 +08:00
9af670a5bc Call api to get rules and device tokens in rules handler 2022-11-21 17:03:46 +08:00
88416bc178 Add get rules api 2022-11-21 15:03:15 +08:00
7479222657 Fix test 2022-11-21 10:17:13 +08:00
dc92fe9c52 Create rule handler cloud run 2022-11-19 11:15:26 +08:00