Skip to content

Commit 068e894

Browse files
Merge pull request appwrite#3232 from appwrite/0.14.x
0.14.x -> master
2 parents 5a28b71 + 390631c commit 068e894

File tree

1,944 files changed

+41268
-32079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,944 files changed

+41268
-32079
lines changed

CHANGES.md

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,64 @@
1-
# Unreleased Version
2-
- Renamed `providers` to `authProviders` in project collection **Breaking Change**
1+
# Version 0.14.0
2+
3+
## Features
4+
- **BREAKING CHANGE** New Event Model
5+
- The new Event Model allows you to define events for Webhooks or Functions more granular
6+
- Account and Users events have been merged to just Users
7+
- Examples:
8+
- `database.documents.create` is now `collections.[COLLECTION_ID].documents.[DOCUMENT_ID].create`
9+
- Both placeholders needs to be replaced with either `*` for wildcard or an ID of the respective collection or document
10+
- So you can listen to every document that is created in the `posts` collection with `collections.posts.*.documents.*.create`
11+
- `event` in the Realtime payload has been renamed to `events` and contains all possible events
12+
- `X-Appwrite-Webhook-Event` Webhook header has been renamed to `X-Appwrite-Webhook-Events` and contains all possible events
13+
- **BREAKING CHANGE** Renamed `providers` to `authProviders` in Projects
14+
- **BREAKING CHANGE** Renamed `stdout` to `response` in Execution
15+
- **BREAKING CHANGE** Removed delete endpoint from the Accounts API
16+
- **BREAKING CHANGE** Renamed `name` to `userName` on Membership response model
17+
- **BREAKING CHANGE** Renamed `email` to `userEmail` on Membership response model
18+
- **BREAKING CHANGE** Renamed `event` to `events` on Realtime Response and now is an array of strings
19+
- Added `teamName` to Membership response model
20+
- Added new endpoint to update user's status from the Accounts API
21+
- Deleted users will now free their ID and not reserve it anymore
22+
- Added new endpoint to list all memberships on the Users API
23+
- Increased Execution `response` to 1MB
24+
- Increased Build `stdout` to 1MB
25+
- Added Wildcard support to Platforms
26+
- Added Activity page to Teams console
27+
- Added button to verify/unverify user's e-mail address in the console
28+
- Added Docker log limits to `docker-compose.yaml`
29+
- Renamed `_APP_EXECUTOR_RUNTIME_NETWORK` environment variable to `OPEN_RUNTIMES_NETWORK`
30+
- Added Auth0 OAuth2 provider
31+
- Added Okta Oauth2 provider @tanay1337 in https://github.com/appwrite/appwrite/pull/3139
32+
33+
## Bugs
34+
- Fixed issues with `min`, `max` and `default` values for float attributes
35+
- Fixed account created with Magic URL to set a new password
36+
- Fixed Database to respect `null` values
37+
- Fixed missing realtime events from the Users API
38+
- Fixed missing events when all sessions are deleted from the Users and Account API
39+
- Fixed dots in database attributes
40+
- Fixed renewal of SSL certificates
41+
- Fixed errors in the certificates workers
42+
- Fixed HTTPS redirect bug for non GET requests
43+
- Fixed search when a User is updated
44+
- Fixed aspect ratio bug in Avatars API
45+
- Fixed wrong `Fail to Warmup ...` error message in Executor
46+
- Fixed UI when file uploader is covered by jumpt to top button
47+
- Fixed bug that allowed Queries on failed indexes
48+
- Fixed UI when an alert with a lot text disappears too fast by increasing duration
49+
- Fixed issues with cache and case-sensivity on ID's
50+
- Fixed storage stats by upgrading to `BIGINT`
51+
- Fixed `storage.total` stats which now is a sum of `storage.files.total` and `storage.deployments.total`
52+
- Fixed Project logo preview
53+
- Fixed UI for missing icons in Collection attributes
54+
- Fixed UI to allow single-character custom ID's
55+
- Fixed array size validation in the Database Service
56+
- Fixed file preview when file extension is missing
57+
- Fixed `Open an Issue` link in the console
58+
- Fixed missing environment variables on Executor service
59+
- Fixed all endpoints that expect an Array in their params to have not more than 100 items
60+
- Added Executor host variables as a part of infrastructure configuration by @sjke in https://github.com/appwrite/appwrite/pull/3084
61+
- Added new tab/window for new release link by @Akshay-Rana-Gujjar in https://github.com/appwrite/appwrite/pull/3202
362

463
# Version 0.13.4
564

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \
1212
--no-plugins --no-scripts --prefer-dist \
1313
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi`
1414

15-
FROM node:16.13.2-alpine3.15 as node
15+
FROM node:16.14.2-alpine3.15 as node
1616

1717
WORKDIR /usr/local/src/
1818

@@ -30,8 +30,8 @@ ARG DEBUG=false
3030
ENV DEBUG=$DEBUG
3131

3232
ENV PHP_REDIS_VERSION=5.3.7 \
33-
PHP_MONGODB_VERSION=1.9.1 \
34-
PHP_SWOOLE_VERSION=v4.8.7 \
33+
PHP_MONGODB_VERSION=1.13.0 \
34+
PHP_SWOOLE_VERSION=v4.8.9 \
3535
PHP_IMAGICK_VERSION=3.7.0 \
3636
PHP_YAML_VERSION=2.2.2 \
3737
PHP_MAXMINDDB_VERSION=v1.11.0

README-CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ docker run -it --rm \
5959
--volume /var/run/docker.sock:/var/run/docker.sock \
6060
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
6161
--entrypoint="install" \
62-
appwrite/appwrite:0.13.4
62+
appwrite/appwrite:0.14.0
6363
```
6464

6565
### Windows
@@ -71,7 +71,7 @@ docker run -it --rm ^
7171
--volume //var/run/docker.sock:/var/run/docker.sock ^
7272
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
7373
--entrypoint="install" ^
74-
appwrite/appwrite:0.13.4
74+
appwrite/appwrite:0.14.0
7575
```
7676

7777
#### PowerShell
@@ -81,7 +81,7 @@ docker run -it --rm ,
8181
--volume /var/run/docker.sock:/var/run/docker.sock ,
8282
--volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ,
8383
--entrypoint="install" ,
84-
appwrite/appwrite:0.13.4
84+
appwrite/appwrite:0.14.0
8585
```
8686

8787
运行后,可以在浏览器上访问 http://localhost 找到 Appwrite 控制台。在非 Linux 的本机主机上完成安装后,服务器可能需要几分钟才能启动。

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ docker run -it --rm \
6262
--volume /var/run/docker.sock:/var/run/docker.sock \
6363
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
6464
--entrypoint="install" \
65-
appwrite/appwrite:0.13.4
65+
appwrite/appwrite:0.14.0
6666
```
6767

6868
### Windows
@@ -74,7 +74,7 @@ docker run -it --rm ^
7474
--volume //var/run/docker.sock:/var/run/docker.sock ^
7575
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
7676
--entrypoint="install" ^
77-
appwrite/appwrite:0.13.4
77+
appwrite/appwrite:0.14.0
7878
```
7979

8080
#### PowerShell
@@ -84,7 +84,7 @@ docker run -it --rm ,
8484
--volume /var/run/docker.sock:/var/run/docker.sock ,
8585
--volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ,
8686
--entrypoint="install" ,
87-
appwrite/appwrite:0.13.4
87+
appwrite/appwrite:0.14.0
8888
```
8989

9090
Once the Docker installation completes, go to http://localhost to access the Appwrite console from your browser. Please note that on non-Linux native hosts, the server might take a few minutes to start after installation completes.

app/cli.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use Utopia\App;
66
use Utopia\CLI\CLI;
77
use Utopia\CLI\Console;
8+
use Utopia\Database\Validator\Authorization;
9+
10+
Authorization::disable();
811

912
$cli = new CLI();
1013

app/config/collections.php

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,9 +1054,9 @@
10541054
'size' => 16384,
10551055
'signed' => true,
10561056
'required' => false,
1057-
'default' => [],
1058-
'array' => true,
1059-
'filters' => ['json'],
1057+
'default' => null,
1058+
'array' => false,
1059+
'filters' => ['subQuerySessions'],
10601060
],
10611061
[
10621062
'$id' => 'tokens',
@@ -1076,7 +1076,7 @@
10761076
'size' => 16384,
10771077
'signed' => true,
10781078
'required' => false,
1079-
'default' => [],
1079+
'default' => null,
10801080
'array' => false,
10811081
'filters' => ['subQueryMemberships'],
10821082
],
@@ -1090,18 +1090,7 @@
10901090
'default' => null,
10911091
'array' => false,
10921092
'filters' => [],
1093-
],
1094-
[
1095-
'$id' => 'deleted',
1096-
'type' => Database::VAR_BOOLEAN,
1097-
'format' => '',
1098-
'size' => 0,
1099-
'signed' => true,
1100-
'required' => false,
1101-
'default' => null,
1102-
'array' => false,
1103-
'filters' => [],
1104-
],
1093+
]
11051094
],
11061095
'indexes' => [
11071096
[
@@ -1117,14 +1106,7 @@
11171106
'attributes' => ['search'],
11181107
'lengths' => [],
11191108
'orders' => [],
1120-
],
1121-
[
1122-
'$id' => '_key_deleted_email',
1123-
'type' => Database::INDEX_KEY,
1124-
'attributes' => ['deleted', 'email'],
1125-
'lengths' => [0, 320],
1126-
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
1127-
],
1109+
]
11281110
],
11291111
],
11301112

@@ -1478,6 +1460,13 @@
14781460
'lengths' => [100, 100],
14791461
'orders' => [Database::ORDER_ASC, Database::ORDER_ASC],
14801462
],
1463+
[
1464+
'$id' => '_key_user',
1465+
'type' => Database::INDEX_KEY,
1466+
'attributes' => ['userId'],
1467+
'lengths' => [Database::LENGTH_KEY],
1468+
'orders' => [Database::ORDER_ASC],
1469+
],
14811470
],
14821471
],
14831472

@@ -2204,7 +2193,7 @@
22042193
'filters' => [],
22052194
],
22062195
[
2207-
'$id' => 'stdout',
2196+
'$id' => 'response',
22082197
'type' => Database::VAR_STRING,
22092198
'format' => '',
22102199
'size' => 1000000,
@@ -2508,7 +2497,7 @@
25082497
'$id' => 'value',
25092498
'type' => Database::VAR_INTEGER,
25102499
'format' => '',
2511-
'size' => 0,
2500+
'size' => 8,
25122501
'signed' => false,
25132502
'required' => true,
25142503
'default' => null,

app/config/errors.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
'description' => 'An internal server error occurred.',
7979
'code' => 500,
8080
],
81+
Exception::GENERAL_PROTOCOL_UNSUPPORTED => [
82+
'name' => Exception::GENERAL_PROTOCOL_UNSUPPORTED,
83+
'description' => 'The request cannot be fulfilled with the current protocol. Please check the value of the _APP_OPTIONS_FORCE_HTTPS environment variable.',
84+
'code' => 500,
85+
],
8186

8287
/** User Errors */
8388
Exception::USER_COUNT_EXCEEDED => [

0 commit comments

Comments
 (0)