-
Notifications
You must be signed in to change notification settings - Fork 54
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
Tweak some file and register apis #2451
Tweak some file and register apis #2451
Conversation
Hi folks, I know it wants me to change the commit message from 'Fix' to 'fix' but I've tried multiple times and have to give up as when I do an interactive rebase I get merge conflicts that I dare not touch. I'll have to leave this now but hope you can either fix it easily or pick up the changes some other way. Sorry for the mess. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent contribution as always @happybeing! Approved it, although the PR has some conflicts due to the recent renaming of everything!
@grumbach I'm not very good at this! I have latest main and merged it into the PR branch, resolved conflicts and have pushed. So I'm not seeing any conflicts locally. Maybe the best way to do this is for you to just grab the following and put it into impl Client in safe_network/autonomi/src/client/fs.rs:
You can forget the register change as I understand Registers are being removed and I'll be refactoring my code for Transactions once the API is in place. My git/github skills seem to have abandoned me here. I don't understand what's going on. Sorry! |
Thanks a lot for this one @happybeing. I actually looked at this last week but forgot to respond. This is high on my list! I will change these APIs with a refactor soon. You're completely right that the power user doesn't have a lot of options with the current API, so this needs some love. I'll try and re-use your branch/commits and fix the conflicts. |
Closed as @b-zee will take this into account during the API refactor work. |
Description
Includes tweaks to register and file APIs which include a fix for issue 2434:
dir_upload()
methods more granular and a way to access the list of uploaded pathsRelated Issue
Fixes #2434
Type of Change
Please mark the types of changes made in this pull request.
Checklist
Please ensure all of the following tasks have been completed: