Skip to content
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

1.4.x #6135

Merged
merged 107 commits into from
Sep 7, 2023
Merged

1.4.x #6135

merged 107 commits into from
Sep 7, 2023

Conversation

christyjacob4
Copy link
Member

@christyjacob4 christyjacob4 commented Sep 3, 2023

What does this PR do?

Preparations for Appwrite 1.4.2

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

stnguyen90 and others added 30 commits August 31, 2023 08:40
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.
…firm

Make install confirmation case insensitive
The method has been removed since it's no longer necessary.
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.
Update migration script to not remove schedule from functions
Fix events not triggering functions and path not a string bugs
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.
- Create additional attributes for the deployments collection.
- Set the commands attribute for the functions and deployments based on
  runtime.
Set new resourceType attribute to function since all variables were
function variables.
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).
Default to function commands only if commands weren't supplied.
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.
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.
Override forEachDocument() to skip the cache collection
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.
Fix Not Found error when deploying function from git
Add required params for scheduled functions
@christyjacob4
Copy link
Member Author

Screenshot 2023-09-07 at 2 31 50 AM

The accounts tests seem to be failing on the CI but I've made sure to check they pass locally.

Screenshot 2023-09-07 at 2 35 32 AM

@christyjacob4 christyjacob4 merged commit 4dd9d54 into master Sep 7, 2023
5 checks passed
CHANGES.md Show resolved Hide resolved
@@ -59,13 +60,13 @@
'migrations.write',
'vcs.read',
'vcs.write',
'assistant.read',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does removing this mean console can't access the assistant scope?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still works:
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How? The route is only available for admin auth but admin doesn't have the scope required 🤔

app/config/variables.php Show resolved Hide resolved
app/controllers/mock.php Show resolved Hide resolved
- _APP_DB_PASS

appwrite-assistant:
image: appwrite/assistant:0.2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be 0.2.1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.2.1 added dotenv which should only be used for dev so we're okay without it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea we can

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it required to read the API key from the env?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants