Commit graph

586 commits

Author SHA1 Message Date
Matej Bačo
b3ada0b017
Update src/Appwrite/Platform/Tasks/ScheduleExecutions.php 2024-09-07 19:02:38 +02:00
Matej Bačo
b1769ed5ca Fix scheduled executions data 2024-09-07 12:20:23 +02:00
Binyamin Yawitz
b390485dd9
fix: coroutine access in schedulers 2024-09-06 15:52:20 -04:00
Binyamin Yawitz
0ecc61fe9e
refactor: import instead of FQDN 2024-09-05 13:26:26 -04:00
Binyamin Yawitz
cedf3cf28d
chore: format 2024-09-03 19:32:30 -04:00
Binyamin Yawitz
7d6eac4ddb
Merge branch '1.6.x' into feat-eldad4-coroutines
# Conflicts:
#	app/cli.php
#	app/controllers/api/account.php
#	app/controllers/api/functions.php
#	app/controllers/api/projects.php
#	app/controllers/general.php
#	app/controllers/shared/api.php
#	app/http.php
#	app/init.php
#	app/realtime.php
#	app/worker.php
#	composer.json
#	composer.lock
#	src/Appwrite/Migration/Migration.php
#	src/Appwrite/Platform/Tasks/Migrate.php
#	src/Appwrite/Platform/Tasks/ScheduleExecutions.php
#	src/Appwrite/Platform/Workers/Builds.php
#	src/Appwrite/Platform/Workers/Deletes.php
#	src/Appwrite/Specification/Format/Swagger2.php
#	src/Appwrite/Utopia/Response.php
2024-09-03 19:06:48 -04:00
Jake Barnby
6854451565
Fix execution scheduler merge 2024-09-03 15:07:53 +12:00
Jake Barnby
2c2e88f645
Merge remote-tracking branch 'origin/1.6.x' into migrations-backups
# Conflicts:
#	app/init.php
#	composer.json
#	composer.lock
#	src/Appwrite/Platform/Tasks/ScheduleBase.php
#	src/Appwrite/Specification/Format/Swagger2.php
2024-09-03 14:48:57 +12:00
Jake Barnby
2d03ce598b
Allow overriding request/response types for spec generation 2024-08-28 18:00:44 +12:00
fogelito
c43177093e Merge remote-tracking branch 'origin/migrations-backups' into migrations-backups 2024-08-22 17:31:05 +03:00
fogelito
5f27d75c11 Address comments 2024-08-22 17:30:50 +03:00
Shmuel Fogel
f1da0b2e61
Update src/Appwrite/Platform/Tasks/Maintenance.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2024-08-22 17:21:11 +03:00
fogelito
ff1a679c49 Merge branch 'main' of https://github.com/appwrite/appwrite into migrations-backups-v2
# Conflicts:
#	composer.json
#	composer.lock
#	src/Appwrite/Platform/Tasks/Maintenance.php
#	src/Appwrite/Platform/Workers/Migrations.php
#	tests/e2e/Services/Databases/DatabasesBase.php
2024-08-20 16:36:54 +03:00
fogelito
9b20802b4c Only comment 2024-08-20 10:09:02 +03:00
fogelito
42671400bb Remove interface 2024-08-20 10:08:07 +03:00
fogelito
04967763e7 Add Iprojects 2024-08-19 18:46:20 +03:00
fogelito
b47fd08f71 Remove interface 2024-08-19 18:26:54 +03:00
fogelito
49b659a9ae Remove interface 2024-08-19 18:01:29 +03:00
fogelito
aa5ce6200d Appwrite notifyProjects 2024-08-19 16:33:15 +03:00
fogelito
9265ba743e Add implements Projects 2024-08-19 15:19:06 +03:00
fogelito
ccc34b049a notifyProjects 2024-08-19 14:03:49 +03:00
Christy Jacob
bfa253297b Merge branch 'main' of https://github.com/appwrite/appwrite into sync-1.6-main 2024-08-13 15:36:13 +00:00
Steven Nguyen
a52626e5d3
fix(upgrade): fix migration stuck at "Starting Data Migration [...]"
The iterator was in the loop so it was always reset to null and the
same data set to be scanned.

For cases where this happened, the iterator was not empty, but the keys
returned from the scan was empty. According to [redis](https://redis.io/docs/latest/commands/scan/#number-of-elements-returned-at-every-scan-call),
this is expected behavior.

> SCAN family functions do not guarantee that the number of elements returned per call are in a given range. The commands are also allowed to return zero elements, and the client should not consider the iteration complete as long as the returned cursor is not zero.

As such, we must make sure we're using the new iterator returned to
continue scanning the keys.
2024-08-12 19:34:23 +00:00
Christy Jacob
ad43e1c419
Merge pull request #8412 from appwrite/feat-schedule-execution-improvements
feat: schedule execution improvements
2024-08-12 19:59:56 +04:00
Binyamin Yawitz
8e7cc6ed14
fix: Moving migration to be inside coroutine completely 2024-08-08 09:25:56 -04:00
loks0n
e2ed0b2693 Merge branch '1.6.x' of https://github.com/appwrite/appwrite into feat-schedule-execution-improvements 2024-08-07 17:43:07 +01:00
Binyamin Yawitz
9ed43ebbc2
Merge branch 'refs/heads/1.6.x' into feat-eldad4-coroutines
# Conflicts:
#	app/controllers/api/functions.php
#	app/controllers/general.php
#	app/init.php
#	composer.lock
#	dev/xdebug.ini
#	src/Appwrite/Utopia/Response.php
2024-08-06 14:57:05 -04:00
Binyamin Yawitz
73ecec099d
feat: adding team email and changing base to noreplay 2024-08-02 08:59:47 -04:00
Matej Bačo
bb1371c1fa Update sdks to 1.6.x 2024-08-02 14:36:29 +02:00
shimon
00fc34a2a4 get project db key by region 2024-07-31 13:23:51 +03:00
Binyamin Yawitz
b884059ecd
refactor: Making sure database names remains the same as previous versions 2024-07-29 12:29:21 -04:00
shimon
2ef358e8dc linter 2024-07-21 09:27:12 +03:00
loks0n
5a56131efa chore: binyamin review 2024-07-19 10:22:50 +01:00
Binyamin Yawitz
850c17dde1
tests: Ensure stability 2024-07-18 11:51:09 -04:00
loks0n
f02bf6ac5a feat: use coroutines delay system 2024-07-18 13:03:24 +01:00
Binyamin Yawitz
b245aab9d8
fix: Adjusting to coroutine 2024-07-17 15:59:25 -04:00
Binyamin Yawitz
19119b573d
chore: Merge and lint 2024-07-17 15:06:06 -04:00
Binyamin Yawitz
927dbc7e11
Merge branch 'refs/heads/1.6.x' into feat-eldad4-coroutines
# Conflicts:
#	app/console
#	app/controllers/api/account.php
#	app/controllers/api/functions.php
#	app/controllers/api/projects.php
#	app/controllers/api/users.php
#	app/controllers/api/vcs.php
#	app/controllers/general.php
#	app/controllers/mock.php
#	app/controllers/shared/api.php
#	app/init.php
#	composer.json
#	composer.lock
#	src/Appwrite/Platform/Tasks/Doctor.php
#	src/Appwrite/Platform/Tasks/ScheduleMessages.php
#	src/Appwrite/Platform/Workers/Builds.php
#	src/Appwrite/Utopia/Response.php
2024-07-17 14:31:13 -04:00
Binyamin Yawitz
55d4cd2aa5
refactor: response models to static 2024-07-15 10:34:59 -04:00
shimon
ada1746466 clean migration project cache 2024-07-15 12:20:01 +03:00
shimon
278fdf5823 clean migration project cache 2024-07-15 12:17:10 +03:00
Binyamin Yawitz
664c3ad466
chore: Cleanup 2024-07-04 15:04:20 -04:00
Binyamin Yawitz
a3682b72e1
Merge remote-tracking branch 'refs/remotes/origin/main' into feat-eldad4-coroutines
# Conflicts:
#	app/cli.php
#	app/console
#	app/controllers/api/projects.php
#	app/controllers/general.php
#	app/init.php
#	app/realtime.php
#	app/worker.php
#	composer.json
#	composer.lock
2024-07-03 17:03:24 -04:00
Binyamin Yawitz
92668fda0d
feat: Moving to coroutine dedicated http server 2024-07-03 16:24:04 -04:00
Torsten Dittmann
5a5609dc0a feat: 1.6.x sdks 2024-07-03 17:25:40 +02:00
Binyamin Yawitz
c5650ba5f0
fix: Ensuring new logger syntax 2024-07-03 09:29:35 -04:00
loks0n
fef22825fb chore: delete schedule if not active 2024-07-01 14:35:37 +01:00
loks0n
bb3ee81065 chore: rename metadata to data 2024-06-28 22:42:55 +01:00
loks0n
303ce498be feat: allow custom path method body 2024-06-26 12:30:23 +01:00
loks0n
878f6c86df chore: matej review p1 2024-06-26 11:01:43 +01:00
Luke B. Silver
dab0a17082
Merge branch '1.6.x' into feat-scheduled-executions 2024-06-25 17:21:44 +01:00
Binyamin Yawitz
aa4bc1c776
feat: Adapting Migrate to DI 2024-06-24 13:31:01 -04:00
Binyamin Yawitz
4ea291705a
feat: Adapting specs to DI 2024-06-24 13:30:51 -04:00
Christy Jacob
a2f27ec15f Merge branch '1.5.x' of https://github.com/appwrite/appwrite into sync-with-main 2024-06-21 13:11:35 +00:00
Steven Nguyen
72f8b2001f
fix: Disable validation for project DBs during migration
Skip the validation so that queries that typically fail can pass. This
is fine because the validation is failing on internal attributes such
as an $id for cache key with * and $id for attributes that are too long
because we prefix the $id with the internal database and collection id.
2024-06-20 23:00:49 +00:00
Binyamin Yawitz
6c26e2eb51
Merge branch 'refs/heads/main' into feat-eldad4-coroutines
# Conflicts:
#	app/cli.php
#	composer.json
#	composer.lock
2024-06-20 17:23:15 -04:00
Christy Jacob
fdf44c7bab Merge branch 'main' of https://github.com/appwrite/appwrite into sync-with-main 2024-06-20 15:26:17 +00:00
fogelito
b84fe6891c lint 2024-06-19 13:26:52 +03:00
loks0n
5f144f91ad chore: matej review 2024-06-17 14:12:02 +01:00
loks0n
83ffc41d92 chore: fmt 2024-06-17 13:46:18 +01:00
loks0n
2f0f7bf9c7 fix: test 2024-06-17 13:44:12 +01:00
loks0n
a83d125f54 chore: adjust timers 2024-06-13 13:34:10 +01:00
loks0n
1e9ced2878 test: scheduled status 2024-06-11 13:57:03 +01:00
loks0n
7e8f72d267 feat: implement scheduledAt in schedule 2024-06-11 13:39:38 +01:00
fogelito
d5025e7db3 add todo 2024-06-09 16:59:23 +03:00
Matej Bačo
b8b81a9bd1 WIP: Schedulded executions 2024-06-07 19:05:29 +00:00
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