1
0
Fork 0
mirror of synced 2024-08-21 05:02:07 +12:00
Commit graph

395 commits

Author SHA1 Message Date
Matej Bačo
a52ff7372a Add Open Runtimes Executor 2022-11-08 08:49:45 +00:00
Christy Jacob
6bfb76b620 Merge branch 'master' of https://github.com/appwrite/appwrite into feat-db-pools 2022-10-18 07:57:34 +00:00
Eldad Fux
7484656be3 Merge branch 'master' of https://github.com/appwrite/appwrite into feat-db-pools-eldad 2022-10-15 22:08:16 +03:00
Torsten Dittmann
65b4c9f931 fix: default value for optional function vars 2022-09-30 11:52:35 +02:00
Christy Jacob
3b802e9ba6 Merge branch 'master' of github.com:appwrite/appwrite into feat-db-pools 2022-09-27 20:59:50 +05:30
Matej Bačo
89afad1a32 Replace nulls with empty strings 2022-09-19 11:58:41 +00:00
Matej Bačo
20bbbfc493 Merge remote-tracking branch 'origin/0.16.x' into fix-function-scheduling 2022-09-13 20:14:42 +00:00
Matej Bačo
a315f43039 Fix functon scheduling loop logic, and double-loop prevention 2022-09-11 12:20:26 +00:00
Christy Jacob
cb50220b60 feat: rename time attribute to duration 2022-09-09 16:02:04 +04:00
Matej Bačo
1e95346205 PR review changes 2022-08-30 12:30:52 +00:00
Matej Baco
8513bb2dbe Merge branch 'feat-list-endpoints-queries' into feat-variables-api 2022-08-25 11:14:42 +02:00
Jake Barnby
625608804e Merge remote-tracking branch 'origin/0.16.x' into refactor-permissions-inc-console-fix
# 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
#	app/controllers/api/databases.php
#	app/controllers/api/storage.php
#	app/workers/builds.php
#	src/Appwrite/Stats/Usage.php
#	src/Appwrite/Usage/Calculators/Database.php
2022-08-25 18:21:15 +12:00
Bradley Schofield
0d81918685 Merge remote-tracking branch 'origin/refactor-permissions-inc-console-fix' into feat-variables-api 2022-08-19 11:25:39 +01:00
Jake Barnby
cb6fc7f618 Merge branch 'origin/datetime-attributes' into refactor-permissions-inc-console-fix
# Conflicts:
#	.gitignore
#	app/config/collections.php
#	app/controllers/api/account.php
#	app/controllers/api/databases.php
#	app/controllers/api/storage.php
#	app/controllers/api/users.php
#	composer.lock
#	tests/e2e/Services/Account/AccountCustomClientTest.php
2022-08-19 16:49:34 +12:00
Jake Barnby
7019be987c Merge remote-tracking branch 'origin/0.16.x' into origin/datetime-attributes
# 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
#	app/controllers/api/account.php
#	app/controllers/api/users.php
#	app/controllers/shared/api.php
#	app/workers/deletes.php
#	composer.lock
#	docker-compose.yml
#	phpunit.xml
#	src/Appwrite/Event/Delete.php
2022-08-19 16:20:19 +12:00
Matej Bačo
7c2fa12414 Fix getting function ID 2022-08-17 13:42:06 +00:00
Matej Bačo
c93b7aa452 Fix event-triggered multi-execution 2022-08-17 13:34:52 +00:00
Damodar Lohani
a1e6f7bdf4 Merge branch 'feat-audits-label' of https://github.com/appwrite/appwrite into feat-usage-updates 2022-08-17 09:34:40 +00:00
Jake Barnby
77a28a2de7 Don't use ID helper with existing ID's 2022-08-15 23:24:31 +12:00
Jake Barnby
613a0f8006 ID and test fixes 2022-08-15 02:22:38 +12:00
Jake Barnby
9c260164ef Merge remote-tracking branch 'origin/feat-datetime-attributes-with-database-query-update' into refactor-permissions-inc-queries-update-datetime-fixes
# Conflicts:
#	app/controllers/api/databases.php
#	app/controllers/api/storage.php
#	app/controllers/general.php
#	app/controllers/shared/api.php
#	composer.json
#	composer.lock
2022-08-14 23:46:34 +12:00
Jake Barnby
6a5de3e0b6 Merge remote-tracking branch 'origin/fix-datetime-attributes' into refactor-permissions-inc-queries-update-datetime-fixes
# Conflicts:
#	app/config/collections.php
#	app/controllers/api/databases.php
#	app/controllers/api/projects.php
#	app/controllers/api/teams.php
#	composer.json
#	composer.lock
#	tests/e2e/Services/Account/AccountBase.php
#	tests/e2e/Services/Databases/DatabasesBase.php
#	tests/e2e/Services/Functions/FunctionsCustomServerTest.php
#	tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
#	tests/e2e/Services/Storage/StorageBase.php
#	tests/e2e/Services/Storage/StorageCustomClientTest.php
#	tests/e2e/Services/Storage/StorageCustomServerTest.php
#	tests/e2e/Services/Teams/TeamsBase.php
#	tests/e2e/Services/Webhooks/WebhooksBase.php
#	tests/e2e/Services/Webhooks/WebhooksCustomClientTest.php
#	tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php
#	tests/unit/Auth/AuthTest.php
2022-08-14 23:11:05 +12:00
Jake Barnby
b007acfa95 ID updates 2022-08-14 22:33:36 +12:00
Steven
610ec1a6a4 Update database query syntax 2022-08-14 05:44:55 +00:00
Jake Barnby
fe5d3a1892 Use permission helpers 2022-08-14 17:21:11 +12:00
Bradley Schofield
237f5264d9 Fix vars exception, change cachedoc usage, 2022-08-13 20:18:48 +01:00
Christy Jacob
d2bf8b25de feat: update db pools 2022-08-13 13:27:04 +05:30
Damodar Lohani
cd9efec4d2 refactor 2022-08-11 06:49:20 +00:00
Damodar Lohani
63371ce76e functions usage stats using route labels 2022-08-11 05:25:39 +00:00
Bradley Schofield
15fbe86124 Fix variables not being correctly used 2022-08-10 14:43:05 +01:00
Damodar Lohani
391d1127ca update container to accept new response format 2022-08-10 07:19:07 +00:00
Damodar Lohani
bce998cb53 update imports and fix database usage 2022-08-09 06:28:38 +00:00
Jake Barnby
ce38e74ba2 Update remaining services to new permissions 2022-08-02 21:21:53 +12:00
fogelito
45ac40cc85 change function names 2022-07-13 17:02:49 +03:00
fogelito
f384a3352b change class from database:: to dateTime:: 2022-07-12 16:32:39 +03:00
fogelito
10ca7de6ba workers functions 2022-07-07 12:54:46 +03:00
fogelito
e0f2d59864 scheduleNext + schedulePrevious functions changes 2022-07-07 12:26:30 +03:00
fogelito
73a19614e1 functions api 2022-07-02 17:38:53 +03:00
fogelito
d405f74c54 worker change for time 2022-07-02 09:01:54 +03:00
Torsten Dittmann
511898afc9 Merge branch '0.15.x' of https://github.com/appwrite/appwrite into origin/feat-internal-id 2022-06-20 15:34:27 +02:00
Torsten Dittmann
3aa49f773a fix: all of the workers 2022-06-20 11:22:53 +02:00
Torsten Dittmann
4b3a90bb54 Revert "fix: workers"
This reverts commit c89b62a7b4.
2022-06-20 09:37:00 +02:00
Torsten Dittmann
c89b62a7b4 fix: workers 2022-06-19 12:54:47 +02:00
Torsten Dittmann
bbdf70ee90 feat: use new $createdAt and $updatedAt attributes 2022-06-15 14:46:52 +02:00
Torsten Dittmann
eaecea05f9 fix: leftovers 2022-05-18 16:47:44 +02:00
Torsten Dittmann
bef1a902ee fix: scheduled functions execution 2022-05-18 16:31:29 +02:00
Torsten Dittmann
6c9e17ec74 Merge branch '0.14.x' of https://github.com/appwrite/appwrite into feat-use-build-timeout 2022-05-12 19:57:20 +02:00
Torsten Dittmann
4e79d5fb67 fix: remove array merge for documents 2022-05-10 14:20:51 +02:00
Torsten Dittmann
fdb64de616 docs: add comments to events passing 2022-05-09 14:36:29 +02:00
Torsten Dittmann
3692ff0bf6
Merge branch '0.14.x' into feat-use-build-timeout 2022-05-08 20:42:36 +02:00
Torsten Dittmann
2cc2a40377 Merge branch '0.14.x' of https://github.com/appwrite/appwrite into feat-new-event-model 2022-05-08 15:11:14 +02:00
Bradley Schofield
d981c8f5e5 Rename 'stdout' in executions to 'response' 2022-04-25 10:12:58 +01:00
Torsten Dittmann
0552f92d50 Merge branch '0.14.x' of https://github.com/appwrite/appwrite into feat-new-event-model 2022-04-19 15:16:43 +02:00
Torsten Dittmann
7790d72c0c fix: realtime, tests and webhooks 2022-04-18 18:21:45 +02:00
Torsten Dittmann
8ec435ed1f sync: changes 2022-04-17 22:34:32 +02:00
Andrey
e37d1be6a6 * Move default host value from code to env variables
* Add validation for host value
2022-04-13 18:15:25 +02:00
Torsten Dittmann
87b8fc3c41 feat: event classes for different cases 2022-04-13 14:39:31 +02:00
Andrey
ade4024593 Added configurable host for Executor service:
* Add `_APP_EXECUTOR_HOST` env variable.
* Use `_APP_EXECUTOR_HOST` (or fallback to default) as host value to Executor service.
2022-04-11 20:45:47 +02:00
Christy Jacob
7a2614ed6d feat: update test message 2022-03-15 18:53:20 +04:00
Christy Jacob
13b28e0051 feat: update test message 2022-03-15 18:51:32 +04:00
Christy Jacob
ee056e582f feat: function execution time for failed executions 2022-03-15 17:06:05 +04:00
Christy Jacob
b4ee82ac88 feat: realtime execution status 2022-02-28 16:24:35 +04:00
Christy Jacob
d38a6907d2 feat: review comments 2022-02-24 18:31:30 +04:00
Christy Jacob
123c47fb9a feat: handle build and execution errors 2022-02-15 21:39:03 +04:00
Christy Jacob
0276d94ef1 feat: add remaninig endpoints 2022-02-13 02:34:16 +04:00
Christy Jacob
f18f96e816 feat: fix tests 2022-02-10 00:20:28 +04:00
Christy Jacob
7735b67a3f feat: fix tests 2022-02-06 15:19:33 +04:00
Christy Jacob
1b0a02e20d feat: fix executor issues 2022-02-05 23:49:57 +04:00
Christy Jacob
7f1df839ec feat: remove database dependencies from the create execution endpoint 2022-02-03 04:05:03 +04:00
Christy Jacob
c1d71904e8 Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into feat-add-builds-worker 2022-01-26 16:59:24 +04:00
Christy Jacob
ebc55e7e8e feat: refactor 2022-01-26 03:45:41 +04:00
Christy Jacob
3685d8ef31 Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into feat-rename-tags 2022-01-25 21:02:48 +04:00
Christy Jacob
a93e8f3b0b feat: update deletes,usage and functions worker 2022-01-25 03:19:01 +04:00
Eldad Fux
029e1dc6f6 Hiding port 8080 2022-01-23 19:21:23 +02:00
Eldad Fux
0219c92cb0 Review 2022-01-23 18:34:18 +02:00
Bradley Schofield
e2c4272ebd Merge branch 'master' into the-executor-poc 2022-01-05 13:38:51 +00:00
Matej Baco
1c18ddc1bb Merge branch 'feat-database-indexing' into feat-improve-error-logging 2021-12-31 14:40:14 +01:00
Torsten Dittmann
693b8c7185 fix: replace internal and external database with project database 2021-12-27 13:45:23 +01:00
Torsten Dittmann
d1f901e7a8 feat: use arrow functions on authorization skip method 2021-12-16 12:30:43 +01:00
Bradley Schofield
885f57438d Fix Tests 2021-12-07 10:42:33 +00:00
Matej Bačo
8f1fb9d330
Merge branch 'master' into feat-improve-error-logging 2021-12-06 14:16:39 +01:00
Torsten Dittmann
f04cb72cfb Merge branch 'master' of https://github.com/appwrite/appwrite into feat-db-main-rebase 2021-12-01 14:19:41 +01:00
Matej Baco
49e9baf383 Code review updates 2021-11-24 10:38:32 +01:00
Matej Baco
56402c78fe Implemented logging for HTTP, Realtime, Workers 2021-11-23 15:24:25 +01:00
Bradley Schofield
c348a71407 Get tests passing again 2021-11-15 02:18:53 +00:00
Bradley Schofield
7649a2c677 Make new database work with the executor
+ New DB now works with executor
+ events now work with new execution model
2021-10-14 10:37:00 +01:00
SaintMalik
32e513012e doc: Fix typos 2021-10-12 19:22:41 +01:00
Bradley Schofield
dd5bdda000 Merge remote-tracking branch 'upstream/feat-database-indexing' into the-executor-poc 2021-10-11 14:59:34 +01:00
Torsten Dittmann
8685c09c13 fix functions and users 2021-10-08 10:39:37 +02:00
Torsten Dittmann
1ed41f52d3 Merge branch 'master' of https://github.com/appwrite/appwrite into sync-realtime-with-db-refactor 2021-09-30 12:32:10 +02:00
Bradley Schofield
715a8ac729 Add authentication between appwrite and the executor
+ Add authentication between appwrite and the executor
+ Add built status and build stdout/stderr to tag for later use
+ Changes to executor to implement new build stages
2021-09-22 11:03:04 +01:00
Bradley Schofield
da8b4bb9f9 Add build step and more function cleanup 2021-09-13 11:50:45 +01:00
Torsten Dittmann
d2f425e67d fix(functions): utf-8 encode stdout and stderr 2021-09-09 13:06:00 +02:00
Bradley Schofield
66d8b0599c Merge branch 'master' into the-executor-poc 2021-09-07 12:51:25 +01:00
Bradley Schofield
bca326dc8d Improvements to executor
- Executor now loads runtimes from php-runtimes package
- Executor now handles timeouts correctly
- Executor can now shutdown and remove containers before shutting down itself preventing a `docker-compose stop` failure due to active network endpoints.
- Fixed a issue with JWT's not working
- Improved general executor reliability
- Tests now pass!
2021-09-06 01:37:20 +01:00
Torsten Dittmann
17d2a4bc0a
Merge pull request #1577 from TorstenDittmann/fix-functions-env-variable
fix(functions): environment variables
2021-09-03 14:06:23 +02:00
Torsten Dittmann
37c33c3c7b fix(functions): environment variables 2021-09-03 13:41:42 +02:00
Torsten Dittmann
be1e3acfca fix(functions): properly cast cpu counts variable 2021-09-02 20:59:58 +02:00
Torsten Dittmann
9bc3412649 Merge branch '0.10.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-09-02 09:44:36 +02:00
Torsten Dittmann
424e153b80 refactor(workers): refactor the workers 2021-09-01 11:09:04 +02:00
Torsten Dittmann
c85cfb66d2 Merge branch '0.10.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-09-01 09:33:50 +02:00
Torsten Dittmann
38e1624636 fix(functions): flag execution errors as failed 2021-08-31 20:52:47 +02:00
Bradley Schofield
f5e1ce01b7 More Changes 2021-08-27 11:55:22 +01:00
Bradley Schofield
48d57aa38e aaaaa 2021-08-27 10:21:28 +01:00
Bradley Schofield
82b7e18033 First Test 2021-08-24 10:32:27 +01:00
Torsten Dittmann
3efbad9659 Merge branch '0.9.x' of https://github.com/appwrite/appwrite into feat-265-realtime 2021-08-16 11:10:48 +02:00
Bradley Schofield
fa15b37433 Add defaults for environment variables 2021-08-16 09:19:09 +01:00
Bradley Schofield
054eadc6f6 Implement Suggestions
+ Added documentation for environment variables
+ Added changelog
+ Changed how we handle a error while removing a container that may or may not exist during execution
2021-08-13 15:16:05 +01:00
Bradley Schofield
44ac60a70a Implement Suggestions 2021-08-13 10:00:20 +01:00
Damodar Lohani
56e3a2bd6c depricate worker.php, use init.php instead 2021-08-13 14:24:46 +05:45
Bradley Schofield
5080160f09 Revert "Update Tests"
This reverts commit bd537e6992.
2021-08-13 09:34:21 +01:00
Bradley Schofield
bd537e6992 Update Tests 2021-08-13 09:32:27 +01:00
Bradley Schofield
eb3db0ddae Update functions.php 2021-08-11 14:24:33 +01:00
Bradley Schofield
80fef728b4 Implement UNIX Exit Code suggestion 2021-08-11 14:23:37 +01:00
Bradley Schofield
1a8bed396a Fix env variable bug 2021-08-11 13:44:31 +01:00
Damodar Lohani
35394e5849 Merge branch 'feat-database-indexing' into feat-depricate-usage-worker 2021-08-08 12:18:31 +05:45
Damodar Lohani
fa46f14092 refactor the class 2021-08-08 12:16:20 +05:45
Damodar Lohani
ffe9c99157 new statsd class and implementation 2021-08-08 11:21:08 +05:45
Bradley Schofield
4c451c0835 Add Suggestions 2021-08-04 11:19:20 +01:00
Bradley Schofield
9676f34d93 Add suggestions 2021-08-03 11:17:22 +01:00
Damodar Lohani
23caa62550 remove unused params 2021-08-02 15:14:53 +05:45
Damodar Lohani
bc4fede216 refactor usage update and fix functions worker 2021-08-02 12:41:12 +05:45
Eldad Fux
95dacecf3a Removed the tasks service 2021-07-27 17:16:12 +03:00
Eldad A. Fux
f81227cad0
Merge pull request #1413 from appwrite/fix-retry-init-db-connection
fix(refactor-db): retry initial database connection on failure
2021-07-26 19:17:24 +03:00
kodumbeats
51449841bf Refactor db methods to worker class instead of worker script 2021-07-25 19:14:19 -04:00
Eldad Fux
f909b9da1c Merge branch 'master' of github.com:appwrite/appwrite into feat-database-indexing 2021-07-25 14:11:23 +03:00
Bradley Schofield
01f375b17d Merge branch 'master' into orchestration-api-test 2021-07-23 10:28:32 +01:00
Bradley Schofield
a4875cfd22 Fix Native Labels 2021-07-23 10:05:59 +01:00
Bradley Schofield
b5ab777cad Implement new native filters 2021-07-23 09:48:51 +01:00
Bradley Schofield
e0ab558f90 Update functions.php 2021-07-22 14:54:23 +01:00
Bradley Schofield
4d2f5428a2 Update to use protected container class 2021-07-22 14:53:30 +01:00
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
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
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
b4a65c2c1a Removed TODOs, fixed comments 2021-07-16 07:39:31 +03:00
Torsten Dittmann
882686952e adapt to review 2021-07-13 17:18:02 +02: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
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
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
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
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