10000 🐛 Bug Report: Project Global Variables Don't Work in Functions · Issue #6113 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🐛 Bug Report: Project Global Variables Don't Work in Functions #6113

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

Closed
2 tasks done
stnguyen90 opened this issue Sep 1, 2023 · 0 comments · Fixed by #6150
Closed
2 tasks done

🐛 Bug Report: Project Global Variables Don't Work in Functions #6113

stnguyen90 opened this issue Sep 1, 2023 · 0 comments · Fixed by #6150
Assignees
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.
Milestone

Comments

@stnguyen90
Copy link
Contributor

👟 Reproduction steps

  1. Create a project global variable
  2. Create a function that reads the variable
  3. Execute the function

👍 Expected behavior

The project variable is available in the function.

👎 Actual Behavior

The project variable is not available in the function.

I created a global variable named APPWRITE_ENDPOINT:

image

I deployed this code:

import 'dart:async';
import 'dart:io';

Future<dynamic> main(final context) async {
  return context.res.json({
    'environment': Platform.environment,
  });
}

I deployed the function and made sure it didn't have any pending changes to be deployed:

image

Execution:

image

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@stnguyen90 stnguyen90 added bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions. labels Sep 1, 2023
@stnguyen90 stnguyen90 added this to the 1.4.2 milestone Sep 1, 2023
@stnguyen90 stnguyen90 moved this to In Progress in 1.4 release Sep 1, 2023
@stnguyen90 stnguyen90 modified the milestones: 1.4.2, 1.4.3 Sep 2, 2023
@stnguyen90 stnguyen90 assigned Meldiron and unassigned vermakhushboo Sep 4, 2023
@stnguyen90 stnguyen90 linked a pull request Sep 5, 2023 that will close this issue
3 tasks
@stnguyen90 stnguyen90 mentioned this issue Sep 6, 2023
3 tasks
@stnguyen90 stnguyen90 moved this from In Progress to Code Review in 1.4 release Sep 6, 2023
@github-project-automation github-project-automation bot moved this from Code Review to Done in 1.4 release Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants
0