codalab / codabench

Codabench is a flexible, easy-to-use and reproducible benchmarking platform. Check our paper at Patterns Cell Press https://hubs.li/Q01fwRWB0
Apache License 2.0
60 stars 26 forks source link

Changing file_size value in Django admin interface is not working. #1468

Open ObadaS opened 1 month ago

ObadaS commented 1 month ago

Hello,

Changing the file_size value in the Django admin interface is not working when the value is 0 or less. While the page says that the value has been updated, going back into the objects page shows the original value instead of the updated one.

I checked the value in the database to make sure it's not just a graphical bug, but the value is unchanged there too.

It seems to only be a problem when the value is 0 or lower (it gets changed back to the original value).

Changing the value to something else higher than 0 works well, but putting 0 or less will change it back to the original value instead of the previous positive value.

Didayolo commented 4 weeks ago

What is the goal of manually changing the file_size using Django admin interface?

Shouldn't the file size always reflect the size of the file? I may be missing something here.

ObadaS commented 4 weeks ago

The goal is limited, I found this problem after trying to apply the Simple Test of #1465

This is definitely not an important problem to fix, but I thought it would be interesting to at least have it documented, in case we might need to change the file_size manually in the future for some other reason.