-
Notifications
You must be signed in to change notification settings - Fork 34
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
iRods microservice does not catch ibun (zip/unzip) actions #5418
Comments
UPDATE: after repairing the resource and ingesting all irods files, then running command to refresh size metadata, I see: >>> from hs_core.models import BaseResource
>>> res = BaseResource.objects.get(short_id="62dfabfc99c64878883e58383182dd92")
>>> res.size
315937358286
>>> from hs_core.hydroshare.utils import convert_file_size_to_unit
>>> convert_file_size_to_unit(res.size, 'gb')
294.2395939361304
>>> from hs_tools_resource.utils import convert_size
>>> convert_size(res.size)
'294.24 GB'
>>> from django.template.defaultfilters import filesizeformat
>>> filesizeformat(res.size)
'294.2\xa0GB' We might see quite a bit of variation depending on how we convert size |
closing as no longer needed |
we've noticed that in some cases the size displayed on resource landing page differs vastly from that in iRods
Example:
Perhaps related to #5182
Originally posted by @devincowan in #5262 (comment)
The text was updated successfully, but these errors were encountered: