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

🐛 Bug Report: Cannot set min and max values of numeric attribute to null #48

Open
2 tasks done
jaboyc opened this issue Oct 11, 2023 · 2 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@jaboyc
Copy link

jaboyc commented Oct 11, 2023

👟 Reproduction steps

When I attempt to update a numeric attribute (int or float) using Databases.updateIntAttribute() or Databases.updateFloatAttribute():

👍 Expected behavior

I should be able to set the min and max values to null to let Appwrite choose the default values for me.

👎 Actual Behavior

I actually need to pass in a non-null value.

🎲 Appwrite version

Version 0.10.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?

@jaboyc jaboyc added the bug Something isn't working label Oct 11, 2023
@stnguyen90 stnguyen90 self-assigned this Oct 13, 2023
@ChiragAgg5k
Copy link
Member

ChiragAgg5k commented Feb 20, 2025

@jaboyc thanks for raising the issue 🙏 our team will take a look into it

@ChiragAgg5k
Copy link
Member

since we have it as required by default in the main appwrite repo, its marked as so. although it doesnt need to be like so and we can implement the same logic as we do for createAttribute. so shifting the issue to the main Repo, and subsequent update will be made to sdk after

https://github.com/appwrite/appwrite/blob/c4ab6f5aff941b7d3c8034452276014f5d7152cc/app/controllers/api/databases.php#L2111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants