-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
[Fix] Ensure manifest in install info #3508
Conversation
].getInstallInfo(element.params.appName, element.params.platformToInstall, { | ||
branch: element.params.branch, | ||
build: element.params.build | ||
}) |
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.
branch
and build
are not in an optional options
3rd argument for gog
@@ -73,7 +68,7 @@ export function addNewApp({ | |||
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */ | |||
|
|||
export function installState(appName: string, state: boolean) { | |||
export function installState() { |
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.
we don't need the arguments in this functions because we don't use them
removing to avoid importing types we don't need
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.
lgtm
When getting the install info for legendary games, it sometimes happens that we have invalid data cached that doesn't have
manifest
info.In the past that lead to the InstallDialog to be stuck fetching the install info forever, with the latest changes for the gogdl_refactor that produces a javascript exception killing the react app:
Error: Cannot use 'in' operator to search for 'perLangSize' in null]
This PR addresses that with 3 changes:
manifest
property, it doesn't use the cache and fetches a new onemanifest
property, it's retried up to 3 timesmanifest
property after the retries, it throws an error instead of storing the wrong dataI had to do some changes in the parameters to be able to support different extra params for the different stores.
I understand this fixes #3249
Use the following Checklist if you have changed something on the Backend or Frontend: