1
0
Fork 0
mirror of synced 2024-08-04 13:01:45 +12:00
Commit graph

577 commits

Author SHA1 Message Date
shimon
5d16c39d5f account labels 2022-09-04 11:13:44 +03:00
Matej Bačo
ae2826ad1f Bug fixes 2022-09-02 14:19:36 +00:00
Christy Jacob
0438e830b0
Merge pull request #3634 from appwrite/feat-variables-api
Implement Function Variable API
2022-08-31 14:37:30 +02:00
Christy Jacob
5a58312b53
Merge pull request #3741 from appwrite/refactor-guest-rate-limits
Refactor guest rate limits
2022-08-31 10:41:23 +02:00
Matej Bačo
0897cd0fe4
Merge branch '0.16.x' into feat-variables-api 2022-08-31 09:37:47 +02:00
Matej Bačo
3fc2e70007 updateVariable 'key' param marked as required 2022-08-31 07:33:43 +00:00
Jake Barnby
190d9684f0
Use consts for rate limit count + period 2022-08-31 11:34:17 +12:00
Jake Barnby
1d4866c5b5
Use IP + User ID as abuse key for create routes 2022-08-31 11:33:19 +12:00
Jake Barnby
b9148d380b
Fix only variables can passed by reference errors 2022-08-31 11:31:43 +12:00
Matej Bačo
1e95346205 PR review changes 2022-08-30 12:30:52 +00:00
Matej Bačo
63c02677a0
PR review changes 2022-08-30 13:55:23 +02:00
Matej Bačo
2b3dc48bf1 PR review changes 2022-08-30 08:21:34 +00:00
Matej Bačo
2534e9ad8f Remove unnessessary internal queries 2022-08-30 08:20:54 +00:00
Matej Bačo
087b7df52a Failure tests for variables 2022-08-30 07:53:16 +00:00
Matej Bačo
677121edca
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:29:30 +02:00
Matej Bačo
471cac8187
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:29:20 +02:00
Matej Bačo
ce334b9518
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:29:09 +02:00
Matej Bačo
8620b1f3a0
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:28:48 +02:00
Matej Bačo
e5a63a5078
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:28:37 +02:00
Matej Bačo
8ec8843a09
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:28:27 +02:00
Matej Bačo
6cf3cdcadb
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:28:20 +02:00
Matej Bačo
4b50fe3f15
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:28:09 +02:00
Matej Bačo
ce5c8d6817
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:28:01 +02:00
Matej Bačo
3e2a7e2941
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:27:54 +02:00
Matej Bačo
883207240c
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
2022-08-30 09:27:44 +02:00
Matej Bačo
951ed70fb0 Merge branch 'feat-list-endpoints-queries' into feat-variables-api 2022-08-29 08:56:14 +00:00
Matej Bačo
889eaff418 Merge remote-tracking branch 'origin/feat-list-users-queries' into feat-list-endpoints-queries 2022-08-29 08:52:28 +00:00
Jake Barnby
c531213a5f Doc updates 2022-08-27 15:19:00 +12:00
Matej Bačo
dca0b211f6 Implement queries into list variables 2022-08-26 13:38:39 +00:00
Matej Bačo
3b7ac045d7 Merge remote-tracking branch 'origin/feat-list-endpoints-queries' into feat-variables-api 2022-08-26 07:51:54 +00:00
Matej Bačo
7f0507473d Merge remote-tracking branch 'origin/feat-list-users-queries' into feat-list-endpoints-queries 2022-08-26 07:47:42 +00:00
Matej Bačo
78f65401e8 Attempt to fix usage tests 2022-08-25 14:56:15 +00:00
Matej Bačo
e44efb43d1 Fix exception params 2022-08-25 10:13:36 +00:00
Matej Baco
8513bb2dbe Merge branch 'feat-list-endpoints-queries' into feat-variables-api 2022-08-25 11:14:42 +02:00
Matej Baco
fd1068a600 Merge branch 'feat-list-users-queries' into feat-list-endpoints-queries 2022-08-25 10:56:06 +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
Matej Bačo
cb6a186c5d PR review changes 2022-08-24 15:07:18 +00:00
Matej Bačo
4b01ff3f51 Use new query methods 2022-08-24 14:10:56 +00:00
Matej Bačo
17e41eee1d Upgrade listExecutions queries 2022-08-23 09:26:34 +00:00
Matej Bačo
a92f96bf80 Upgrade listDeployments queries 2022-08-23 09:12:48 +00:00
Matej Bačo
1eee0baa28 Upgrade listFunctions queries 2022-08-23 09:02:06 +00:00
Damodar Lohani
2205ecd9c6 null safety checks 2022-08-20 11:20:31 +00: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
Damodar Lohani
0d97580361 fix usage params in execution 2022-08-17 10:13:50 +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
shimon
2dc8fba40a Merge branch '0.16.x' of github.com:appwrite/appwrite into feat-audits-label
 Conflicts:
	app/controllers/api/account.php
	app/controllers/api/users.php
	composer.json
	composer.lock
2022-08-17 10:05:37 +03:00
Damodar Lohani
80dfa85c82 Merge branch 'feat-audits-label' of https://github.com/appwrite/appwrite into feat-usage-updates 2022-08-17 00:45:07 +00:00
Eldad A. Fux
69a4f51d58
Merge pull request #3656 from appwrite/feat-functions-console-logs
Functions Console Logs Capture
2022-08-16 23:23:53 +03:00
shimon
923a741c5a Merge branch '0.16.x' of github.com:appwrite/appwrite into feat-audits-label
 Conflicts:
	app/controllers/api/account.php
	app/controllers/api/functions.php
	app/controllers/api/users.php
2022-08-16 12:47:51 +03:00
Jake Barnby
bbf7f8d8c3 Merge remote-tracking branch 'origin/origin/datetime-attributes' into refactor-permissions-inc-console-fix
# Conflicts:
#	app/controllers/api/databases.php
#	app/controllers/api/storage.php
#	src/Appwrite/Extend/Exception.php
2022-08-16 20:30:00 +12:00
Jake Barnby
fb34ecfa7d Merge remote-tracking branch 'origin/0.16.x' into datetime-attributes-merge
# Conflicts:
#	app/controllers/api/account.php
#	app/controllers/api/databases.php
#	app/controllers/api/functions.php
#	app/controllers/api/projects.php
#	app/controllers/api/storage.php
#	app/controllers/api/teams.php
#	app/controllers/api/users.php
#	app/controllers/general.php
#	app/controllers/shared/api.php
2022-08-16 19:20:26 +12:00
Christy Jacob
5b7b39a300
Revert "Fix Endpoint Order" 2022-08-16 12:29:03 +05:30
Damodar Lohani
4fb743e934 fix lint errors 2022-08-16 05:23:51 +00:00
Damodar Lohani
94d9bb8a18 Merge branch '0.16.x' of https://github.com/appwrite/appwrite into feat-functions-console-logs 2022-08-16 04:42:03 +00:00
Damodar Lohani
078b1ec377 updating to use if condition 2022-08-16 04:34:49 +00:00
shimon
590c1467bc Merge branch '0.16.x' of github.com:appwrite/appwrite into feat-audits-label
 Conflicts:
	app/controllers/api/account.php
	app/controllers/api/functions.php
	app/controllers/api/users.php
2022-08-15 18:19:59 +03:00
Jake Barnby
77a28a2de7 Don't use ID helper with existing ID's 2022-08-15 23:24:31 +12:00
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