Commit graph

520 commits

Author SHA1 Message Date
Binyamin Yawitz
321f621132
test: Functions tests 2024-06-07 12:13:12 -04:00
Binyamin Yawitz
d0a55e266c
lint: Linting 2024-06-06 20:54:51 -04:00
Binyamin Yawitz
ba629e94ef
feat: Adjusting Doctor to new pools 2024-06-06 20:52:30 -04:00
ItzNotABug
a34ec72048 fix: delete expired targets per project. 2024-06-06 12:01:32 +05:30
Binyamin Yawitz
6b0892a495
refactor: Adjusting to merge and some code cleanups 2024-06-05 20:41:23 -04:00
Binyamin Yawitz
b5a241db8d
merge: Main into Coroutines 2024-06-05 18:38:39 -04:00
Binyamin Yawitz
72d5e94c97
wip: coroutines 2024-06-04 16:56:28 -04:00
Binyamin Yawitz
6083d8b7a8
feat(tasks): Coroutine 2024-06-03 14:09:58 -04:00
fogelito
26c714da48 dbg 2024-05-29 19:30:52 +03:00
fogelito
d000c160b6 Fix bug? 2024-05-29 19:29:03 +03:00
fogelito
ed0995fa49 Fix bug? 2024-05-29 19:26:44 +03:00
fogelito
5764ea9ade static getCollectionId 2024-05-29 19:09:14 +03:00
fogelito
07bfe3823c getCollectionId 2024-05-29 18:59:10 +03:00
fogelito
97703b0332 Question 2024-05-29 18:16:29 +03:00
fogelito
f68f21a264 Add debug 2024-05-27 17:53:50 +03:00
fogelito
bc62405810 Add debug 2024-05-27 17:42:51 +03:00
fogelito
b5061da8c3 add resourceType backup 2024-05-27 17:17:58 +03:00
fogelito
9c591bd42d add resourceType backup 2024-05-27 17:06:08 +03:00
Binyamin Yawitz
ebe386acd9
feat(logger): Unifying logger environment variable and adapting to the latest Logger version 2024-05-23 12:44:19 -04:00
fogelito
552c729c5a fix enqueueResources 2024-05-23 18:22:25 +03:00
fogelito
06a5e76c50 ScheduleBase refactor 2024-05-23 17:42:03 +03:00
Christy Jacob
aa76862692 Merge branch '1.5.x' of https://github.com/appwrite/appwrite into sync-with-1.5.x 2024-05-22 19:43:31 +00:00
Steven Nguyen
722f3291fa
Merge branch 'main' into chore-sync-with-main 2024-05-20 18:33:52 +00:00
Christy Jacob
10722aa736 chore: cleanup obsolete tasks and workers 2024-05-16 07:11:00 +00:00
Christy Jacob
a63667f5a3 chore: cleanup obsolete tasks 2024-05-16 07:04:40 +00:00
Steven Nguyen
03fd62cc04
Merge branch 'main' into 1.5.x 2024-05-15 11:36:15 -07:00
xue
1043e2f810
Merge branch 'main' into cicd-fix-float-to-int-conversion-warning-at-appwrite-doctor 2024-05-09 01:10:52 +03:00
bhc
b04b7c5f45
chore: Improve sleep duration in Doctor.php 2024-05-09 00:56:56 +03:00
Eldad Fux
c53de9fb6b Merge branch 'main' of github.com:appwrite/appwrite into feat-eldad4-coroutines 2024-05-08 18:21:55 +01:00
Steven Nguyen
06e7efbd29
Merge pull request #7993 from fuyangpengqi/main
chore: fix some typos in comments
2024-04-29 16:41:24 -07:00
Matej Bačo
84b8b0409c Linter fix 2024-04-26 13:15:21 +02:00
Matej Bačo
0a85809532 Merge branch 'refactor-usage-sn' into refactor-usage-sn-1.5.x 2024-04-26 13:14:00 +02:00
Matej Bačo
9616de7576 Merge branch 'main' into refactor-usage-sn-1.5.x 2024-04-26 13:11:21 +02:00
Damodar Lohani
b76f91218c fixes 2024-04-25 08:56:17 +00:00
Damodar Lohani
7e2c486ee1 Merge remote-tracking branch 'origin/1.5.x' into feat-react-native-sdk 2024-04-25 08:52:37 +00:00
Steven Nguyen
b75f5263a2
Merge branch 'main' into chore-sync-main-into-1.5.x 2024-04-23 23:43:53 +00:00
Eldad Fux
6a67a1d48a Fixed execute to match new signature 2024-04-22 14:41:46 +02:00
Eldad Fux
3b70ae4d9f Fixed formatting 2024-04-22 07:56:36 +02:00
fuyangpengqi
2f5be1080f chore: fix some typos in comments
Signed-off-by: fuyangpengqi <995764973@qq.com>
2024-04-18 21:40:03 +08:00
shimon
92716ed72e queue retry validator update 2024-04-18 12:09:39 +03:00
Damodar Lohani
3f43e239c0 fixed 2024-04-11 05:06:37 +00:00
Damodar Lohani
8fbd4e5269 Merge remote-tracking branch 'origin/main' into feat-react-native-sdk 2024-04-11 05:04:19 +00:00
Matej Bačo
baeaa9204c Linter fix 2024-04-02 20:03:15 +00:00
Matej Bačo
aaa1465e21 Fix code bugs 2024-04-02 16:58:45 +00:00
Matej Bačo
d091b37a15 Merge branch 'refactor-usage-sn' into refactor-usage-sn-1.5.x 2024-04-02 18:42:17 +02:00
Eldad Fux
5ce3de4933 Merge remote-tracking branch 'origin/main' into feat-eldad2-coroutines 2024-04-02 02:13:15 +02:00
Eldad Fux
beda5293b4 Fix format 2024-04-01 13:08:46 +02:00
Eldad Fux
8ed1da4ea8 Updated getEnv to use system lib 2024-04-01 13:02:47 +02:00
Steven Nguyen
82c93fb55d
fix(sdks): fix namespace of Exception
Without this, PHP will try to look for an Exception class in the
Appwrite\Platform\Tasks namespace, which doesn't exist.
2024-03-21 17:25:57 -07:00
Damodar Lohani
ef61879f5e fix import 2024-03-10 04:20:27 +00:00
Damodar Lohani
f3927c3d20 fix linter 2024-03-10 03:57:54 +00:00
Damodar Lohani
c11a1af99b react native SDK 2024-03-10 02:49:45 +00:00
Matej Bačo
2a0a69f3ed Fix connections pool 2024-03-09 11:59:45 +01:00
Torsten Dittmann
150681246e bump: version number 2024-03-08 17:25:10 +01:00
Matej Bačo
db1674811f Finish fixing code QL warnings 2024-03-08 13:57:20 +01:00
Matej Bačo
005a239932 Auth fixes 2024-03-07 18:24:01 +01:00
Matej Bačo
efeb898be1 Import fixes 2024-03-07 15:29:42 +01:00
Matej Bačo
5a7c43ab32 Introduce code analysis 2024-03-07 10:59:08 +01:00
Torsten Dittmann
0a1d572c72 chore: run formatter 2024-03-06 18:34:21 +01:00
shimon
dfac3d585a Merge branch 'main' of github.com:appwrite/appwrite into remove-cloud-scripts 2024-03-06 17:58:58 +01:00
Torsten Dittmann
4d873eb5a2 fix: stats collection name 2024-03-05 10:36:23 +01:00
Torsten Dittmann
a53e630536 Merge branch 'main' of https://github.com/appwrite/appwrite into sync-main-1.5.x-2 2024-03-05 10:31:51 +01:00
Damodar Lohani
fc498fd80f
update cover image for SDKs 2024-03-03 08:19:36 +05:45
shimon
1a59361200 adding limit to queue retry 2024-02-28 21:15:59 +02:00
shimon
658396b4a8 adding limit to queue retry 2024-02-28 21:09:10 +02:00
shimon
53438accce adding limit to queue retry 2024-02-28 21:01:42 +02:00
shimon
84f47dc1d2 adding limit to queue retry 2024-02-28 20:21:35 +02:00
Jake Barnby
16071d9056
Merge remote-tracking branch 'origin/1.5.x' into feat-rc-sdks
# Conflicts:
#	app/config/specs/open-api3-latest-client.json
#	app/config/specs/open-api3-latest-console.json
#	app/config/specs/open-api3-latest-server.json
#	app/config/specs/swagger2-latest-client.json
#	app/config/specs/swagger2-latest-console.json
#	app/config/specs/swagger2-latest-server.json
2024-02-27 18:19:02 +13:00
Jake Barnby
564c1df701
Fix rescheduling with existing schedule 2024-02-26 23:37:12 +13:00
Jake Barnby
cd554aa17f
Merge remote-tracking branch 'origin/1.5.x' into feat-rc-sdks
# Conflicts:
#	app/config/specs/open-api3-1.5.x-client.json
#	app/config/specs/open-api3-1.5.x-console.json
#	app/config/specs/open-api3-1.5.x-server.json
#	app/config/specs/open-api3-latest-client.json
#	app/config/specs/open-api3-latest-console.json
#	app/config/specs/open-api3-latest-server.json
#	app/config/specs/swagger2-1.5.x-client.json
#	app/config/specs/swagger2-1.5.x-console.json
#	app/config/specs/swagger2-1.5.x-server.json
#	app/config/specs/swagger2-latest-client.json
#	app/config/specs/swagger2-latest-console.json
#	app/config/specs/swagger2-latest-server.json
#	composer.lock
2024-02-26 18:43:52 +13:00
loks0n
b650884351 chore: fix hide in specs 2024-02-24 14:38:09 +00:00
loks0n
42e9865dff fix: hideServer & hideClient 2024-02-24 13:42:33 +00:00
Jake Barnby
82efd57146
Fix hidden files not copied when generating SDKs 2024-02-23 18:32:15 +13:00
Jake Barnby
7c42a59c85
Merge remote-tracking branch 'origin/1.5.x' into feat-rc-sdks
# Conflicts:
#	app/config/specs/open-api3-latest-client.json
#	app/config/specs/open-api3-latest-console.json
#	app/config/specs/open-api3-latest-server.json
#	app/config/specs/swagger2-latest-client.json
#	app/config/specs/swagger2-latest-console.json
#	app/config/specs/swagger2-latest-server.json
#	composer.lock
2024-02-23 18:01:59 +13:00
Luke B. Silver
f285173f4e
Merge branch '1.5.x' into feat-ssr-dx 2024-02-22 13:22:41 +00:00
Christy Jacob
a8098831a3
Revert "usage/usage-dump queue health endpoints" 2024-02-22 12:21:48 +05:30
loks0n
a3b88f2015 chore: remove x-forwarded-for 2024-02-21 12:18:50 +00:00
Jake Barnby
e91565ecc9
Merge remote-tracking branch 'origin/1.5.x' into feat-rc-sdks
# Conflicts:
#	app/config/specs/open-api3-latest-client.json
#	app/config/specs/open-api3-latest-console.json
#	app/config/specs/open-api3-latest-server.json
#	app/config/specs/swagger2-latest-client.json
#	app/config/specs/swagger2-latest-console.json
#	app/config/specs/swagger2-latest-server.json
#	composer.lock
2024-02-21 19:17:50 +13:00
Jake Barnby
400b28de8a
Replace resourceCollection with switch 2024-02-21 03:25:01 +13:00
Jake Barnby
bbce53cda5
Auto trigger messaging events 2024-02-21 01:06:35 +13:00
Jake Barnby
e20f46ba1b
Bump response format to fix filters being used 2024-02-19 16:54:53 +13:00
Jake Barnby
10ec207a92
Merge remote-tracking branch 'origin/1.5.x' into feat-rc-sdks 2024-02-16 22:58:08 +13:00
Torsten Dittmann
e35a9efb12 Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-rc-sdks 2024-02-15 11:32:15 +00:00
Bradley Schofield
b60c591f8f Merge branch '1.5.x' into 1.5.x-response-request-models 2024-02-13 09:45:59 +00:00
shimon
8c44627da1 Merge branch 'main' of github.com:appwrite/appwrite into remove-cloud-scripts
 Conflicts:
	Dockerfile
	src/Appwrite/Platform/Services/Workers.php
2024-02-13 10:29:17 +02:00
Jake Barnby
66e51c0f18
Merge remote-tracking branch 'origin/1.5.x' into 1.5.x-response-request-models
# Conflicts:
#	src/Appwrite/Platform/Workers/Usage.php
#	src/Appwrite/Platform/Workers/UsageHook.php
2024-02-13 15:07:16 +13:00
Jake Barnby
37522ea66f
Merge branch '1.5.x' into fix-catch-exception 2024-02-13 12:47:36 +13:00
shimon
e7ace61273 Sync against main 2024-02-12 11:10:52 +02:00
Jake Barnby
862f20479d
Merge pull request #7568 from appwrite/chore-merge-main
Merge main
2024-02-12 22:08:13 +13:00
Damodar Lohani
869d3c9809 fix url 2024-02-12 01:27:20 +00:00
Damodar Lohani
545a5ee126 set default endpoint and host name for specs. 2024-02-12 01:21:28 +00:00
Jake Barnby
18f7168160
Merge main 2024-02-12 14:18:19 +13:00
Christy Jacob
5842f1950a chore: linter 2024-02-08 18:02:35 +00:00
Christy Jacob
ba4f708137
Apply suggestions from code review
Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
2024-02-08 23:26:43 +05:30
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
6c17a9ef95
Update generator and deploy RC SDKs 2024-02-06 01:40:51 +13:00
Khushboo Verma
1fefb7e133 Add a 20 second delay to maintenance worker 2024-02-05 15:01:23 +05:30
shimon
883cfedc46 updates 2024-02-01 22:14:09 +02:00
shimon
030cdf3cc8 updates 2024-02-01 17:12:27 +02:00
shimon
350d72eb1f updates 2024-02-01 12:21:50 +02:00
shimon
ab80999d1e cleanup 2024-01-31 12:13:02 +02:00
shimon
be829e2db4 Merge branch 'refactor-usage-sn' of github.com:appwrite/appwrite into remove-cloud-scripts
 Conflicts:
	Dockerfile
	docker-compose.yml
	src/Appwrite/Platform/Services/Tasks.php
	src/Appwrite/Platform/Services/Workers.php
	src/Appwrite/Platform/Tasks/CalcTierStats.php
	src/Appwrite/Platform/Workers/Hamster.php
2024-01-30 20:47:35 +02:00
Christy Jacob
906e227359
Merge pull request #7497 from appwrite/feat-queue-commands
Add queue management commands
2024-01-26 22:06:45 +04:00
Bradley Schofield
6ceeacbe03 Run Linter 2024-01-26 15:52:58 +00:00
Bradley Schofield
186772cc15 Simplify commands, fix queue consts 2024-01-26 15:51:28 +00:00
Christy Jacob
7e444b037d
Merge pull request #7482 from appwrite/feat-improve-cname-logging
Feat: CNAME validation logs
2024-01-26 19:08:26 +04:00
Bradley Schofield
4c96f76762 Run Linter 2024-01-26 11:20:13 +00:00
Bradley Schofield
216a5d7001 Add queue management commands 2024-01-26 11:11:18 +00:00
fogelito
789e19d26a Merge branch '1.5.x' of github.com:appwrite/appwrite into json-parsing 2024-01-25 19:06:18 +02:00
fogelito
a782e20315 Merge branch '1.5.x' of github.com:appwrite/appwrite into json-parsing
 Conflicts:
	app/controllers/api/account.php
	composer.json
	composer.lock
	src/Appwrite/Platform/Tasks/CalcTierStats.php
	tests/e2e/Services/Account/AccountBase.php
2024-01-25 17:44:05 +02:00
Jake Barnby
34973b8413
Directly delete message schedule instead of deferring to worker 2024-01-26 00:35:37 +13:00
Jake Barnby
7106131545
Merge branch '1.5.x' into feat-maintenance-delete-expired-targets 2024-01-26 00:26:29 +13:00
Bradley Schofield
6997eec9dd Rename RetryJobs to QueueRetry 2024-01-24 17:54:52 +00:00
Bradley Schofield
192599d7c6 Merge branch 'main' into feat-impl-queue-retry 2024-01-24 17:54:29 +00:00
Bradley Schofield
57c019ff98 Update RetryJobs.php 2024-01-24 17:49:52 +00:00
Bradley Schofield
ab2d830cc0 Address comments 2024-01-24 17:44:29 +00:00
Bradley Schofield
d3e9d03329
Update src/Appwrite/Platform/Tasks/RetryJobs.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2024-01-24 14:45:24 +00:00
Torsten Dittmann
9f5a0312cf Merge branch 'main' of https://github.com/appwrite/appwrite into 1.5.x 2024-01-24 11:24:59 +01:00
Matej Bačo
5bd106afaf Implement better cname validation logging 2024-01-23 15:40:32 +00:00
Bradley Schofield
448b3b0cc0
Merge branch 'main' into feat-impl-queue-retry 2024-01-22 16:51:18 +00:00
Bradley Schofield
f3579b3f12 Address Christy's Comments 2024-01-22 16:50:45 +00:00
Matej Bačo
554103687e linter fix 2024-01-22 11:15:55 +00:00
Matej Bačo
4366f8e5d8 Remove incorrect translations, improve script 2024-01-22 10:01:02 +00:00
Bradley Schofield
1e247bdde1 Address Christy's Comments and Update Lib 2024-01-19 13:18:37 +00:00
Jake Barnby
9fc68d23a0
Fix delete type for expired targets 2024-01-19 17:23:44 +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
a3096bc209
Merge remote-tracking branch 'origin/1.5.x' into feat-message-scheduling
# Conflicts:
#	app/controllers/api/messaging.php
2024-01-19 15:54:21 +13:00
shimon
a0b38a5a7c Merge branch 'main' of github.com:appwrite/appwrite into refactor-usage-sn 2024-01-18 14:19:19 +02: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
be9728937a
Update src/Appwrite/Platform/Tasks/ScheduleMessages.php
Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com>
2024-01-17 14:35:12 +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
ae60089413
Inline update 2024-01-15 19:31:42 +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
1666ba1645
Fix missing time check 2024-01-15 18:43:17 +13:00
loks0n
56fe939713 Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-ssr 2024-01-13 09:55:44 +00:00
Matej Bačo
a2856f6acc Update copy & AI translations 2024-01-11 10:23:25 +00:00
Matej Bačo
479c70d0aa Fix after revert 2024-01-11 08:25:55 +00:00
Matej Bačo
e0db651240 Revert "Translated security phrase copy with AI"
This reverts commit b72dd35f45.
2024-01-11 08:25:09 +00:00
Matej Bačo
04831a91c7
Update src/Appwrite/Platform/Tasks/DevGenerateTranslations.php 2024-01-11 09:20:00 +01:00
Jake Barnby
449e8cc06c
Fix function schedules 2024-01-11 19:32:24 +13:00
Jake Barnby
62304f817d
Fix maintenance worker 2024-01-11 16:15:11 +13:00
Jake Barnby
81f1eb3506
Abstract scheduling base 2024-01-11 16:06:59 +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
Matej Bačo
b72dd35f45 Translated security phrase copy with AI 2024-01-10 15:01:42 +00:00
Matej Bačo
931efe24a9 Added security phrase to magic URL 2024-01-10 14:52:32 +00:00
loks0n
94e45da5c7 Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-ssr 2024-01-10 10:15:29 +00:00
loks0n
9a34c92fac Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-ssr 2024-01-09 16:42:00 +00:00
Matej Bačo
bdfb930097 Linter fix 2024-01-09 16:22:10 +00:00