1
0
Fork 0
mirror of synced 2024-07-03 21:50:34 +12:00
Commit graph

458 commits

Author SHA1 Message Date
Bradley Schofield a9e7b617c0 First Iteration 2021-07-22 13:49:52 +01:00
Bradley Schofield 70d4c4d7be Update functions.php 2021-07-22 11:46:05 +01:00
Bradley Schofield ca3d677596 Make untarring the code file a blocking task 2021-07-22 11:08:08 +01:00
kodumbeats 4242ba75f5 Remove unneeded continue statements 2021-07-21 15:14:18 -04:00
kodumbeats 1b051d32fe Attempt to reconnect deletes worker to db 2021-07-20 15:13:00 -04:00
Eldad A. Fux 48ad89ac27
Merge pull request #1412 from appwrite/feat-db-refactor-routes
Feat db refactor routes
2021-07-19 22:18:28 +03:00
kodumbeats 8dab66d455 Require correct dependencies in database worker 2021-07-19 14:48:03 -04:00
kodumbeats f56e2fede9 Harmonize syntax for db connections 2021-07-19 12:47:02 -04:00
kodumbeats d8dee84be1 Obtain db connection without coroutine 2021-07-19 12:46:34 -04:00
Eldad Fux bbc20dad10 Merge branch 'master' of github.com:appwrite/appwrite into fix-db-sync-with-master 2021-07-18 17:17:29 +03:00
Eldad Fux 78689f2878 Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-sync-session-collection 2021-07-16 18:00:05 +03:00
kodumbeats c04e2ba924 Remove $ from projectId attribute 2021-07-16 09:49:54 -04:00
Eldad Fux b4a65c2c1a Removed TODOs, fixed comments 2021-07-16 07:39:31 +03:00
kodumbeats 0243d6c9e1 Use refactored db for certificates worker 2021-07-15 17:14:52 -04:00
kodumbeats 88146857f7 Use refactored db for tasks worker 2021-07-14 15:59:16 -04:00
kodumbeats 30483610f8 Add missing typehint 2021-07-14 15:09:48 -04:00
kodumbeats 3d2888ac70 Remove unused functions 2021-07-13 15:24:52 -04:00
kodumbeats 2db245a607 Use new db for deletes worker 2021-07-13 14:44:45 -04:00
kodumbeats 0af70aae30 Handle deleting functions with new db 2021-07-13 12:10:42 -04:00
kodumbeats b58e773568 Handle deleting execution logs with new db 2021-07-13 12:10:20 -04:00
kodumbeats 4062715613 Handle deleting team memberships with new db 2021-07-13 12:08:52 -04:00
Torsten Dittmann 882686952e adapt to review 2021-07-13 17:18:02 +02:00
kodumbeats adb26c5356 Use Utopia authorization validator 2021-07-13 09:41:15 -04:00
kodumbeats f869e69123 Delete user documents from new db 2021-07-12 17:57:37 -04:00
kodumbeats acc4bbb052 Deletes worker no longer needed for collections 2021-07-12 12:45:30 -04:00
Torsten Dittmann 1bc3d61619 Merge branch '0.10.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-07-12 09:53:27 +02:00
Matej Baco 24f85cdc78 Added " to wrap environment name 2021-07-10 20:07:03 +02:00
Torsten Dittmann a83c22f8f2 Merge branch 'feat-265-realtime' of https://github.com/appwrite/appwrite into feat-265-realtime-usage 2021-07-07 16:58:06 +02:00
Torsten Dittmann e03ba70291 Merge branch '0.9.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-07-07 10:19:52 +02:00
kodumbeats 01555eb8ef Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-db-refactor-routes 2021-07-05 13:40:38 -04:00
Eldad A. Fux ae8583f3a2
Merge pull request #1322 from appwrite/fix-functions-worker
Fix functions worker
2021-07-05 11:10:35 +03:00
Eldad Fux 14909a04f2 Merge branch '0.9.x' of github.com:appwrite/appwrite into feat-database-indexing 2021-07-04 17:14:06 +03:00
kodumbeats e9561a68dc Get db and cache from pool via coroutine 2021-07-02 13:29:39 -04:00
kodumbeats 145203663d Pass default param where required 2021-07-02 13:29:03 -04:00
kodumbeats d68f7254be Merge branch '0.9.x' of github.com:appwrite/appwrite into feat-db-refactor-routes 2021-07-01 12:51:07 -04:00
Torsten Dittmann 81cf991695 Merge branch 'feat-265-realtime' of https://github.com/appwrite/appwrite into feat-265-realtime-usage 2021-07-01 10:46:24 +02:00
kodumbeats 1454dec6ad Define defaults for getAttribute 2021-06-30 14:33:25 -04:00
kodumbeats a912e2f20e Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-db-refactor-routes 2021-06-30 14:24:48 -04:00
Torsten Dittmann eaa3644f0f remove Realtime event class 2021-06-30 13:36:58 +02:00
Torsten Dittmann a2d0c910c1 Merge branch '0.9.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-06-29 13:34:35 +02:00
Torsten Dittmann dd47f195a0 deps(composer): updated abuse library to 0.5.0 2021-06-28 12:20:22 +02:00
Torsten Dittmann 49fa26b18c fix model for connections 2021-06-28 09:56:03 +02:00
Torsten Dittmann 44ba052fcb feat(db): improved connection pools 2021-06-28 09:19:33 +02:00
Eldad Fux 03ff844291 Merge branch '0.9.x' of github.com:appwrite/appwrite into feat-database-indexing 2021-06-26 22:47:53 +03:00
Eldad Fux 862f6721e8 Merge branch 'master' of github.com:appwrite/appwrite into 0.9.x 2021-06-26 22:06:23 +03:00
Torsten Dittmann e4be09ff19 fix audit 2021-06-23 23:31:58 +02:00
Christy Jacob fdd389a17a feat: remove var_dump() 2021-06-24 01:55:27 +05:30
Christy Jacob d5a7b58c48 feat: pass empty string instead of null in functions worker 2021-06-24 01:52:43 +05:30
Torsten Dittmann c778f47195 Merge branch '0.9.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-06-23 17:12:48 +02:00
Eldad A. Fux a2c4dac366
Merge pull request #1314 from PineappleIOnic/fix-runtime-parameter
Renamed `env` param on `/v1/functions` to `runtime`
2021-06-23 10:12:24 +03:00
Bradley Schofield aa1e713b75 Fix tests 2021-06-22 16:56:05 +01:00
Eldad Fux 4a0b9e5e89 Removed duplicated cli command 2021-06-20 16:16:01 +03:00
kodumbeats 5bcb51ab5b Clean up unused code 2021-06-18 15:17:39 -04:00
kodumbeats b1a6302311 Use database worker to remove attributes and indexes 2021-06-18 14:27:14 -04:00
kodumbeats 47d74a64be Add assertions to confirm index was created successfully 2021-06-18 13:18:27 -04:00
kodumbeats afd347ca6f Create attributes and indexes using database worker 2021-06-18 12:13:37 -04:00
kodumbeats 707f49b83f Set up database worker 2021-06-17 17:58:35 -04:00
kodumbeats b32a0e72a9 Add getters for dbForInternal and dbForExternal 2021-06-17 15:30:28 -04:00
kodumbeats e278b06e06 Organize used libraries 2021-06-17 15:30:03 -04:00
kodumbeats 90b280a014 Outline database resque worker 2021-06-17 14:22:06 -04:00
Torsten Dittmann 554d3c3557 feat(maintenance): add realtime usage stats 2021-06-16 11:35:37 +02:00
Torsten Dittmann 620980b316
Update webhooks.php 2021-06-15 08:44:06 +02:00
Eldad A. Fux b115672e0f
Merge pull request #1137 from appwrite/feat-move-deletion-to-worker
feat(teams): move membership deletion task to deletes worker
2021-06-14 23:15:41 +03:00
Eldad Fux 579a24cf73 Updated sort method before cleanup 2021-06-14 22:18:43 +03:00
Torsten Dittmann 346b04b94b sync with 0.9.x 2021-06-14 16:54:16 +02:00
Torsten Dittmann 3d896af4bb Merge branch '0.9.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-06-14 16:52:48 +02:00
Christy Jacob a93496bc8c Merge branch '0.9.x' of github.com:appwrite/appwrite into feat-move-deletion-to-worker 2021-06-14 11:05:08 +05:30
Christy Jacob 86b1cc1678 feat: merge commit 2021-06-14 10:58:49 +05:30
Christy Jacob 412d7c8735 feat: removed log 2021-06-14 10:45:41 +05:30
Christy Jacob 09a90a5631 feat: fix deletes workker bug 2021-06-14 10:41:48 +05:30
Eldad A. Fux a3053b2a2b
Merge branch 'feat-database-indexing' into feat-audit-abuse 2021-06-12 17:54:55 +03:00
Eldad A. Fux 5be8e2fc0c
Update app/workers/deletes.php
Co-authored-by: kodumbeats <brandon.leckemby@gmail.com>
2021-06-12 17:50:45 +03:00
Eldad A. Fux 6fa0fc6ac9
Update app/workers/audits.php
Co-authored-by: kodumbeats <brandon.leckemby@gmail.com>
2021-06-12 17:50:35 +03:00
Eldad Fux f2b5956f30 Merge branch '0.9.x' of github.com:appwrite/appwrite into feat-database-indexing 2021-06-12 13:08:48 +03:00
Eldad Fux 034a01af10 Updated deletes worker 2021-06-12 13:07:26 +03:00
Torsten Dittmann 665d57106e feat(server): database connection pools 2021-06-11 18:09:46 +02:00
Torsten Dittmann 3f199e1232 refactor(workers): create abstract worker class 2021-06-11 16:20:18 +02:00
Torsten Dittmann 2dcf3c2c19 Merge branch 'master' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-06-11 12:34:08 +02:00
Torsten Dittmann 21ac8c1104 fix(usage): undefined function id 2021-06-10 13:12:45 +02:00
Damodar Lohani 12e01f8092 integrate abuse and audit 2021-06-07 11:02:29 +05:45
Eldad Fux d77226e8f9 Merge branch 'master' of github.com:appwrite/appwrite into feat-database-indexing 2021-06-03 23:19:04 +03:00
Christy Jacob 404e1ace91 fix(teams): added unit test 2021-05-31 10:26:06 +05:30
Christy Jacob b7efefa40f fix(teams): added comment 2021-05-29 13:02:26 +05:30
Christy Jacob a6db680641 fix(teams): removed unused import 2021-05-29 02:29:15 +05:30
Christy Jacob b0e74b6d7b fix(teams): incorrect membership count in teams 2021-05-29 02:25:22 +05:30
Christy Jacob 5a469ab362 fix(memberships): logic for decremmenting membership count 2021-05-29 01:51:56 +05:30
Eldad Fux abd0bba8a4 Merge branch 'master' of github.com:appwrite/appwrite into feat-database-indexing 2021-05-27 01:31:29 +03:00
Torsten Dittmann 787931b45b Merge branch 'master' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-05-20 09:46:49 +02:00
Eldad Fux 63a92a768a Fixed functions webhooks trigger 2021-05-17 18:52:22 +03:00
Eldad Fux a8cc398c85 Updated functions trigger 2021-05-17 14:32:37 +03:00
Eldad Fux af470a3f1a Cleanups 2021-05-17 12:54:04 +03:00
Eldad Fux 79bf99372e Removed DB connection 2021-05-17 12:49:17 +03:00
Christy Jacob c9075278e1 feat: some test code 2021-05-13 19:12:52 +05:30
Christy Jacob 08f606d29b feat: remove unused import 2021-05-11 23:31:00 +05:30
Christy Jacob 5e6cc855c9 feat: remove logs 2021-05-11 23:29:20 +05:30
Christy Jacob 6836e3c91d feat: move membership deletion to deletes worker 2021-05-11 23:25:38 +05:30
Eldad Fux 0a3c198e00 Removed boolean check on DB operation 2021-05-09 23:34:32 +03:00
Eldad Fux f24ae683e6 Migrated functions worker 2021-05-05 00:45:41 +03:00
Torsten Dittmann 3d4c3741a2 Merge branch '0.8.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-05-04 17:21:10 +02:00
Eldad Fux 7272ca857e Fixed missing default values 2021-04-30 18:09:15 +03:00
Torsten Dittmann 6a196716b3 fix: adapt to review 2021-04-29 17:08:59 +02:00
Torsten Dittmann 3a9b6e2e76 tests: debug travis 2021-04-26 16:57:21 +02:00
Torsten Dittmann 25b03c90f8 feat: introduce appwrite/php-runtimes 2021-04-21 13:02:54 +02:00
Torsten Dittmann 3b989cf6a7 fix: anonymous account tests 2021-04-16 18:50:16 +02:00
Torsten Dittmann 2f7f8ab03d test: disabling coroutine in functions worker 2021-04-16 17:53:36 +02:00
Torsten Dittmann b7833a862b fix: disable co-routine hooks 2021-04-14 17:56:15 +02:00
Torsten Dittmann 74908f4965 fix: disable co-routine hooks 2021-04-14 17:55:08 +02:00
Torsten Dittmann 32587f9d80 tests: disable test 2021-04-14 17:09:36 +02:00
Torsten Dittmann d97e1674aa tests: fix 2021-04-14 15:07:26 +02:00
Torsten Dittmann e021b8795a fix: enable coroutine in functions worker 2021-04-14 12:40:55 +02:00
Torsten Dittmann 2e3d4fb616 Revert "Merge branch 'refactor-function-docker-exec' of https://github.com/appwrite/appwrite into feat-265-realtime"
This reverts commit 137aa98e19, reversing
changes made to c5ad66839d.
2021-04-13 09:10:07 +02:00
Torsten Dittmann 69bd907729 Merge branch '0.8.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-04-12 09:42:46 +02:00
Torsten Dittmann 9dc206051f Merge branch '0.8.x' of https://github.com/appwrite/appwrite into feat-upgrade-php-version 2021-04-10 16:25:04 +02:00
Eldad A. Fux 19e9582df2
Merge branch '0.7.x' into feat-upgrade-php-version 2021-04-05 14:56:45 +03:00
Torsten Dittmann 137aa98e19 Merge branch 'refactor-function-docker-exec' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-04-01 16:01:31 +02:00
kodumbeats de47622d03 Remove sleep and pass expected vars to logs 2021-04-01 09:31:30 -04:00
Torsten Dittmann c5ad66839d add usage stats for realtime 2021-04-01 12:59:11 +02:00
kodumbeats 28dece1adf Investigate latency of exec 2021-03-31 15:41:35 -04:00
kodumbeats 1f4529d4e4 Start execution and get status code 2021-03-31 10:58:04 -04:00
kodumbeats af6b90ba83 Testing if the exec must be started 2021-03-30 20:49:23 -04:00
kodumbeats 967d661a59 Pass Content-Length header 2021-03-30 18:13:44 -04:00
kodumbeats c8f9bbc34b Outline calls to docker socket 2021-03-30 16:36:07 -04:00
kodumbeats 456793ebd8 Added space for styling and consistency 2021-03-30 07:42:58 -04:00
kodumbeats d4b107bf1d
Merge branch '0.8.x' into refactor-event-payload-to-data 2021-03-29 15:32:14 -04:00
kodumbeats 9f8e7358d4 Refactor event $payload to $eventData 2021-03-29 14:00:10 -04:00
Torsten Dittmann 078a07d6b8 Merge branch '0.8.x' of https://github.com/appwrite/appwrite into refactor-user-tokens 2021-03-29 11:07:18 +02:00
Eldad Fux 7a400afb5b Merge branch 'master' of github.com:appwrite/appwrite into 0.8.x 2021-03-27 01:36:41 +03:00
Torsten Dittmann 9cdb7f73a2 add null safety to usage worker 2021-03-25 16:58:11 +01:00
Torsten Dittmann ccf151c36b fix usage worker without functions args 2021-03-25 16:53:02 +01:00
Torsten Dittmann d5a3879ede clean up realtime even trigger in functions worker 2021-03-25 16:41:56 +01:00
Torsten Dittmann 373b2dfc13 add realtime event to functions worker 2021-03-24 17:53:44 +01:00
Torsten Dittmann 8922db85e2 add permission to event payload 2021-03-24 17:44:37 +01:00
Torsten Dittmann 24a5536164 add permission to event payload 2021-03-24 17:39:22 +01:00
Torsten Dittmann ed9c8f53cc fix execute method name for worker rework 2021-03-24 15:22:29 +01:00
Torsten Dittmann 410fdecfb4 Merge branch '0.8.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-03-24 15:21:19 +01:00
kodumbeats 2f90b5a343 Refactor EVENT_PAYLOAD to EVENT_DATA 2021-03-24 09:36:36 -04:00
Torsten Dittmann 6b5718f32f create seperate init for workers 2021-03-24 13:13:59 +01:00
Torsten Dittmann 288d7d3701 Merge branch 'dev' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-03-24 12:11:45 +01:00
kodumbeats d6fc03ca63 Throw error only on nonzero exit code 2021-03-22 08:44:13 -04:00
kodumbeats 90833683fa Update env names for consistency 2021-03-19 11:46:03 -04:00
Torsten Dittmann 900a642255 Merge branch '0.8.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-03-19 11:48:49 +01:00
kodumbeats 132baa3e9b Pass projectId to function as env var 2021-03-18 07:46:48 -04:00
kodumbeats daeed74473
Merge branch '0.8.x' into feat-962-pass-data-to-function-execution 2021-03-18 07:14:16 -04:00
kodumbeats c04396b254 Pass userId to function 2021-03-12 14:01:58 -05:00
kodumbeats 731c87d740 Add functions.executions.update 2021-03-12 13:28:29 -05:00
kodumbeats da8984f66e Pass userId and JWT to function as env vars 2021-03-10 11:58:46 -05:00
Eldad Fux de17d0d1d3 Test worker wrapers 2021-03-10 10:08:17 +02:00
kodumbeats 59984fa6c0 Pass custom function $data to execution 2021-03-09 14:58:03 -05:00
Eldad Fux dde5a761f9 Updated dependencies 2021-02-21 23:37:22 +02:00
Eldad A. Fux 0237768ebf
Merge branch '0.7.x' into feat-upgrade-php-version 2021-02-21 23:29:37 +02:00