-
Notifications
You must be signed in to change notification settings - Fork 171
[API] Implement App storage folder reset #945
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
[API] Implement App storage folder reset #945
Conversation
|
This reset functionality can be tested with latest Alby Hub Upgrade #946 |
504c402 to
57fac93
Compare
Implement simplification per requested at mynodebtc#945 (comment)
57fac93 to
82fa1cc
Compare
Implement simplification per requested at mynodebtc#945 (comment)
82fa1cc to
21ab5a7
Compare
|
Needs a bit more work cause now |
|
Simplified API and works for me now. @tehelsper review, please? |
|
Above error (at #945 (comment)) needs to be fixed as adviced here: |
make separate functions for install_folder and storage_folder
Update api.py
changed to data_folder which is used as variable on application_info.py
Implement simplification per requested at mynodebtc#945 (comment)
This reverts commit 9f01df1.
7ff83a6 to
911f437
Compare
|
Oh, you implemented whole backup/restore straigt forward way. I had idea to include versioning info to backup filee name. |
|
I didn't implement all of it - the functionality was hidden by hiding the buttons, which I was fine with. I missed the app name part hadn't been standardized. Can you combine this into one PR? |
|
I'm going to revert the change. |
|
OK, I'm working on getting the reset functionality back in with a fix. My plan is to fix the naming variables and then work on testing AlbyHub with the config to automate the setup. Have you been working on any of that? |
|
Can you take a look at this? It should be the reset functionality with the name fixes. Let me know if you see any issues. Edit - the backup/restore functions exist, but are unimplemented. We can consider options for how to implement in a future PR. |
Seems we made bit dublicate work :-/ I had this done yesterday: 2910238
I have not started anything with automatization. |
I'll rebase #940 and test.
I have not idea how tar.gz Download could be done - but I like idea very much. I would enable advanced users to take data and so help all kind of situations. I feel fine if you implement tar.gz backup. I wouldn't even need restore - I could do it manually. But such thing would be great if included in MyNode.
Could it be #940 ? |
Implement simplification per requested at mynodebtc#945 (comment)
|
Reset works for me on "master" as intended after this |
|
It looks like #940 basically the same as what was here. Am I missing something? The only diff I see is from a few naming things I modified. The download part should be easy. Re-upload would be harder, but as long as the download part works, it would still be a good step in the right direction, because it would allow for backup and manual re-import. Getting the permissions right on the upload is challenging - some apps seem to handle things differently. Changing all permissions to the app user may work, but I think some apps end up with root permissions if they use docker. I'll have to check later. |
Yes, it was quite the same. I found nothing missing on my rebase.
I think so too. I'm not quite familiar with file handling / tarrring functions of MyNode APIs. So I would have needed to study quite much to use them correctly. (like tmp folder usage and moving / renaming file etc)
That would be something I believe no many bundle node offers either. But I know it's a hard to do, as I did it for my own version of phoenixd App.
likely more harder than untarring local.
Yes, they do - therefore I even made "hack" that service starting uses + to chmod files of from root for backup or something (I quite don't remember wwhat) but root files by dockers are nasty.
No worries - download tar.gz and "free style" scp or so upload and unzipping works for me. More nicer if some other people vote / ask for the feature XD |
First sub-set of Data Management - App Data Reset
This will provide initial functions needed to create complete App Data (Storage) Management
Main PR is #940
Checklist
List of test device(s)
VM MyNode 0.3.36