Skip to content

fix: migration bug#194

Open
lima-limon-inc wants to merge 2 commits intomainfrom
fabrizioorsi/i193-fix-migration
Open

fix: migration bug#194
lima-limon-inc wants to merge 2 commits intomainfrom
fabrizioorsi/i193-fix-migration

Conversation

@lima-limon-inc
Copy link
Copy Markdown
Collaborator

@lima-limon-inc lima-limon-inc commented Apr 17, 2026

Currently, midenup update performed a migration when an upstream channel contained the Migration tag. However, the migration was triggered even when the channel had already been migrated.

This PR fixes this issue by only triggering a migration if the current channel's name matches the Migration's old_channel field.

Additionally, the code was simplified a bit:

  • PartialEq for Channel was removed since it was a bit too side-effect-y and was only used when finding a local Channel's upstream counterpart. Similarly, fn migrated_into was also removed since.
  • Instead, both of thses functionalities were encapsulated entirely inside the find_upstream_counterpart function.

@lima-limon-inc lima-limon-inc force-pushed the fabrizioorsi/i193-fix-migration branch 2 times, most recently from 2257849 to 9cbc701 Compare April 20, 2026 19:26
@lima-limon-inc lima-limon-inc force-pushed the fabrizioorsi/i193-fix-migration branch from 954d200 to a4df986 Compare April 20, 2026 19:48
@lima-limon-inc lima-limon-inc self-assigned this Apr 20, 2026
@lima-limon-inc lima-limon-inc added the check:install PRs only: runs workflows that perform additional end-to-end integration testing label Apr 20, 2026
@bitwalker
Copy link
Copy Markdown
Collaborator

@lima-limon-inc Is this ready for final review/merge?

@lima-limon-inc
Copy link
Copy Markdown
Collaborator Author

@lima-limon-inc Is this ready for final review/merge?

It is ^_^. One small caveat though: there currently is an uninstall-related bug that I'm fixing over on #196 which causes uninstall to fail if a component was installed using an artifact.
This bug is also triggered by the migration pipeline.

@lima-limon-inc lima-limon-inc changed the title (WIP): fix migration bug fix: migration bug Apr 22, 2026
@lima-limon-inc lima-limon-inc marked this pull request as ready for review April 22, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

check:install PRs only: runs workflows that perform additional end-to-end integration testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants