1
0
Fork 0
mirror of synced 2024-07-09 00:16:13 +12:00
Commit graph

518 commits

Author SHA1 Message Date
Christy Jacob 509f9083c9 Merge branch '0.16.x' of github.com:appwrite/appwrite into feat-reorder-endpoints-2 2022-08-15 12:43:24 +05:30
Jake Barnby 613a0f8006 ID and test fixes 2022-08-15 02:22:38 +12:00
Eldad A. Fux d641fbb635
Merge pull request #3588 from appwrite/feat-simplify-exceptions
Simplify Exception Creation
2022-08-14 15:27:52 +03: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
Damodar Lohani 5120158bdb Merge branch 'feat-audits-label' of https://github.com/appwrite/appwrite into feat-usage-updates 2022-08-14 11:39:41 +00: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
Christy Jacob 26634cdf0b feat: linter fix 2022-08-14 15:52:19 +05:30
Damodar Lohani d9745b3477 fix execution list UI 2022-08-14 09:23:41 +00:00
Damodar Lohani 3ce8565513 hide execution stdout and stderr on client side response 2022-08-14 08:54:11 +00:00
Damodar Lohani 734454ee85 hiding stdout and stderr on client execution response 2022-08-14 08:44:17 +00:00
Christy Jacob ebb9af1eb2 feat: re-order functions endpoint 2022-08-14 13:56:11 +05:30
Christy Jacob a5bc0a61ca feat: exceptions on more files 2022-08-14 12:26:12 +05:30
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
shimon cc9dad6bb8 Tidy up 2022-08-13 10:34:03 +03:00
Bradley Schofield cb87c248d5 Rebuild Specs, SDKs and start working on subqueries 2022-08-12 16:51:24 +01:00
Bradley Schofield 7af92b3b30 Fix Endpoint Order 2022-08-12 15:10:41 +01:00
Jake Barnby d2b9102f84 Merge remote-tracking branch 'origin/0.16.x' into refactor-permissions-inc-console-fix
# Conflicts:
#	tests/e2e/Services/Databases/DatabasesBase.php
#	tests/e2e/Services/Databases/DatabasesCustomServerTest.php
2022-08-13 00:54:27 +12:00
Jake Barnby c104860448 Use roles validator for function execution 2022-08-13 00:23:58 +12:00
Jake Barnby 1d7c25b561 Single role per permissions entry 2022-08-12 22:36:59 +12:00
Damodar Lohani cd9efec4d2 refactor 2022-08-11 06:49:20 +00:00
Damodar Lohani 1753dbe8b0 fix formatting 2022-08-11 06:18:37 +00:00
Damodar Lohani 63371ce76e functions usage stats using route labels 2022-08-11 05:25:39 +00:00
Damodar Lohani 73f675aebe Merge branch 'feat-audits-label' of https://github.com/appwrite/appwrite into feat-usage-updates 2022-08-11 01:15:29 +00:00
Bradley Schofield 15fbe86124 Fix variables not being correctly used 2022-08-10 14:43:05 +01:00
shimon d31c23d25a Merge branch '0.16.x' of github.com:appwrite/appwrite into feat-audits-label
 Conflicts:
	app/controllers/api/databases.php
2022-08-10 12:18:05 +03:00
Damodar Lohani 391d1127ca update container to accept new response format 2022-08-10 07:19:07 +00:00
Damodar Lohani 16fe9e241a Merge branch 'feat-audits-label' of https://github.com/appwrite/appwrite into feat-usage-updates 2022-08-10 01:49:27 +00:00
Bradley Schofield 42e0895dad Fix Tests 2022-08-09 16:29:24 +01:00
shimon d2519c9a5b addressing comments 2022-08-09 17:38:54 +03:00
Bradley Schofield 6882ffaa00 Merge branch '0.16.x' into feat-variables-api 2022-08-09 13:37:24 +01:00
Bradley Schofield d4da9d823b Add API Descriptions and use APP_LIMIT_COUNT 2022-08-09 13:11:50 +01:00
Bradley Schofield c4d453b738 Update Variables API Signature 2022-08-09 12:56:45 +01:00
fogelito 82a240998b Merge branch '0.16.x' of github.com:appwrite/appwrite into origin/datetime-attributes
 Conflicts:
	composer.lock
	src/Appwrite/Stats/Usage.php
2022-08-09 14:20:26 +03:00
Damodar Lohani bce998cb53 update imports and fix database usage 2022-08-09 06:28:38 +00:00
Jake Barnby e8af744c97 More write ref updates 2022-08-05 18:00:56 +12:00
Bradley Schofield f62ad19ecd Fix old function tests 2022-08-03 13:32:50 +00:00
Bradley Schofield 452a8512c4 Add Tests 2022-08-02 16:11:15 +00:00
Bradley Schofield 9d9935a625 First working draft of new UI 2022-08-02 10:05:58 +00:00
Jake Barnby ce38e74ba2 Update remaining services to new permissions 2022-08-02 21:21:53 +12:00
Bradley Schofield 66fcbee0df Start working on adding UI 2022-08-01 15:13:47 +00:00
Damodar Lohani f555568d50
Update app/controllers/api/functions.php
Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
2022-07-28 12:40:14 +05:45
Bradley Schofield 3c808ca895 Fix problem with Exception class 2022-07-26 15:56:59 +01:00
Bradley Schofield 96c6c0ff00 Migrate all exceptions to new signature 2022-07-26 15:24:32 +01:00
Matej Bačo 183a18f618 Implement functions CRUD operations 2022-07-20 07:18:49 +00:00
Bradley Schofield 35c546782f Change more status codes to 202 2022-07-18 10:43:51 +01:00
Bradley Schofield 88064cdbaf Merge branch 'master' into fix-update-status-codes 2022-07-18 10:37:07 +01:00
Damodar Lohani f9d62599a4 fix get usage on Functions 2022-07-17 10:43:10 +00:00
Damodar Lohani dbd941f464 fix param 2022-07-17 10:39:44 +00:00
Damodar Lohani ff8e730b8a new function usages endpoint 2022-07-17 10:30:58 +00:00
Torsten Dittmann 5604a6837f Merge branch '0.16.x' of https://github.com/appwrite/appwrite into origin/datetime-attributes 2022-07-14 14:14:05 +02:00
Bradley Schofield 5f0032bb7f Use 202 when resources are created asyncronously 2022-07-14 10:52:55 +01:00
fogelito 45ac40cc85 change function names 2022-07-13 17:02:49 +03:00
Matej Bačo d93ac31b4e Fix function usage missing 2022-07-13 08:57:57 +00:00
fogelito f384a3352b change class from database:: to dateTime:: 2022-07-12 16:32:39 +03:00
fogelito 7e08575245 builds, stats 2022-07-11 18:12:41 +03:00
Matej Bačo aae7ec6146 Upgrade to use new permissiosn validator features 2022-07-10 17:25:27 +00: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
Jake Barnby d13afe0b2e Fix get deployment response type 2022-07-07 16:51:37 +12:00
fogelito 73a19614e1 functions api 2022-07-02 17:38:53 +03:00
fogelito cff5bab403 functions api 2022-07-02 17:25:44 +03:00
Torsten Dittmann e83cf382fd fix: all sdks and specs 2022-06-28 13:21:28 +02:00
Torsten Dittmann ef1daf8f1c Merge branch 'master' of https://github.com/appwrite/appwrite into 0.15.x 2022-06-24 14:15:42 +02:00
Damodar Lohani 2750e60768
fix for ruby and go SDK as file params seems to be string 2022-06-24 15:24:44 +05:45
Damodar Lohani 8f14f5aa21
Database layer (#3338)
* database response model

* database collection config

* new database scopes

* database service update

* database execption codes

* remove read write permission from database model

* updating tests and fixing some bugs

* server side tests are now passing

* databases api

* tests for database endpoint

* composer update

* fix error

* formatting

* formatting fixes

* get database test

* more updates to events and usage

* more usage updates

* fix delete type

* fix test

* delete database

* more fixes

* databaseId in attributes and indexes

* more fixes

* fix issues

* fix index subquery

* fix console scope and index query

* updating tests as required

* fix phpcs errors and warnings

* updates to review suggestions

* UI progress

* ui updates and cleaning up

* fix type

* rework database events

* update tests

* update types

* event generation fixed

* events config updated

* updating context to support multiple

* realtime updates

* fix ids

* update context

* validator updates

* fix naming conflict

* fix tests

* fix lint errors

* fix wprler and realtime tests

* fix webhooks test

* fix event validator and other tests

* formatting fixes

* removing leftover var_dumps

* remove leftover comment

* update usage params

* usage metrics updates

* update database usage

* fix usage

* specs update

* updates to usage

* fix UI and usage

* fix lints

* internal id fixes

* fixes for internal Id

* renaming services and related files

* rename tests

* rename doc link

* rename readme

* fix test name

* tests: fixes for 0.15.x sync

Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
2022-06-22 12:51:49 +02:00
Torsten Dittmann bbdf70ee90 feat: use new $createdAt and $updatedAt attributes 2022-06-15 14:46:52 +02:00
Everly Precia Suresh 95615416a6 formate function.php 2022-05-31 13:50:27 +00:00
Everly Precia Suresh 318df0d3f3 Merge branch 'master' of https://github.com/appwrite/appwrite into introduce-formatter-and-linter 2022-05-31 11:55:30 +00:00
Everly Precia Suresh eb6b8d408a update refactor 2022-05-24 15:04:28 +00:00
Everly Precia Suresh 07bf57b161 update refactor 2022-05-24 14:57:12 +00:00
Everly Precia Suresh e2bd17d253 update refactor 2022-05-24 14:28:27 +00:00
Everly Precia Suresh 35e762453b pull latest 2022-05-24 14:04:55 +00:00
Everly Precia Suresh 107513c4c8 refactor func 2022-05-24 13:56:57 +00:00
Everly Precia Suresh 19300ccdd7 format files in app, src, tests 2022-05-23 14:54:50 +00:00
Everly Precia Suresh eeb7ba120f add param types for vars and file 2022-05-14 10:11:38 +00:00
Everly Precia Suresh 6d3e4b3757 fix tests 2022-05-13 15:12:21 +00:00
Everly Precia Suresh 1b9e5bc086 fix tests 2022-05-13 15:05:10 +00:00
Everly Precia Suresh 1f139d9337 fix tests 2022-05-13 12:27:12 +00:00
Everly Precia Suresh 3e41a3a5f9 refactor functions.php 2022-05-13 12:05:42 +00:00
Torsten Dittmann 5a9a967f35 fix: delete all sessions event 2022-05-12 21:31:15 +02:00
Torsten Dittmann 158ecce959 Merge branch 'master' of https://github.com/appwrite/appwrite into 0.14.x 2022-05-12 20:41:04 +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 9455a7c573
Merge pull request #3144 from appwrite/feat-array-limits
Feat: Array API limits
2022-05-12 19:03:29 +02:00
Matej Bačo f28597bc17 Fix wording 2022-05-09 06:43:37 +00: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
Matej Bačo 5aa009d843 Rename const 2022-05-01 07:54:58 +00:00
Matej Bačo 4d2d7eddaf PR review changes 2022-05-01 07:53:59 +00:00
Matej Bačo dd8f96ea63 Define const APP_LIMIT_ATTRIBUTE_COUNT 2022-04-26 13:29:23 +00:00
Bradley Schofield d981c8f5e5 Rename 'stdout' in executions to 'response' 2022-04-25 10:12:58 +01:00
Matej Bačo d36a2602ed Add limits, add docs 2022-04-25 07:23:25 +00: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 033bbec261 fix: usage and build 2022-04-19 15:13:55 +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 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
Matej Bačo 942bdbd25a Improved runtimes docs 2022-03-02 12:21:03 +00:00
Christy Jacob c0ff59b916
Merge pull request #2869 from appwrite/fix-deployment-activate-param
Fix: Deployment activate param
2022-03-01 22:13:11 +04:00
Christy Jacob 2cf9364498 feat: fix throw 2022-03-01 21:53:28 +04:00
Matej Bačo 0d2c8d8b39 Fix activate pram 2022-03-01 15:09:21 +00:00
Christy Jacob 1490b7353c feat: print correct error messages 2022-03-01 18:19:47 +04:00
Matej Bačo 0dec387f85
Merge branch 'feat-functions-refactor' into fix-rename-sum 2022-02-28 19:50:54 +01:00
Christy Jacob 8495bbd072
Update app/controllers/api/functions.php
Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
2022-02-27 21:13:55 +04:00
Christy Jacob 0bcd8bff23 feat: add missing error codes 2022-02-27 18:26:46 +04:00
Christy Jacob f8a445294c feat: add missing error codes 2022-02-27 15:57:41 +04:00
Matej Baco 56bf7a51df Refactored 'sum' to 'total' 2022-02-27 10:57:09 +01:00
Christy Jacob a6682a602d feat: fix activate issue 2022-02-25 18:27:50 +04:00
Christy Jacob 21887e6401 feat: fix retry deployment endpoint 2022-02-25 15:12:44 +04:00
Christy Jacob 16a46ad99a feat: fix retry deployment endpoint 2022-02-25 15:06:58 +04:00
Christy Jacob 8d0ff927a7 feat: fix tests 2022-02-24 21:00:05 +04:00
Bradley Schofield b2217f6950 Use execution directly 2022-02-24 13:22:20 +00:00
Bradley Schofield 06448bbdc5 Remove Synchronous execution model 2022-02-24 12:58:10 +00:00
Jake Barnby 2c2b9668d2 Avoid potential scope bug 2022-02-24 15:18:11 +13:00
Damodar Lohani d63cd6950a functions isze limit 2022-02-22 12:36:43 +00:00
Damodar Lohani a58251baca fix size 2022-02-22 12:31:04 +00:00
Damodar Lohani 56241b5789
Update app/controllers/api/functions.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2022-02-22 18:12:18 +05:45
Damodar Lohani 2e0a91a3a8
Update app/controllers/api/functions.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2022-02-22 18:12:13 +05:45
Damodar Lohani 5d9a9f53d8 update 2022-02-22 11:28:26 +00:00
Damodar Lohani 372baa51e9 fix redis queue 2022-02-22 11:18:18 +00:00
Damodar Lohani b0096c94e6
Update app/controllers/api/functions.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
2022-02-22 16:19:51 +05:45
Damodar Lohani 6c49811d14 use deployment limit instead 2022-02-22 06:32:31 +00:00
Damodar Lohani d8a510aa22 Merge branch 'feat-functions-refactor-merge' of https://github.com/appwrite/appwrite into feat-func-storage-sync 2022-02-22 05:49:45 +00:00
Damodar Lohani 0990448dda Merge branch 'feat-functions-refactor' into feat-functions-refactor-merge 2022-02-22 05:48:03 +00:00
Christy Jacob 2f944e9abc Merge branch 'feat-functions-refactor' of github.com:appwrite/appwrite into feat-executor-improvements 2022-02-21 15:01:13 +04:00
Christy Jacob 33c58bfc65 fix: issue with auto deploy flag 2022-02-21 14:41:50 +04:00
Damodar Lohani 045ba04124 fix resource type 2022-02-18 21:23:48 +05:45
Damodar Lohani 27a2e80ad1 extend exception import 2022-02-18 12:36:24 +00:00
Damodar Lohani 96b8ac7392 Merge branch 'feat-functions-refactor-merge' of https://github.com/appwrite/appwrite into feat-func-storage-sync 2022-02-18 11:46:37 +00:00
Damodar Lohani eb916e58d4 Merge branch '0.13.x' of https://github.com/appwrite/appwrite into feat-func-storage-sync 2022-02-18 11:43:29 +00:00
Christy Jacob 3c65d40234 Merge branch '0.13.x' of github.com:appwrite/appwrite into feat-functions-refactor-merge 2022-02-18 15:16:10 +04:00
Christy Jacob 4ad47061dd Merge branch 'master' of github.com:appwrite/appwrite into feat-functions-refactor 2022-02-18 13:38:54 +04:00
Damodar Lohani 9d5b6ef096 fix permission and other fixes for chunked upload 2022-02-17 12:47:26 +00:00
Damodar Lohani 53f7301ade Merge branch '0.13.x' of github.com:appwrite/appwrite into feat-func-storage-sync 2022-02-17 14:11:24 +05:45
Christy Jacob c5e37f439b feat: do not enque build 2022-02-17 04:12:45 +04:00
Christy Jacob da7512e050 Merge branch '0.13.x' of github.com:appwrite/appwrite into feat-add-error-codes 2022-02-17 02:25:29 +04:00
Christy Jacob 9115aa392d feat: create build when activating a deployment 2022-02-17 00:38:58 +04:00
Christy Jacob 75f4061698 feat: fix retry build 2022-02-17 00:06:22 +04:00
Christy Jacob 1c0c5e1b18 feat: change default value of build status 2022-02-16 20:00:45 +04:00
Christy Jacob cef5264c48 feat: propogate errors in Executor 2022-02-16 15:43:21 +04:00
Christy Jacob e40821393c
Merge pull request #2792 from appwrite/feat-rename-autodeploy
Renamed 'deploy' to 'activate'
2022-02-16 13:33:54 +04:00
Christy Jacob c90581e469
Merge pull request #2793 from appwrite/feat-rename-deploymentid
Improved deployment and build path structure
2022-02-16 13:22:38 +04:00
Christy Jacob 123c47fb9a feat: handle build and execution errors 2022-02-15 21:39:03 +04:00
Matej Baco 07f0eb46b2 Improved deployment and build path structure 2022-02-15 10:16:32 +01:00