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

[V3 Launcher] Reinstall Red option #1536

Merged
merged 12 commits into from
May 4, 2018
Merged

Conversation

laggron42
Copy link
Contributor

Type

  • Bugfix
  • Enhancement
  • New feature

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 in launcher.py and setup.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.

Kowlin
Kowlin previously requested changes Apr 16, 2018
Copy link
Member

@Kowlin Kowlin left a 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"]
Copy link
Member

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)

Copy link
Contributor Author

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...

@laggron42
Copy link
Contributor Author

Fixed wrong changes. Needs testing

@laggron42
Copy link
Contributor Author

I recorded a video showing the features on the last commit
https://youtu.be/L4rf_ejv4xE

@Kowlin Kowlin dismissed their stale review May 4, 2018 04:24

Review considered stale.

@Kowlin Kowlin dismissed palmtree5’s stale review May 4, 2018 06:00

Review considered stale.

@Kowlin Kowlin merged commit 95ef5d6 into Cog-Creators:V3/develop May 4, 2018
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.

None yet

3 participants