You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 Bug Report: Odd min and max values when editing int or float/double attributed #7706
I'm been reproducing this and playing around with it for a bit. I think this behaviour is normal and isn't a bug.
Normally when you create a new document attribute of int or float and provide max/min values, we'll populate the database with those max/min values. Then when you edit them, it would appear back with the same exact values.
Now the max/min field aren't required and you can leave them blank when you create the attribute, and thereby let the max/min values be of those odd values.
I think it's only natural that it displays those values and let you know those are the default max/min values. I don't think this is at all a bug, but it may be possible that we can add an indictor somewhere to notify the user of the default max/min values.
This seems like a serious issue since it affects both integers and doubles, making both attributes impossible to edit. I was able to replicate the issue also on AppWrite Cloud 1.6.
Activity
ItzNotABug commentedon Mar 1, 2024
Probably coming from here -
https://github.com/utopia-php/database/blob/main/src/Database/Validator/Structure.php#L271C17-L284C27.
Joelute commentedon Aug 4, 2024
I'm been reproducing this and playing around with it for a bit. I think this behaviour is normal and isn't a bug.
Normally when you create a new document attribute of int or float and provide max/min values, we'll populate the database with those max/min values. Then when you edit them, it would appear back with the same exact values.

Now the max/min field aren't required and you can leave them blank when you create the attribute, and thereby let the max/min values be of those odd values.

I think it's only natural that it displays those values and let you know those are the default max/min values. I don't think this is at all a bug, but it may be possible that we can add an indictor somewhere to notify the user of the default max/min values.
pmusolino commentedon Dec 14, 2024
This seems like a serious issue since it affects both integers and doubles, making both attributes impossible to edit. I was able to replicate the issue also on AppWrite Cloud 1.6.