Navigation Menu

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

corrected the ActualFileSize attribute #779

Merged
merged 5 commits into from Feb 20, 2023

Conversation

pgrudra
Copy link
Collaborator

@pgrudra pgrudra commented Feb 17, 2023

Background:
(*Allocation).GetFileMeta() returns JSONString having property ActualFileSize
Upon refresh at frontend, allocation.listDir() is invoked which returns JSONString containing list where each obj has property actual_size. At gosdk, this actual_size=ActualSize.
When file is uploaded & completed is called, allocation.getFileMeta() is called, where we don't get actual_size, but we receive ActualFileSize.
Issue: ActualFileSize is "Size" attribute, but we required "ActualSize" to be displayed at frontend.

Copy link
Member

@peterlimg peterlimg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@service-0chain
Copy link
Contributor

Manual system tests [success] with the following config

config value
tests skipped TRUE
system-tests master
gosdk Size_attribute_mismatch_bug_fix
zboxcli staging
zwalletcli staging
0chain staging
blobber staging
authorizer staging
0box staging
0block staging
0dns staging
explorer staging
0proxy staging
0search staging

@peterlimg peterlimg merged commit e8931c8 into staging Feb 20, 2023
@peterlimg peterlimg deleted the Size_attribute_mismatch_bug_fix branch February 20, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mismatch in Size attribute of files displayed in frontend
3 participants