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

Simplify migration: Add AbstractDoValueMigrationHandlerByMap #1334

Open
wants to merge 1 commit into
base: releases/24.2
Choose a base branch
from

Conversation

matthiaso
Copy link
Member

403145

@matthiaso matthiaso assigned matthiaso and LukasHuser and unassigned LukasHuser Jan 16, 2025
@matthiaso matthiaso requested a review from LukasHuser January 16, 2025 19:54
@matthiaso matthiaso marked this pull request as ready for review January 20, 2025 11:27
* possible old to new mappings. The {@link #initMigrationMap()} method is called only once during object
* initialization.
*/
public abstract class AbstractDoValueMigrationHandlerByMap<T> extends AbstractDoValueMigrationHandler<T> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could add a unit test? See DataObjectMigratorValueMigrationTest which includes multiple value migration handlers. We could add a migration handler similar to HouseTypeFixtureDoValueMigrationHandler_2, but based on the new AbstractDoValueMigrationHandlerByMap

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a test, what do you think about it?

@matthiaso matthiaso force-pushed the features/mot/24.2/403145_instructionRenamingPermission branch 2 times, most recently from d7cebe2 to 82a71b1 Compare January 31, 2025 14:23
@matthiaso matthiaso force-pushed the features/mot/24.2/403145_instructionRenamingPermission branch from 82a71b1 to dcf2f7c Compare January 31, 2025 14:24
@matthiaso matthiaso requested a review from LukasHuser January 31, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants