Repository navigation
[19.0][OU-FIX] event: map badge_format from the legacy column - #6116
Open
JordiBForgeFlow wants to merge 1 commit into
Open
JordiBForgeFlow wants to merge 1 commit into
JordiBForgeFlow wants to merge 1 commit into
Conversation
The pre-migration copies badge_format to its legacy column but then maps the values on badge_format itself, so openupgradelib logs an error for every migration and the mapping reads the column it is writing. Read the old values from the legacy copy instead.
Contributor
which one ? |
pedrobaeza
requested changes
Nov 23, 2026
pedrobaeza
left a comment
Member
There was a problem hiding this comment.
This is not adding value. The column is copied, so the previous code and this one are doing the same. Please check a bit the AI output.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pre-migration copies badge_format to its legacy column but then maps the values on
badge_format itself, so openupgradelib logs an error for every migration and the
mapping reads the column it is writing. This reads the old values from the legacy copy
instead.
Steps to reproduce: migrate a 18.0 database with event installed. The log shows an
ERROR from map_values for event_event.badge_format. With the fix there is no error and
the badge formats are mapped.
The migrated values are the same with and without the fix, as map_values still runs
on the same column, so no migration test can tell them apart: checked on the migration
log of the OpenUpgrade test database, where the ERROR is gone and the mapping reads
openupgrade_legacy_19_0_badge_format.
Assisted by AI