-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[V3 Launcher] Reinstall Red option #1536
Conversation
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.
Changes required since this is removing functionality from another PR.
redbot/setup.py
Outdated
@@ -287,7 +283,7 @@ def basic_setup(): | |||
if confirm("Would you like to import your data? (y/n) "): | |||
await json_to_mongo(current_data_dir, storage_details) | |||
else: | |||
storage_details = instance_data["STORAGE_DETAILS"] | |||
storage_details = default_dirs["STORAGE_DETAILS"] |
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.
NO NO NO. This should NOT have been changed. storage_details
is set to the storage details from the instance settings for a very, very good reason (the actual storage details are needed if the user wants to import from MongoDB to JSON)
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.
That wasn't intended. Seems that's from another PR. Removing that...
Fixed wrong changes. Needs testing |
removed `index: int` because what's being passed there is a string data -> instance_data
I recorded a video showing the features on the last commit |
Type
Description of the changes
This PR adds a new button in the launcher:
Reinstall Red
. This is similar to the v2 option, it can reinstall requirements and discard code changes, reset data, or both. A lit of things were edited inlauncher.py
andsetup.py
to make it (mostly some features moved to a function so they can be used twice without repeating).That is not tested yet because of the packages conflict with
websockets
which makes the update glitching. Please test it and push any changes if you're a maintainer so we can merge this before beta 12.