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

[Bug] New dependencies of upgraded mods missing from change set #3559

Closed
mwerle opened this issue Apr 6, 2022 · 7 comments · Fixed by #3560
Closed

[Bug] New dependencies of upgraded mods missing from change set #3559

mwerle opened this issue Apr 6, 2022 · 7 comments · Fixed by #3560
Labels
Bug Something is not working as intended Enhancement New features or functionality GUI Issues affecting the interactive GUI Relationships Issues affecting depends, recommends, etc.

Comments

@mwerle
Copy link
Contributor

mwerle commented Apr 6, 2022

CKAN 1.30.4; Debian GNU/Linux 11; Mono 6.12.0.122

Problem

I went to update a mod recently (X Science! Continued) and it now contains new dependencies after having been taken over by another developer.

Apart from confirming the list of mods to update, the new dependencies were not listed or needing to be confirmed during this step. It was only when the download started that I noticed the additional mods. I had to kill the CKAN process in order to abort the update (the "Cancel" button was, for some reason, unresponsive)

Suggestions

I'd like CKAN to pop up a similar confirmation as happens when first installing a mod; that is, listing all new dependencies during the confirmation step.

Alternatively/relatedly, there is no way to check whether a new version of a mod has new dependencies. The dependencies list in the UI only shows the dependencies of the currently installed version. It would be nice to be able to display the information about another version of the mod.

Semi-Relatedly, it would be nice to "pin" a mod to its current version, to prevent it from being updated when using the "Add available updates" button.

Semi-Relatedly, it would be nice to be able to blacklist mods, which would prevent any updates to existing mods which depend on blacklisted mods. (EDIT: This is actually raised in #3129)

@HebaruSan
Copy link
Member

Semi-Relatedly, it would be nice to "pin" a mod to its current version, to prevent it from being updated when using the "Add available updates" button.

That exists: #3220

@HebaruSan HebaruSan added Enhancement New features or functionality GUI Issues affecting the interactive GUI Relationships Issues affecting depends, recommends, etc. Bug Something is not working as intended labels Apr 6, 2022
@HebaruSan
Copy link
Member

I'd like CKAN to pop up a similar confirmation as happens when first installing a mod; that is, listing all new dependencies during the confirmation step.

Huh, the change set preview screen is shown, but the dependencies are missing. I think we can safely regard that as a simple bug in the change set preview screen; it should be showing those new installs as dependencies of the upgrade.

image

image

@HebaruSan HebaruSan changed the title [Feature] Request confirmation if a mod update pulls in new dependencies [Bug] New dependencies of upgraded mods missing from change set Apr 6, 2022
@mwerle
Copy link
Contributor Author

mwerle commented Apr 6, 2022

Semi-Relatedly, it would be nice to "pin" a mod to its current version, to prevent it from being updated when using the "Add available updates" button.

That exists: #3220

Huh.. I did quite a bit of searching (terms : pin / hold / keep) and could not find this. Thank you!!

@HebaruSan
Copy link
Member

HebaruSan commented Apr 6, 2022

This line explicitly excludes upgrades from the dependency listing logic:

&& change.ChangeType != GUIModChangeType.Update)

I wonder why we did that...

Looks like it's just always been that way since the dependencies were added to the change set in #1412.

@HebaruSan
Copy link
Member

OK, that wasn't too bad... 😌

image

Only complication was this line was actually enqueueing the old version, not the upgraded version:

modules_to_install.Add(change.Mod);

@HebaruSan
Copy link
Member

There should be a test build under the Artifacts dropdown here when it finishes compiling:

https://github.com/KSP-CKAN/CKAN/pull/3560/checks

@HebaruSan
Copy link
Member

That exists: #3220

Huh.. I did quite a bit of searching (terms : pin / hold / keep) and could not find this. Thank you!!

Hmm, ideally it would be more easily discoverable in the app itself. Any suggestions? I guess we could look into auto-creating a Held label for existing users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as intended Enhancement New features or functionality GUI Issues affecting the interactive GUI Relationships Issues affecting depends, recommends, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants