8000 1.4.x by christyjacob4 · Pull Request #6345 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

1.4.x #6345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 139 commits into from
Oct 10, 2023
Merged

1.4.x #6345

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
8e0e131
Remove Special Chars from Initials
PineappleIOnic Sep 6, 2023
68b2706
Fix project deletion
stnguyen90 Sep 16, 2023
2eb6295
Add Description for Download Deployment
PineappleIOnic Sep 18, 2023
30b7b9d
Regenerate Specs
PineappleIOnic Sep 18, 2023
6a7950a
Add function domains force https
Meldiron Sep 18, 2023
94117ed
Fix build race condition
Meldiron Sep 18, 2023
dc1d9fa
Fix wrong device type
Meldiron Sep 18, 2023
d3f83c2
Linter fix
Meldiron Sep 18, 2023
a1049bd
Implement router protection
Meldiron Sep 18, 2023
6afba0b
Linter fix
Meldiron Sep 18, 2023
544f35e
env var disabled by default router protection
Meldiron Sep 18, 2023
1669ead
Transfer for Git deploys to prevent memory issues
Meldiron Sep 18, 2023
6a32bb1
Throw error if repo size is larger than allowed limit
vermakhushboo Sep 18, 2023
007d695
PR review changes
Meldiron Sep 19, 2023
d87dbad
PR review changes
Meldiron Sep 19, 2023
8926d24
One more env var rename
Meldiron Sep 19, 2023
4c18f9f
Document router protection env var
Meldiron Sep 19, 2023
c5e059c
Fix delete function deployment
stnguyen90 Sep 21, 2023
9ca82b7
Fix missing resourceInternalId on deployments
stnguyen90 Sep 21, 2023
62d3701
Merge pull request #6271 from appwrite/fix-wrong-device-type
christyjacob4 Sep 21, 2023
eea7851
Merge pull request #6270 from appwrite/fix-build-race-condition
christyjacob4 Sep 21, 2023
5b45acf
Merge pull request #6299 from appwrite/master
christyjacob4 Sep 21, 2023
69fc962
Merge branch '1.4.x' into fix-large-builds
Meldiron Sep 21, 2023
70a2a75
Merge branch '1.4.x' into feat-router-protection
Meldiron Sep 21, 2023
4984b01
Merge branch '1.4.x' into feat-https-function-domains
Meldiron Sep 21, 2023
91e3f37
Upgrade executor
Meldiron Sep 21, 2023
8184754
Update compose.phtml
Meldiron Sep 21, 2023
4a6cc0a
Merge pull request #6273 from appwrite/fix-large-builds
christyjacob4 Sep 21, 2023
c8d57c0
Fix: Publish CI/CD script
Meldiron Sep 21, 2023
66f06cb
Update publish.yml
Meldiron Sep 21, 2023
f78b520
Merge pull request #6269 from appwrite/feat-https-function-domains
christyjacob4 Sep 21, 2023
864092d
Merge pull request #6272 from appwrite/feat-router-protection
christyjacob4 Sep 21, 2023
6cfd970
Merge branch 'cl-1.4.x' into fix-publish-cicd
Meldiron Sep 21, 2023
707aa48
Merge pull request #6300 from appwrite/fix-publish-cicd
christyjacob4 Sep 21, 2023
c7e6efc
chore: update backups schedule
christyjacob4 Sep 21, 2023
cebfc5a
Fix migrations
Meldiron Sep 21, 2023
deb58a6
Merge pull request #6302 from appwrite/fix-migrations
christyjacob4 Sep 21, 2023
3e41578
Merge branch '1.4.x' into cl-1.4.x
Meldiron Sep 21, 2023
bb70860
Fix deployment and build files deletion on function delete
stnguyen90 Sep 21, 2023
d731d2b
Remove legacy comment
stnguyen90 Sep 21, 2023
e35b07b
Merge pull request #6268 from appwrite/fix-download-deployment-desc
christyjacob4 Sep 22, 2023
9dde039
Merge pull request #6290 from appwrite/fix-deployment-delete
christyjacob4 Sep 22, 2023
614e91b
Merge pull request #6260 from appwrite/fix-delete-project-domains
TorstenDittmann Sep 23, 2023
310517f
Auto-parse event bodies + test
Meldiron Sep 24, 2023
24204bc
Add all worker health endpoints
Meldiron Sep 24, 2023
fee30e0
Remove unnessessary test code
Meldiron Sep 24, 2023
725897c
Rename audits back to logs
Meldiron Sep 24, 2023
b4c5ef2
Remove double test
Meldiron Sep 24, 2023
303c8a1
Fix test
Meldiron Sep 24, 2023
a6aa38f
Fix test
Meldiron Sep 25, 2023
c35f05f
Increase max body size
Meldiron Sep 25, 2023
420d2a9
@Meldiron Disable console endpoint protection
Meldiron Sep 25, 2023
0b19b62
Merge pull request #6326 from appwrite/fix-max-function-body
christyjacob4 Sep 25, 2023
9f244f9
Remvoe unnessessary comments
Meldiron Sep 25, 2023
ad83a34
Merge pull request #6317 from appwrite/feat-event-json-parsing
christyjacob4 Sep 25, 2023
6a28499
Merge pull request #6329 from appwrite/patch-oauth-flows-1.4.x
christyjacob4 Sep 25, 2023
6506771
Merge pull request #6319 from appwrite/feat-health-queues
christyjacob4 Sep 25, 2023
d1d523e
chore: update hamster script
christyjacob4 Sep 25, 2023
d4debdd
chore: update hamster script
christyjacob4 Sep 25, 2023
2856d6d
Merge branch 'cl-1.4.x' of github.com:appwrite/appwrite into cl-1.4.x
christyjacob4 Sep 25, 2023
2273cb5
Merge branch '1.4.x' of github.com:appwrite/appwrite into cl-1.4.x
christyjacob4 Sep 25, 2023
39dc153
chore: remove comments
christyjacob4 Sep 25, 2023
79d7bd8
chore: linter
christyjacob4 Sep 25, 2023
4a0c77a
Update avatar font and default colors
stnguyen90 Sep 18, 2023
872531d
Fix execution call timeout
Meldiron Sep 26, 2023
43f491c
Bump appwrite-assistant to prevent it from crashing w/o open ai key
stnguyen90 Sep 27, 2023
376cfc9
Bump composer to fix migration bug
stnguyen90 Sep 27, 2023
c659c59
Merge pull request #6277 from appwrite/feat/avatar-colors
eldadfux Sep 27, 2023
9ec6597
Merge pull request #6344 from appwrite/chore-bump-composer
christyjacob4 Sep 27, 2023
d0f2a10
Merge pull request #6332 from appwrite/fix-long-running-functions
christyjacob4 Sep 27, 2023
5401165
Merge pull request #6342 from appwrite/feat-bump-assistant
christyjacob4 Sep 27, 2023
50600d6
Merge pull request #6343 from appwrite/master
christyjacob4 Sep 27, 2023
5120152
Add all worker health endpoints
Meldiron Sep 24, 2023
e58bf7f
Rename audits back to logs
Meldiron Sep 24, 2023
2d578dd
Remove double test
Meldiron Sep 24, 2023
d625b9a
Remvoe unnessessary comments
Meldiron Sep 25, 2023
0c2cd17
chore: prep for 1.4.4
christyjacob4 Sep 27, 2023
c93780c
chore: generate new specs
christyjacob4 Sep 27, 2023
d4a8137
chore: update changelog
christyjacob4 Sep 27, 2023
9adeac5
chore: update changelog
christyjacob4 Sep 27, 2023
70988f5
chore: update changelog
christyjacob4 Sep 27, 2023
9fa93e0
chore: review comments
christyjacob4 Sep 27, 2023
df3eef3
Merge pull request #6346 from appwrite/chore-add-health-endpoints
christyjacob4 Sep 27, 2023
4f88ba8
Merge pull request #6347 from appwrite/chore-prep-for-1.4
christyjacob4 Sep 27, 2023
ac844d3
Merge branch '1.4.x' of https://github.com/appwrite/appwrite into cl-…
christyjacob4 Sep 27, 2023
faf69a7
Generate 1.4.x and latest specs
stnguyen90 Sep 27, 2023
6211a58
Merge pull request #6348 from appwrite/chore-generate-specs
christyjacob4 Sep 28, 2023
4491975
Update database
abnegate Sep 28, 2023
aa1cf05
Add test ensuring no 500 on bad serach
abnegate Sep 28, 2023
c85cf65
Update CHANGES.md to add fix for avatar initials
stnguyen90 Sep 28, 2023
d3e27be
Merge pull request #6353 from appwrite/chore-changes-initials-fix
christyjacob4 Sep 28, 2023
583f8db
Merge pull request #6349 from appwrite/fix-empty-fulltext-search
christyjacob4 Sep 28, 2023
a65c1c1
chore: fix merge conflict
christyjacob4 Sep 28, 2023
d600ae1
chore: revert composer.lock
christyjacob4 Sep 28, 2023
cf4cf6c
Merge branch '1.4.x' of https://github.com/appwrite/appwrite into cl-…
christyjacob4 Sep 28, 2023
c27d5cb
chore: revert composer.lock
christyjacob4 Sep 28, 2023
615d61d
Merge branch '1.4.x' into fix-skip-non-ascii-chars-image
PineappleIOnic Sep 29, 2023
1136dc9
Add Test and don't stop on special char
PineappleIOnic Sep 29, 2023
f2feecf
Fix avatars tests
stnguyen90 Sep 29, 2023
4205614
Merge pull request #6363 from appwrite/fix-avatar-tests
TorstenDittmann Sep 29, 2023
e95b446
Bump console to the latest version
stnguyen90 Sep 28, 2023
9d47237
Merge branch '1.4.x' into fix-skip-non-ascii-chars-image
stnguyen90 Sep 29, 2023
2da7cc6
Merge pull request #6164 from appwrite/fix-skip-non-ascii-chars-image
TorstenDittmann Sep 29, 2023
c02f5fe
Merge pull request #6354 from appwrite/feat-bump-console
TorstenDittmann Sep 29, 2023
785304b
Merge branch 'main' into chore-merge-main
stnguyen90 Sep 29, 2023
c0f4453
Merge pull request #6365 from appwrite/chore-merge-main
TorstenDittmann Sep 29, 2023
d9f2f1c
Introduce execution sync timeout
Meldiron Sep 30, 2023
515fec2
Linter fix
Meldiron Sep 30, 2023
43de260
Merge pull request #6366 from appwrite/1.4.x
christyjacob4 Sep 30, 2023
78dd0ca
Merge branch 'cl-1.4.x' into patch-sync-exec-timeout
Meldiron Sep 30, 2023
1502bfe
Increase timeout
Meldiron Sep 30, 2023
1492c8b
Merge pull request #6370 from appwrite/patch-sync-exec-timeout
christyjacob4 Sep 30, 2023
b456c9d
chore: remove DB creates
christyjacob4 Oct 2, 2023
58165e9
Merge pull request #6445 from appwrite/chore-patch-prevent-db-creates
christyjacob4 Oct 2, 2023
29ad61d
chore: update database
christyjacob4 Oct 2, 2023
74f9ec4
Merge pull request #6446 from appwrite/chore-update-database
christyjacob4 Oct 2, 2023
ff3c25d
chore: update database
christyjacob4 Oct 2, 2023
d150202
Fix missing array flag on migration errors response model rule
abnegate Oct 4, 2023
b8cfac9
Update specs
abnegate Oct 4, 2023
0f3ce65
Upgrade executor
Meldiron Oct 4, 2023
891960a
Fix realtime logs container name
Meldiron Oct 4, 2023
e2831ed
Merge pull request #6478 from appwrite/fix-realtime-logs
eldadfux Oct 4, 2023
b6ce679
Merge branch '1.4.x' into cl-1.4.x
Meldiron Oct 4, 2023
adbbb6d
chore: add database overrides
christyjacob4 Oct 5, 2023
32ba34c
chore: add database overrides
christyjacob4 Oct 5, 2023
2c5e4a7
Merge pull request #6499 from appwrite/chore-add-db-override
christyjacob4 Oct 5, 2023
2019552
Merge pull request #6476 from appwrite/fix-upgrade-executor
eldadfux Oct 5, 2023
623b2f9
Ensure openruntimes-executor restarts after a server reboot
stnguyen90 Oct 4, 2023
72b4950
Merge pull request #6469 from appwrite/fix-migration-response-model
abnegate Oct 8, 2023
970461c
Merge pull request #6490 from appwrite/fix-6442-executor-restart
eldadfux Oct 9, 2023
81a6512
Bump console to 3.2.1
stnguyen90 Oct 9, 2023
2620328
Bump APP_CACHE_BUSTER to make sure browsers fetch the new console
stnguyen90 Oct 9, 2023
5011535
Update CHANGES.md for 1.4.5
stnguyen90 Oct 9, 2023
071920f
Bump version to 1.4.5
stnguyen90 Oct 9, 2023
9d3972f
Bump API specs
stnguyen90 Oct 9, 2023
4cd0c50
Merge pull request #6868 from appwrite/feat-bump-console
TorstenDittmann Oct 10, 2023
8dce3d5
Merge pull request #6870 from appwrite/feat-1.4.5-release
TorstenDittmann Oct 10, 2023
920d2b2
Merge branch 'cl-1.4.x' into 1.4.x
TorstenDittmann Oct 10, 2023
6f39c1d
Merge branch 'main' into 1.4.x
eldadfux Oct 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ _APP_SYSTEM_EMAIL_ADDRESS=team@appwrite.io
_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=security@appwrite.io
_APP_SYSTEM_RESPONSE_FORMAT=
_APP_OPTIONS_ABUSE=disabled
_APP_OPTIONS_ROUTER_PROTECTION=disbled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPTIONS_FUNCTIONS_FORCE_HTTPS=disabled
_APP_OPENSSL_KEY_V1=your-secret-key
_APP_DOMAIN=localhost
_APP_DOMAIN_FUNCTIONS=functions.localhost
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
fetch-depth: 2
submodules: recursive
ref: master
ref: cl-1.4.x

- name: Login to Docker Hub
uses: docker/login-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "app/console"]
path = app/console
url = https://github.com/appwrite/console
branch = 3.1.1
branch = 3.2.1
36 changes: 36 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
# Version 1.4.5

## Changes
- Bump console to version 3.2.1 in [#6868](https://github.com/appwrite/appwrite/pull/6868)

## Fixes
- Fix realtime logs in [#6478](https://github.com/appwrite/appwrite/pull/6478)
- Fix "File not found" error in executor in [#6476](https://github.com/appwrite/appwrite/pull/6476)
- Fix missing array flag on migration errors response model rule in [#6469](https://github.com/appwrite/appwrite/pull/6469)
- Ensure openruntimes-executor restarts after a server reboot in [#6490](https://github.com/appwrite/appwrite/pull/6490)

# Version 1.4.4

## Features
- Feat: Function domains force https in [#6269](https://github.com/appwrite/appwrite/pull/6269)
- Feat: router protection in [#6272](https://github.com/appwrite/appwrite/pull/6272)
- Feat: Parse event body in [#6317](https://github.com/appwrite/appwrite/pull/6317)

## Fixes
- Fix: wrong device type in [#6271](https://github.com/appwrite/appwrite/pull/6271)
- Fix: build race condition in [#6270](https://github.com/appwrite/appwrite/pull/6270)
- Fix: Large builds in [#6273](https://github.com/appwrite/appwrite/pull/6273)
- Fix: migrations in [#6302](https://github.com/appwrite/appwrite/pull/6302)
- Add Description for Download Deployment in [#6268](https://github.com/appwrite/appwrite/pull/6268)
- Fix deployment delete in [#6290](https://github.com/appwrite/appwrite/pull/6290)
- Fix project deletion in [#6260](https://github.com/appwrite/appwrite/pull/6260)
- fix-6212-Issue-With-Linkedin-OAuth in [#6229](https://github.com/appwrite/appwrite/pull/6229)
- Fix: Execution body limit in [#6326](https://github.com/appwrite/appwrite/pull/6326)
- Patch: Disable console protection in [#6329](https://github.com/appwrite/appwrite/pull/6329)
- converted desc to sentence case in [#5926](https://github.com/appwrite/appwrite/pull/5926)
- Update avatar font and default colors in [#6277](https://github.com/appwrite/appwrite/pull/6277)
- Bump composer to fix migration bug in [#6344](https://github.com/appwrite/appwrite/pull/6344)
- Fix execution call timeout in [#6332](https://github.com/appwrite/appwrite/pull/6332)
- Bump appwrite-assistant to prevent it from crashing w/o open ai key in [#6342](https://github.com/appwrite/appwrite/pull/6342)
- Remove Special Chars from Initials [#6164](https://github.com/appwrite/appwrite/pull/6164)

# Version 1.4.3

## Features
Expand Down
6 changes: 3 additions & 3 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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:1.4.3
appwrite/appwrite:1.4.5
```

### Windows
Expand All @@ -78,7 +78,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:1.4.3
appwrite/appwrite:1.4.5
```

#### PowerShell
Expand All @@ -88,7 +88,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:1.4.3
appwrite/appwrite:1.4.5
```

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

### Windows
Expand All @@ -88,7 +88,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:1.4.3
appwrite/appwrite:1.4.5
```

#### PowerShell
Expand All @@ -98,7 +98,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:1.4.3
appwrite/appwrite:1.4.5
```

Once the Docker installation is complete, 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 completing the installation.
Expand Down
Binary file added app/assets/fonts/inter-v8-latin-regular.woff2
Binary file not shown.
Binary file removed app/assets/fonts/poppins-v9-latin-500.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion app/config/specs/open-api3-1.4.x-client.json

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/open-api3-1.4.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.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-1.4.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.

20 changes: 19 additions & 1 deletion app/config/variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,31 @@
],
[
'name' => '_APP_OPTIONS_FORCE_HTTPS',
'description' => 'Allows you to force HTTPS connection to your API. This feature redirects any HTTP call to HTTPS and adds the \'Strict-Transport-Security\' header to all HTTP responses. By default, set to \'enabled\'. To disable, set to \'disabled\'. This feature will work only when your ports are set to default 80 and 443.',
'description' => 'Allows you to force HTTPS connection to your API. This feature redirects any HTTP call to HTTPS and adds the \'Strict-Transport-Security\' header to all HTTP responses. By default, set to \'enabled\'. To disable, set to \'disabled\'. This feature will work only when your ports are set to default 80 and 443, and you have set up wildcard certificates with DNS challenge.',
'introduction' => '',
'default' => 'disabled',
'required' => false,
'question' => '',
'filter' => ''
],
[
'name' => '_APP_OPTIONS_FUNCTIONS_FORCE_HTTPS',
'description' => 'Allows you to force HTTPS connection to function domains. This feature redirects any HTTP call to HTTPS and adds the \'Strict-Transport-Security\' header to all HTTP responses. By default, set to \'enabled\'. To disable, set to \'disabled\'. This feature will work only when your ports are set to default 80 and 443.',
'introduction' => '',
'default' => 'disabled',
'required' => false,
'question' => '',
'filter' => ''
],
[
'name' => '_APP_OPTIONS_ROUTER_PROTECTION',
'description' => 'Protects server from serving requests from unknown hostnames, and from serving Console for custom project domains. By default, set to \'disabled\'. To start router protection, set to \'enabled\'. It is recommended to enable this variable on production environment.',
'introduction' => '1.4.4',
'default' => 'disabled',
'required' => false,
'question' => '',
'filter' => ''
],
[
'name' => '_APP_OPENSSL_KEY_V1',
'description' => 'This is your server private secret key that is used to encrypt all sensitive data on your server. Appwrite server encrypts all secret data on your server like webhooks, HTTP passwords, user sessions, and storage files. The var is not set by default, if you wish to take advantage of Appwrite encryption capabilities you should change it and make sure to **keep it a secret and have a backup for it**.',
Expand Down
2 changes: 1 addition & 1 deletion app/console
Submodule console updated 126 files
29 changes: 15 additions & 14 deletions app/controllers/api/avatars.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,11 @@
->action(function (string $name, int $width, int $height, string $background, Response $response, Document $user) {

$themes = [
['background' => '#FFA1CE'], // Default (Pink)
['background' => '#FDC584'], // Orange
['background' => '#94DBD1'], // Green
['background' => '#A1C4FF'], // Blue
['background' => '#FFA1CE'], // Pink
['background' => '#CBB1FC'] // Purple
['background' => '#FD366E'], // Default (Pink)
['background' => '#FE9567'], // Orange
['background' => '#7C67FE'], // Purple
['background' => '#68A3FE'], // Blue
['background' => '#85DBD8'], // Mint
];

$name = (!empty($name)) ? $name : $user->getAttribute('name', $user->getAttribute('email', ''));
Expand All @@ -526,11 +525,13 @@
$code = 0;

foreach ($words as $key => $w) {
$initials .= $w[0] ?? '';
$code += (isset($w[0])) ? \ord($w[0]) : 0;
if (ctype_alnum($w[0] ?? '')) {
$initials .= $w[0];
$code += ord($w[0]);

if ($key == 1) {
break;
if ($key == 1) {
break;
}
}
}

Expand All @@ -548,8 +549,8 @@

$punch->newImage($width, $height, 'transparent');

$draw->setFont(__DIR__ . "/../../assets/fonts/poppins-v9-latin-500.ttf");
$image->setFont(__DIR__ . "/../../assets/fonts/poppins-v9-latin-500.ttf");
$draw->setFont(__DIR__ . "/../../assets/fonts/inter-v8-latin-regular.woff2");
$image->setFont(__DIR__ . "/../../assets/fonts/inter-v8-latin-regular.woff2");

$draw->setFillColor(new ImagickPixel('black'));
$draw->setFontSize($fontSize);
Expand Down Expand Up @@ -724,7 +725,7 @@

$text = new \ImagickDraw();
$text->setTextAlignment(Imagick::ALIGN_CENTER);
$text->setFont(__DIR__ . '/../../../public/fonts/Poppins-Bold.ttf');
$text->setFont(__DIR__ . '/../../../public/fonts/Inter-Bold.ttf');
$text->setFillColor(new \ImagickPixel('#FFFFFF'));

if (\strlen($name) > 32) {
Expand Down Expand Up @@ -1108,7 +1109,7 @@

$textName = new \ImagickDraw();
$textName->setTextAlignment(Imagick::ALIGN_CENTER);
$textName->setFont(__DIR__ . '/../../../public/fonts/Poppins-Bold.ttf');
$textName->setFont(__DIR__ . '/../../../public/fonts/Inter-Bold.ttf');
$textName->setFillColor(new \ImagickPixel('#FFFFFF'));

if (\strlen($name) > 32) {
Expand Down
8 changes: 5 additions & 3 deletions app/controllers/api/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
Permission::delete(Role::any()),
],
'resourceId' => $function->getId(),
'resourceInternalId' => $function->getInternalId(),
'resourceType' => 'functions',
'entrypoint' => $entrypoint,
'commands' => $function->getAttribute('commands', ''),
Expand Down Expand Up @@ -1079,7 +1080,7 @@
}

$fileExt = new FileExt([FileExt::TYPE_GZIP]);
$fileSizeValidator = new FileSize(App::getEnv('_APP_FUNCTIONS_SIZE_LIMIT', 0));
$fileSizeValidator = new FileSize(App::getEnv('_APP_FUNCTIONS_SIZE_LIMIT', '30000000'));
$upload = new Upload();

// Make sure we handle a single file and multiple files the same way
Expand Down Expand Up @@ -1495,7 +1496,7 @@
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_EXECUTION)
->param('functionId', '', new UID(), 'Function ID.')
->param('body', '', new Text(8192, 0), 'HTTP body of execution. Default value is empty string.', true)
->param('body', '', new Text(0, 0), 'HTTP body of execution. Default value is empty string.', true)
->param('async', false, new Boolean(), 'Execute code in the background. Default value is false.', true)
->param('path', '/', new Text(2048), 'HTTP path of execution. Path can include query params. Default value is /', true)
->param('method', 'POST', new Whitelist(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], true), 'HTTP method of execution. Default value is GET.', true)
Expand Down Expand Up @@ -1707,7 +1708,8 @@
path: $path,
method: $method,
headers: $headers,
runtimeEntrypoint: $command
runtimeEntrypoint: $command,
requestTimeout: 30
);

$headersFiltered = [];
Expand Down
106 changes: 104 additions & 2 deletions app/controllers/api/health.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
});

App::get('/v1/health/queue')
->desc('Get Queue')
->desc('Get queue')
->groups(['api', 'health'])
->label('scope', 'health.read')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
Expand Down Expand Up @@ -223,7 +223,7 @@
});

App::get('/v1/health/pubsub')
->desc('Get PubSub')
->desc('Get pubsub')
->groups(['api', 'health'])
->label('scope', 'health.read')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
Expand Down Expand Up @@ -387,6 +387,108 @@
$response->dynamic(new Document([ 'size' => Resque::size(Event::CERTIFICATES_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE);
}, ['response']);

App::get('/v1/health/queue/builds')
->desc('Get builds queue')
->groups(['api', 'health'])
->label('scope', 'health.read')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
B60C ->label('sdk.namespace', 'health')
->label('sdk.method', 'getQueueBuilds')
->label('sdk.description', '/docs/references/health/get-queue-builds.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE)
->inject('response')
->action(function (Response $response) {

$response->dynamic(new Document([ 'size' => Resque::size(Event::BUILDS_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE);
}, ['response']);

App::get('/v1/health/queue/databases')
->desc('Get databases queue')
->groups(['api', 'health'])
->label('scope', 'health.read')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.namespace', 'health')
->label('sdk.method', 'getQueueDatabases')
->label('sdk.description', '/docs/references/health/get-queue-databases.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE)
->inject('response')
->action(function (Response $response) {

$response->dynamic(new Document([ 'size' => Resque::size(Event::DATABASE_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE);
}, ['response']);

App::get('/v1/health/queue/deletes')
->desc('Get deletes queue')
->groups(['api', 'health'])
->label('scope', 'health.read')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.namespace', 'health')
->label('sdk.method', 'getQueueDeletes')
->label('sdk.description', '/docs/references/health/get-queue-deletes.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE)
->inject('response')
->action(function (Response $response) {

$response->dynamic(new Document([ 'size' => Resque::size(Event::DELETE_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE);
}, ['response']);

App::get('/v1/health/queue/mails')
->desc('Get mails queue')
->groups(['api', 'health'])
->label('scope', 'health.read')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.namespace', 'health')
->label('sdk.method', 'getQueueMails')
->label('sdk.description', '/docs/references/health/get-queue-mails.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE)
->inject('response')
->action(function (Response $response) {

$response->dynamic(new Document([ 'size' => Resque::size(Event::MAILS_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE);
}, ['response']);

App::get('/v1/health/queue/messaging')
->desc('Get messaging queue')
->groups(['api', 'health'])
->label('scope', 'health.read')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.namespace', 'health')
->label('sdk.method', 'getQueueMessaging')
->label('sdk.description', '/docs/references/health/get-queue-messaging.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE)
->inject('response')
->action(function (Response $response) {

$response->dynamic(new Document([ 'size' => Resque::size(Event::MESSAGING_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE);
}, ['response']);

App::get('/v1/health/queue/migrations')
->desc('Get migrations queue')
->groups(['api', 'health'])
->label('scope', 'health.read')
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
->label('sdk.namespace', 'health')
->label('sdk.method', 'getQueueMigrations')
->label('sdk.description', '/docs/references/health/get-queue-migrations.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE)
->inject('response')
->action(function (Response $response) {

$response->dynamic(new Document([ 'size' => Resque::size(Event::MIGRATIONS_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE);
}, ['response']);

App::get('/v1/health/queue/functions')
->desc('Get functions queue')
->groups(['api', 'health'])
Expand Down
Loading
0