1
0
Fork 0
mirror of synced 2024-07-05 22:51:24 +12:00
Commit graph

17517 commits

Author SHA1 Message Date
Steven Nguyen 65e2e79457
Fix create execution request filter from previous SDK version
When an older SDK executes a function without passing any data, the
data param is unset/null so we need to make sure to handle that case.
2023-09-04 16:10:49 -07:00
Christy Jacob 4e00f61519
Merge pull request #6144 from appwrite/fix-cache-migration
Override forEachDocument() to skip the cache collection
2023-09-04 18:03:47 -04:00
Steven Nguyen ceb1188e8a
Override forEachDocument() to skip the cache collection
Skip the cache collection because:

1. There may be * in the $id of the document which causes problems
   when paginating with a cursor.
1. Nothing was done to the cache collection so we don't need to process
   it.
2023-09-04 13:25:27 -07:00
Steven Nguyen 3c7c44adda
Fix _APP_EXECUTOR_HOST for upgrades
As of 1.4.0, the hostname of the executor should be executor rather than
appwrite-executor. The problem is our install command always uses the
existing installation's variable values as the default for the upgrade.
This means the _APP_EXECUTOR_HOST will retain it's old value.

This PR Adds an overwrite key to variables.php to allow overwriting the
variable value regardless of whatever was in the previous installation.
2023-09-04 11:06:43 -07:00
Matej Bačo 7588a9c4ec Make v2 functions work again 2023-09-04 19:53:25 +02:00
Christy Jacob 22745e0418
Merge pull request #6125 from appwrite/fix-functions-backwards-compatibility
Fix CLI backwards compatibility
2023-09-04 12:28:03 -04:00
Steven Nguyen c7929572f3
Fix builds migration 2023-09-04 09:04:15 -07:00
Steven Nguyen 605ee2f7c5
Update create deployment default commands
Default to function commands only if commands weren't supplied.
2023-09-04 09:04:15 -07:00
Christy Jacob a1c278e34e
Merge pull request #6134 from appwrite/fix-create-phone-session-abuse-key
Fix create phone session abuse key
2023-09-03 17:41:54 -04:00
Steven 62065a1c33 Fix create phone session abuse key
Create phone session doesn't have anything to do with email. The key
name should be email just for clarity (even though, technically, it
doesn't matter).
2023-09-03 21:37:02 +00:00
Steven 397d6350cd Fix Not Found error when deploying function from git 2023-09-03 21:25:32 +00:00
Steven Nguyen 87b0851092
Fix executions migrations 2023-09-02 19:13:15 -07:00
Steven Nguyen 9aeb15c337
Fix variables migration
Set new resourceType attribute to function since all variables were
function variables.
2023-09-02 18:35:26 -07:00
Steven Nguyen f317d33fc7
Skip migrating domains without project because it would throw an error 2023-09-02 18:06:50 -07:00
Steven Nguyen 03c2a16306
Fix update migrations for functions and deployments
- Create additional attributes for the deployments collection.
- Set the commands attribute for the functions and deployments based on
  runtime.
2023-09-02 17:29:38 -07:00
Steven Nguyen a609759951
Make runtime optional when updating a function
This is important for backwards compatibility since it wasn't possible
to update a function runtime in previous versions and it was never
included in the request.
2023-09-02 16:37:40 -07:00
Jake Barnby 07fc59b5f3
Add migrations worker 2023-09-01 19:17:37 -04:00
Christy Jacob f4cba83072 chore: update default env variables 2023-09-01 18:46:49 -04:00
Christy Jacob fad4bfcb1c chore: move env variable to dockerfile 2023-09-01 17:18:52 -04:00
Christy Jacob b3807e6e22 chore: move env variable to dockerfile 2023-09-01 17:17:58 -04:00
Christy Jacob 036b565f8f chore: add missing env variable 2023-09-01 17:09:15 -04:00
Christy Jacob 31a7cca906 chore: add missing env variable 2023-09-01 17:08:51 -04:00
Christy Jacob 3fd77bdda7 chore: revert composer.lock 2023-09-01 15:29:30 -04:00
Christy Jacob 61c054c20b chore: update deps 2023-09-01 15:25:16 -04:00
Christy Jacob 03073d50fc Merge branch '1.4.x' of github.com:appwrite/appwrite into chore-cleanup-dockerfile 2023-09-01 15:24:02 -04:00
Jake Barnby f47aa91ff1
Merge pull request #6109 from appwrite/fix-1.4-bugs
Fix events not triggering functions and path not a string bugs
2023-09-01 15:15:55 -04:00
Jake Barnby 017cd75071
Merge pull request #6102 from appwrite/fix-file-security-check
Fix fileSecurity check
2023-09-01 15:11:03 -04:00
Jake Barnby 1dc2c08e15
Merge pull request #6095 from appwrite/fix-function-schedule-migration
Update migration script to not remove schedule from functions
2023-09-01 15:06:37 -04:00
Christy Jacob aebbafcb0f Merge branch '1.4.x' of github.com:appwrite/appwrite into chore-update-sdks 2023-09-01 13:25:42 -04:00
Christy Jacob dcdfeed391 Merge branch 'master' of github.com:appwrite/appwrite into chore-update-sdks 2023-09-01 13:25:27 -04:00
Christy Jacob 717daf1853 chore: update chnagelog 2023-09-01 12:53:20 -04:00
Khushboo Verma 7013bc94a6 Fix events triggering functions and path not a string bugs 2023-09-01 21:15:53 +05:30
Torsten Dittmann 1b2cda81d0
Merge pull request #6101 from appwrite/fix-remove-route-setisactive
Remove route setIsActive() call
2023-09-01 10:13:37 +02:00
Steven Nguyen 9bc6011876
Fix fileSecurity check
Because of the `getAttributes()` call, `$fileSecurity` was always true
which lead to invalid permission check. This resulted in files being
deleted when a user had delete permissions on the file even though
they didn't on the bucket.
2023-08-31 20:28:13 -07:00
Steven Nguyen 073172d84b
Remove route setIsActive() call
The method has been removed since it's no longer necessary.
2023-08-31 19:18:13 -07:00
Christy Jacob 891099c7c3
Merge pull request #6100 from appwrite/chore-generate-specs
chore: generate specs
2023-09-01 06:05:41 +04:00
Christy Jacob 7f42ca2b7b chore: generate specs 2023-08-31 21:52:28 -04:00
Christy Jacob bf4444b045 chore: update sdks for apwrite 1.4.1 2023-08-31 18:08:24 -04:00
Jake Barnby 36698d180c
Merge pull request #6097 from appwrite/feat-6094-case-insensitive-confirm
Make install confirmation case insensitive
2023-08-31 15:30:14 -04:00
Steven Nguyen dcc676a0c9
Make install confirmation case insensitive
When a previous installation is found during installation/upgrade, the
user is prompted to confirm whether they want to overwrite it. We
originally only accepted 'Y', but this PR changes it to accept 'y' as
well to reduce friction.
2023-08-31 12:25:42 -07:00
Christy Jacob caf53bb783
Merge pull request #6096 from appwrite/feat-github-cache-trigger
Update the trigger for the cleanup actions cache workflow
2023-08-31 20:34:45 +04:00
Steven Nguyen a6e9fbfa8d
Update the trigger for the cleanup actions cache workflow
Workflow should trigger on pull_request.closed, not all pull_request.
2023-08-31 09:26:42 -07:00
Christy Jacob 69e5e7f2da
Merge pull request #6080 from appwrite/feat-github-cache
Create a GH workflow to cleanup the GH cache
2023-08-31 20:02:06 +04:00
Steven Nguyen c8d6ac0267
Update migration script to not remove schedule from functions 2023-08-31 08:40:53 -07:00
Jake Barnby aced75fd05
Merge pull request #6072 from appwrite/1.4.x
1.4 Fixes
2023-08-31 00:31:59 -04:00
Jake Barnby 458dd8c97d
Merge pull request #6084 from appwrite/chore-update-migrations
Chore update migrations
2023-08-31 00:21:57 -04:00
Jake Barnby ebf942339a
Update migrations version 2023-08-31 00:14:34 -04:00
Christy Jacob 60df7af3f7
Merge pull request #6083 from appwrite/refactor-migration-connect-scope
Update firebase connect scope
2023-08-31 06:50:58 +04:00
Jake Barnby fdb7218978
Update firebase connect scope 2023-08-30 22:48:51 -04:00
Jake Barnby 2fb7a1c862
Merge pull request #6081 from appwrite/fix-sender-name
Fix swapped from/to name
2023-08-30 20:55:59 -04:00