Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into refactor-test-failures
Browse files Browse the repository at this point in the history
  • Loading branch information
abnegate committed Sep 20, 2022
2 parents d380cb8 + 19eb6c7 commit 98747c9
Show file tree
Hide file tree
Showing 2,350 changed files with 5,701 additions and 3,814 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ body:
label: "🎲 Appwrite version"
description: "What version of Appwrite are you running?"
options:
- Version 1.0.0-RC1
- Version 1.0.x
- Version 0.15.x
- Version 0.14.x
- Version 0.13.x
Expand Down
26 changes: 19 additions & 7 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
# Version 1.0.0-RC1

# DO NOT INSTALL THIS VERSION ON ANY EXISTING INSTANCES OF APPWRITE, THIS IS A TEST RELEASE AND DOES NOT HAVE BACKWARDS COMPATIBILITY!!
# Version 1.0.1
## Bugs
- Fixed migration for abuse by migrating the `time` attribute [3839](https://github.com/appwrite/appwrite/pull/3839)

# Version 1.0.0
## BREAKING CHANGES
- All Date values are now stored as ISO-8601 instead of UNIX timestamps [#3516](https://github.com/appwrite/appwrite/pull/3516)
- Permission levels and syntax have been reworked. See the Permissions V2 section in the document for more information [#3700](https://github.com/appwrite/appwrite/pull/3700)
- Function Variables are now stored in a seperate collection with their own API endpoints [#3634](https://github.com/appwrite/appwrite/pull/3634)
- Function Variables are now stored in a separate collection with their own API endpoints [#3634](https://github.com/appwrite/appwrite/pull/3634)
- Resources that are computed asynchronously, such as function deployments, will now return a `202 Accepted` status code instead of `200 OK` [#3547](https://github.com/appwrite/appwrite/pull/3547)
- Queries have been improved to allow even more flexibility, and introduced to new endpoints. See the Queries V2 section in the document for more information [#3702](https://github.com/appwrite/appwrite/pull/3702)
- Compound indexes are now more flexible [#151](https://github.com/utopia-php/database/pull/151)
- `createExecution` parameter `async` default value was changed from `true` to `false` [#3781](https://github.com/appwrite/appwrite/pull/3781)
- String attribute `status` has been refactored to a Boolean attribute `enabled` in the functions collection [#3798](https://github.com/appwrite/appwrite/pull/3798)
- `time` attribute in Execution response model has been reanamed to `duration` to be more consistent with other response models. [#3801](https://github.com/appwrite/appwrite/pull/3801)
- `time` attribute in Execution response model has been renamed to `duration` to be more consistent with other response models. [#3801](https://github.com/appwrite/appwrite/pull/3801)
- Renamed the following list endpoints to stay consistent with other endpoints [#3825](https://github.com/appwrite/appwrite/pull/3825)
- `getMemberships` to `listMemberships` in Teams API
- `getMemberships` to `listMemberships` in Users API
- `getLogs` to `listLogs` in Users API
- `getLogs` to `listLogs` in Accounts API
- `getSessions` to `listSessions` in Accounts API
- `getSessions` to `listSessions` in Users API
- `getCountries` to `listCountries` in Locale API
- `getCountriesEU` to `listCountriesEU` in Locale API
- `getCountriesPhones` to `listCountriesPhones` in Locale API
- `getContinents` to `listContinents` in Locale API
- `getCurrencies` to `listCurrencies` in Locale API
- `getLanguages` to `listLanguages` in Locale API

## Features
- Added the UI to see the Parent ID of all resources within the UI. [#3653](https://github.com/appwrite/appwrite/pull/3653)
Expand All @@ -31,8 +45,6 @@
- Fixed a bug where you could not search users by phone [#3619](https://github.com/appwrite/appwrite/pull/3619)
- Fixed a bug where unaccepted invitations would grant access to projects [#3738](https://github.com/appwrite/appwrite/pull/3738)

For more information on the changes, please see our [1.0-RC1 Documentation](https://warm-tray-285.notion.site/Appwrite-1-0-0-RC1-a5eab87e115d454db0259f707fc88535).

# Version 0.15.3
## Features
- Added hint during Installation for DNS Configuration by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/2450
Expand Down
6 changes: 3 additions & 3 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:0.15.3
appwrite/appwrite:1.0.1
```

### Windows
Expand All @@ -71,7 +71,7 @@ docker run -it --rm ^
--volume //var/run/docker.sock:/var/run/docker.sock ^
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
--entrypoint="install" ^
appwrite/appwrite:0.15.3
appwrite/appwrite:1.0.1
```

#### PowerShell
Expand All @@ -81,7 +81,7 @@ docker run -it --rm ,
--volume /var/run/docker.sock:/var/run/docker.sock ,
--volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ,
--entrypoint="install" ,
appwrite/appwrite:0.15.3
appwrite/appwrite:1.0.1
```

运行后,可以在浏览器上访问 http://localhost 找到 Appwrite 控制台。在非 Linux 的本机主机上完成安装后,服务器可能需要几分钟才能启动。
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

English | [简体中文](README-CN.md)

[**Appwrite 0.15 has been released! Learn what's new!**](https://dev.to/appwrite/announcing-appwrite-015-with-phone-authentication-more-5cjj)
[**Appwrite 1.0 has been released! Learn what's new!**](https://appwrite.io/1.0)

Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker<nobr> microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster.

Expand Down Expand Up @@ -65,7 +65,7 @@ docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:0.15.3
appwrite/appwrite:1.0.1
```

### Windows
Expand All @@ -77,7 +77,7 @@ docker run -it --rm ^
--volume //var/run/docker.sock:/var/run/docker.sock ^
--volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^
--entrypoint="install" ^
appwrite/appwrite:0.15.3
appwrite/appwrite:1.0.1
```

#### PowerShell
Expand All @@ -87,7 +87,7 @@ docker run -it --rm ,
--volume /var/run/docker.sock:/var/run/docker.sock ,
--volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ,
--entrypoint="install" ,
appwrite/appwrite:0.15.3
appwrite/appwrite:1.0.1
```

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.
Expand Down
11 changes: 11 additions & 0 deletions app/config/collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -2148,6 +2148,17 @@
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('scheduleUpdatedAt'), // Used to fix duplicate executions bug. Can be removed once new queue library is used
'type' => Database::VAR_DATETIME,
'format' => '',
'size' => 0,
'signed' => false,
'required' => false,
'default' => null,
'array' => false,
'filters' => ['datetime'],
],
[
'$id' => ID::custom('schedulePrevious'),
'type' => Database::VAR_DATETIME,
Expand Down
34 changes: 17 additions & 17 deletions app/config/platforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[
'key' => 'web',
'name' => 'Web',
'version' => '10.0.0-RC2',
'version' => '10.0.0',
'url' => 'https://github.com/appwrite/sdk-for-web',
'package' => 'https://www.npmjs.com/package/appwrite',
'enabled' => true,
Expand Down Expand Up @@ -63,7 +63,7 @@
[
'key' => 'flutter',
'name' => 'Flutter',
'version' => '8.0.0-dev.2',
'version' => '8.0.0',
'url' => 'https://github.com/appwrite/sdk-for-flutter',
'package' => 'https://pub.dev/packages/appwrite',
'enabled' => true,
Expand All @@ -81,7 +81,7 @@
[
'key' => 'apple',
'name' => 'Apple',
'version' => '1.0.0-RC2',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-apple',
'package' => 'https://github.com/appwrite/sdk-for-apple',
'enabled' => true,
Expand Down Expand Up @@ -116,7 +116,7 @@
[
'key' => 'android',
'name' => 'Android',
'version' => '1.0.0-SNAPSHOT',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-android',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
'enabled' => true,
Expand Down Expand Up @@ -162,7 +162,7 @@
[
'key' => 'web',
'name' => 'Console',
'version' => '7.0.0-RC2',
'version' => '7.0.0',
'url' => 'https://github.com/appwrite/sdk-for-console',
'package' => '',
'enabled' => true,
Expand All @@ -180,7 +180,7 @@
[
'key' => 'cli',
'name' => 'Command Line',
'version' => '1.0.0-RC2',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-cli',
'package' => 'https://www.npmjs.com/package/appwrite-cli',
'enabled' => true,
Expand Down Expand Up @@ -208,7 +208,7 @@
[
'key' => 'nodejs',
'name' => 'Node.js',
'version' => '8.0.0-RC2',
'version' => '8.0.0',
'url' => 'https://github.com/appwrite/sdk-for-node',
'package' => 'https://www.npmjs.com/package/node-appwrite',
'enabled' => true,
Expand All @@ -226,7 +226,7 @@
[
'key' => 'deno',
'name' => 'Deno',
'version' => '6.0.0-RC2',
'version' => '6.0.0',
'url' => 'https://github.com/appwrite/sdk-for-deno',
'package' => 'https://deno.land/x/appwrite',
'enabled' => true,
Expand All @@ -244,7 +244,7 @@
[
'key' => 'php',
'name' => 'PHP',
'version' => '7.0.0-RC2',
'version' => '7.0.0',
'url' => 'https://github.com/appwrite/sdk-for-php',
'package' => 'https://packagist.org/packages/appwrite/appwrite',
'enabled' => true,
Expand All @@ -262,7 +262,7 @@
[
'key' => 'python',
'name' => 'Python',
'version' => '1.0.0-RC2',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-python',
'package' => 'https://pypi.org/project/appwrite/',
'enabled' => true,
Expand All @@ -280,7 +280,7 @@
[
'key' => 'ruby',
'name' => 'Ruby',
'version' => '7.0.0-RC2',
'version' => '7.0.0',
'url' => 'https://github.com/appwrite/sdk-for-ruby',
'package' => 'https://rubygems.org/gems/appwrite',
'enabled' => true,
Expand All @@ -298,7 +298,7 @@
[
'key' => 'go',
'name' => 'Go',
'version' => '1.0.0-RC2',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-go',
'package' => '',
'enabled' => false,
Expand All @@ -316,7 +316,7 @@
[
'key' => 'java',
'name' => 'Java',
'version' => '1.0.0-SNAPSHOT',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-java',
'package' => '',
'enabled' => false,
Expand All @@ -334,7 +334,7 @@
[
'key' => 'dotnet',
'name' => '.NET',
'version' => '1.0.0-RC2',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
'package' => 'https://www.nuget.org/packages/Appwrite',
'enabled' => false,
Expand All @@ -352,7 +352,7 @@
[
'key' => 'dart',
'name' => 'Dart',
'version' => '7.0.0-dev.2',
'version' => '7.0.0',
'url' => 'https://github.com/appwrite/sdk-for-dart',
'package' => 'https://pub.dev/packages/dart_appwrite',
'enabled' => true,
Expand All @@ -370,7 +370,7 @@
[
'key' => 'kotlin',
'name' => 'Kotlin',
'version' => '1.0.0-SNAPSHOT',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
'enabled' => true,
Expand All @@ -392,7 +392,7 @@
[
'key' => 'swift',
'name' => 'Swift',
'version' => '1.0.0-RC2',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-swift',
'package' => 'https://github.com/appwrite/sdk-for-swift',
'enabled' => true,
Expand Down
1 change: 0 additions & 1 deletion app/config/specs/open-api3-1.0.0-RC1-client.json

This file was deleted.

1 change: 0 additions & 1 deletion app/config/specs/open-api3-1.0.0-RC1-console.json

This file was deleted.

1 change: 0 additions & 1 deletion app/config/specs/open-api3-1.0.0-RC1-server.json

This file was deleted.

1 change: 1 addition & 0 deletions app/config/specs/open-api3-1.0.x-client.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/config/specs/open-api3-1.0.x-console.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/config/specs/open-api3-1.0.x-server.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/open-api3-latest-client.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/open-api3-latest-console.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/open-api3-latest-server.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion app/config/specs/swagger2-1.0.0-RC1-client.json

This file was deleted.

1 change: 0 additions & 1 deletion app/config/specs/swagger2-1.0.0-RC1-console.json

This file was deleted.

1 change: 0 additions & 1 deletion app/config/specs/swagger2-1.0.0-RC1-server.json

This file was deleted.

1 change: 1 addition & 0 deletions app/config/specs/swagger2-1.0.x-client.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/config/specs/swagger2-1.0.x-console.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/config/specs/swagger2-1.0.x-server.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-latest-client.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-latest-console.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-latest-server.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions app/config/variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
],
[
'name' => '_APP_USAGE_AGGREGATION_INTERVAL',
'description' => 'Deprecated since 1.0.0-RC1, use `_APP_USAGE_TIMESERIES_INTERVAL` and `_APP_USAGE_DATABASE_INTERVAL` instead.',
'description' => 'Deprecated since 1.0.0, use `_APP_USAGE_TIMESERIES_INTERVAL` and `_APP_USAGE_DATABASE_INTERVAL` instead.',
'introduction' => '0.10.0',
'default' => '30',
'required' => false,
Expand All @@ -180,7 +180,7 @@
[
'name' => '_APP_USAGE_TIMESERIES_INTERVAL',
'description' => 'Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats and syncing it to Appwrite Database from Timeseries Database. The default value is 30 seconds.',
'introduction' => '1.0.0-RC1',
'introduction' => '1.0.0',
'default' => '30',
'required' => false,
'question' => '',
Expand All @@ -189,7 +189,7 @@
[
'name' => '_APP_USAGE_DATABASE_INTERVAL',
'description' => 'Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats from data in Appwrite Database. The default value is 15 minutes.',
'introduction' => '1.0.0-RC1',
'introduction' => '1.0.0',
'default' => '900',
'required' => false,
'question' => '',
Expand Down Expand Up @@ -825,7 +825,7 @@
[
'name' => '_APP_MAINTENANCE_RETENTION_CACHE',
'description' => 'The maximum duration (in seconds) upto which to retain cached files. The default value is 2592000 seconds (30 days).',
'introduction' => '1.0.0-RC1',
'introduction' => '1.0.0',
'default' => '2592000',
'required' => false,
'question' => '',
Expand Down
12 changes: 6 additions & 6 deletions app/controllers/api/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -1311,14 +1311,14 @@
});

App::get('/v1/account/sessions')
->desc('Get Account Sessions')
->desc('List Account Sessions')
->groups(['api', 'account'])
->label('scope', 'account')
->label('usage.metric', 'users.{scope}.requests.read')
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
->label('sdk.namespace', 'account')
->label('sdk.method', 'getSessions')
->label('sdk.description', '/docs/references/account/get-sessions.md')
->label('sdk.method', 'listSessions')
->label('sdk.description', '/docs/references/account/list-sessions.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_SESSION_LIST)
Expand Down Expand Up @@ -1346,14 +1346,14 @@
});

App::get('/v1/account/logs')
->desc('Get Account Logs')
->desc('List Account Logs')
->groups(['api', 'account'])
->label('scope', 'account')
->label('usage.metric', 'users.{scope}.requests.read')
->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT])
->label('sdk.namespace', 'account')
->label('sdk.method', 'getLogs')
->label('sdk.description', '/docs/references/account/get-logs.md')
->label('sdk.method', 'listLogs')
->label('sdk.description', '/docs/references/account/list-logs.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_LOG_LIST)
Expand Down
Loading

0 comments on commit 98747c9

Please sign in to comment.