Commit graph

647 commits

Author SHA1 Message Date
Matej Bačo
7ac83d7a9f Merge branch '1.6.x' into feat-sites 2025-02-06 14:23:50 +01:00
Fabian Gruber
273ea0abcc fix(schedule-tasks): revert back to direct pool usage 2025-02-06 13:18:18 +01:00
Damodar Lohani
8da5bfccb6 fix format and test 2025-02-06 03:58:46 +00:00
Damodar Lohani
cf66bee925 Merge remote-tracking branch 'origin/1.6.x' into feat-logs-db 2025-02-05 09:49:11 +00:00
Fabian Gruber
a16f26d378 feat: add AMQP queues 2025-02-05 10:29:33 +01:00
Damodar Lohani
99f23ff25a refactor 2025-02-05 09:27:36 +00:00
Jake Barnby
5be62c22e0
Move specification into SDK namespace 2025-02-05 00:08:56 +13:00
Matej Bačo
f51900a69c Fix more tests 2025-02-03 13:43:35 +01:00
Matej Bačo
f9430d4d20 Merge branch '1.6.x' into fix-site-tests 2025-02-03 10:05:30 +01:00
Damodar Lohani
3fde465dfa Update stats resources task container 2025-01-30 04:15:03 +00:00
Damodar Lohani
c2ce273065 update stats resources task to use new queue 2025-01-30 04:10:35 +00:00
Damodar Lohani
21097041f0 refactor: rename usage count to stats resources 2025-01-30 03:50:27 +00:00
Damodar Lohani
9955b6b61c usage count container and events 2025-01-27 04:33:33 +00:00
Bradley Schofield
e7b119abae Merge branch '1.6.x' into feat-1.6.x-new-sdk-class 2025-01-20 14:21:26 +09:00
Christy Jacob
e4efaf1efa fix: maintenance job missing type 2025-01-17 22:53:31 +05:30
Christy Jacob
458b7bb877 Merge branch '1.6.x' of github.com:appwrite/appwrite into chore-optimise-events-payloads 2025-01-17 10:42:16 +05:30
Bradley Schofield
20e87cb82f Run Linter 2025-01-17 13:39:16 +09:00
Bradley Schofield
95dcb67747 Implement new SDK Class on 1.6.x 2025-01-17 13:31:39 +09:00
Christy Jacob
e8f97baf26 fix: incorrect project payloads 2025-01-16 13:14:47 +05:30
Steven Nguyen
a502b1c566
Merge branch '1.6.x' into feat-apns-content-available 2024-12-31 22:56:15 +00:00
loks0n
769772a0a8 fix: remove abuse delete trigger 2024-12-27 20:30:03 +00:00
Damodar Lohani
e24cce4e48 refactor 2024-12-17 14:19:26 +00:00
Damodar Lohani
2fb9ebe71d update project accessed at in schedules 2024-12-17 14:05:49 +00:00
Christy Jacob
75b42e134a chore: replace occurrences of dbForConsole to dbForPlatform 2024-12-12 14:30:26 +04:00
Jake Barnby
d80731e7db
Allow pushing SDK to new branches 2024-12-11 19:14:10 +13:00
Fabian Gruber
3a9ba8a6ad feat: move certificate generation to Adapter 2024-11-26 13:54:52 +01:00
Matej Bačo
c8cf645414 Merge branch '1.6.x' into feat-sites 2024-11-20 12:07:13 +01:00
Torsten Dittmann
9901c781b7 Merge branch 'main' of https://github.com/appwrite/appwrite into sync-1.6.x 2024-11-20 11:31:52 +01:00
Torsten Dittmann
8e02115828
ci: console sdk previews (#8990) 2024-11-15 13:27:46 +01:00
Khushboo Verma
2ad0428727 Merge 1.6.x into feat-sites 2024-11-13 13:18:21 +05:30
Fabian Gruber
b410b17ba6 feat: redis-cluster support 2024-11-06 12:27:03 +01:00
Christy Jacob
e6fb296666 feat: update API endpoint in the code examples 2024-11-06 12:07:14 +01:00
Khushboo Verma
4c1881324e Use compute vars for functions and sites 2024-10-27 17:22:45 +01:00
Jake Barnby
8bc37026cd
Revert "Feat adding coroutines" 2024-10-08 20:54:40 +13:00
Binyamin Yawitz
c06948b266
fixes: phpstan 2024-10-07 12:57:07 -04:00
Binyamin Yawitz
16835f96bf
chore: merge 2024-10-07 11:02:18 -04:00
Binyamin Yawitz
579d3d7f14
chore: lint & updates 2024-10-01 10:39:43 -04:00
Binyamin Yawitz
d14edf4207
reverting: to set coroutines as head 2024-10-01 10:30:47 -04:00
fogelito
6f5b144e70 Add info resourceType 2024-09-22 14:15:01 +03:00
fogelito
8213b37cf4 Add info resourceType 2024-09-22 13:29:42 +03:00
fogelito
0eb0054f38 Add info resourceType 2024-09-22 10:50:13 +03:00
fogelito
4d24c08220 Merge branch '1.6.x' of https://github.com/appwrite/appwrite into migrations-backups
# Conflicts:
#	src/Appwrite/Platform/Tasks/ScheduleBase.php
2024-09-22 10:44:06 +03:00
Binyamin Yawitz
5ffca0f6fa
fix: typo in scheduler base 2024-09-20 12:37:45 -04:00
Binyamin Yawitz
5512340cdd
Revert "Feat eldad4 coroutines" 2024-09-20 12:30:05 -04:00
Binyamin Yawitz
d2aaa99076
Revert "Fix typo in scheduler base" 2024-09-20 12:26:17 -04:00
Binyamin Yawitz
0702d7ec9c
chore: merge 2024-09-19 14:25:05 -04:00
Binyamin Yawitz
fe7f39d7a5
fix: reviews 2024-09-19 13:48:15 -04:00
fogelito
2517605cd1 Add this 2024-09-19 18:45:00 +03:00
fogelito
d6d7cf1d9f Pull 1.6.x 2024-09-19 18:27:02 +03:00
fogelito
b519f5e23a Merge branch '1.6.x' of https://github.com/appwrite/appwrite into migrations-backups
# Conflicts:
#	composer.json
#	composer.lock
#	src/Appwrite/Platform/Tasks/ScheduleBase.php
#	src/Appwrite/Specification/Format/Swagger2.php
2024-09-19 18:19:45 +03:00
Binyamin Yawitz
1581a8c654
chore: merge 2024-09-18 09:28:55 -04:00
Binyamin Yawitz
de95bf677e
fix: removing unneeded coroutine 2024-09-16 15:05:20 -04:00
Binyamin Yawitz
e246005c51
chore: merge 2024-09-16 11:17:40 -04:00
Matej Bačo
c4991b9941 Merge remote-tracking branch 'origin/1.6.x' into fix-scheduled-executions 2024-09-14 10:28:30 +00:00
Matej Bačo
d25ac4998a Merge remote-tracking branch 'origin/1.6.x' into chore-prettyprint-specs 2024-09-10 10:50:26 +00:00
Matej Bačo
8a2083feb5 Merge branch '1.6.x' of https://github.com/appwrite/appwrite into fix-scheduled-executions 2024-09-10 10:38:01 +00:00
Christy Jacob
e744a7e022
Merge pull request #8641 from appwrite/fix-scheduler-across-projects
Fix: cross-project scheduler stability
2024-09-10 14:23:26 +04:00
Binyamin Yawitz
ef1380bf61
chore: merge 2024-09-09 14:52:47 +02:00
Jake Barnby
af7bd705f4
Update console SDK version 2024-09-09 19:17:47 +12:00
Matej Bačo
8160e39154 Prettyprint specs 2024-09-08 07:24:17 +00:00
Matej Bačo
3aa2bd6aa3 Use schedule ID as unique memory cache key 2024-09-07 17:31:17 +00:00
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