appwrite / appwrite/console

🐛 Bug Report: Improve Message on Execution Tab

Open
#1,446 4 comments 0 reactions 1 assignee Claimed by @stnguyen90 View on GitHub
bug product / functions
Dominant language
Svelte
Stars
393
Forks
260
Avg merge
6h 53m
Merged PRs (30d)
24

Description

### 👟 Reproduction steps

The message on the execution tab of a Function shows below -

![function_execution_messages](https://github.com/appwrite/console/assets/20625965/975e7666-c7bf-4ff2-8811-aecade227d7e)

---
The message isn't 100% accurate though, it should instead be -
1. Deployment Exists - `You have no execution logs. Execute the Function to see see it here.`
2. Deployment Doesn't Exist - `Function has no deployment. Create, activate & execute a deployment to see the logs here.`

Also, the `Execute` button shows when there's no deployment & clicking it returns a response from backend - `Deployment not found. Create a deployment before trying to execute a function` which is fine but this can also be improved with a pre-check of deployment existence.

### 👍 Expected behavior

Better message should be shown.

### 👎 Actual Behavior

Message isn't 100% accurate.

### 🎲 Appwrite version

Appwrite Cloud

### 💻 Operating system

Linux

### 🧱 Your Environment

_No response_

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

- [X] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [X] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.