Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Duplicated - fix(upgrade): Fetch package from its installed cluster#3545

Closed
antgamdia wants to merge 2 commits into
masterfrom
fix-package-fetch-logic
Closed

Duplicated - fix(upgrade): Fetch package from its installed cluster#3545
antgamdia wants to merge 2 commits into
masterfrom
fix-package-fetch-logic

Conversation

@antgamdia
Copy link
Copy Markdown
Contributor

@antgamdia antgamdia commented Oct 5, 2021

edit(antgamdia): duplicating PR from our branch to avoid some permission-related issues after the forked repo was migrated to another repository. If CI passes, this PR should be ready to be merged. -- all credits of this PR should go to .aanthonyrizzo

PR comments at #3525

Description of the change

This PR addresses (what I think is a bug) regarding the fetching of Packages when upgrading.

Current behavior

When navigating to the upgrade form for deployments that are installed in the "default" cluster. The upgrade form fails to fetch the applicable package details if it is looking in the wrong cluster.
image

New behavior

When fetching the package details, we use the cluster that is defined in the AvailablePackageDetail property when fetching the package. This should lead to correct fetching behavior.

Benefits

Global packages that are installed in the "" cluster but are deployed in the "default" can now be upgraded.

Possible drawbacks

I don't believe there are any.

Applicable issues

I did not create an issue since I was experimenting w/ solutions locally and seemed to have solved it.

Additional information

I believe this is a relatively impactful bug that is present in 05775ff and should be addressed before the next major release. I have not pinpointed the exact commit that broke this behavior.

.antgamdia .absoludity for visibility

@antgamdia
Copy link
Copy Markdown
Contributor Author

Closing as the initial PR was merged (it was just a transient CI issue).

@antgamdia antgamdia closed this Oct 5, 2021
@antgamdia antgamdia deleted the fix-package-fetch-logic branch October 5, 2021 23:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants