appwrite / appwrite/console

🐛 Bug Report: Filters "greaterThan" / "greaterThanEqual" treat all input as numbers.

Open
#1,175 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Svelte
Stars
393
Forks
260
Avg merge
6h 53m
Merged PRs (30d)
24

Description

### 👟 Reproduction steps

In any collection in the console, try using a String that cant be parsed to a number in combination with a "greater than" or "greater than equal" query.

### 👍 Expected behavior

The query is executed and documents are shown, similar to how it is handled when "less than" or "less than equal" is used.

### 👎 Actual Behavior

Error page, and the backend call is executed with null instead of the actual query string.

### 🎲 Appwrite version

Appwrite Cloud

### 💻 Operating system

Windows

### 🧱 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.