-
Notifications
You must be signed in to change notification settings - Fork 701
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
WebHost: add startup option to clean datapackages #3207
base: main
Are you sure you want to change the base?
Conversation
Do you think this should also be added to |
No idea, if you think it should, feel free to PR it in. |
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.
Works as advertised.
Additional clarification was made in Discord, so going to post it here so it's not lost. Essentially found out this check will not work for the issue described in #3206 because Leaving my approval, but unless someone can think of another reason this could be useful (maybe there was another way data packages could be corrupt?), I don't think this will be necessary. |
I feel like this should be a click instead, so you can just run |
As for what to clean out, I think it should (also) search for unreferenced game packages, so that when seeds are deleted we also delete the corresponding games packages on the next cleanup. (Since this needs to load all rooms and create a massive set, I don't think that can be done on startup, but needs to run in a separate process.) |
Yeah, I think that should be doable. |
What is this fixing or adding?
Allows cleaning datapackage entries that have the wrong checksum. They're deleted entirely, which should be fine for the server, though some clients may break. This is a very small may though, as it should only affect clients that relied on a miscontructed apworld.
How was this tested?
copied the checksum from one row and the data from another row, then watched how only that row disappeared on startup.
If this makes graphical changes, please attach screenshots.