DBT-397 update to MyCoRe/MIR 2025.12.x #301
Merged
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.
copy legacy code from MyCoRe/MIR 2025.06.x branch here that is deleted now
This pull request introduces several enhancements and fixes across the codebase, focusing on improving access key event handling, updating dependency and plugin configurations, and refining object retrieval and event processing logic. The most notable change is the addition of a new event handler for managing access keys, along with several dependency and code updates to support and streamline related functionality.
Access Key Management Enhancements:
MCRAccessKeyEventHandlerto handle creation, update, and deletion events for objects and derivates, ensuring proper import and cleanup of access keys associated with MyCoRe entities.Build and Dependency Updates:
pom.xmlfrom2025.06.1-SNAPSHOTto2025.12.0-SNAPSHOTand added themycore-junit4test dependency. [1] [2]maven-compiler-pluginto show deprecation and warning messages during test compilation, with a note to migrate from JUnit4 to JUnit5 in the future.Object Retrieval and Event Handling Improvements:
RepairCommands.setMainFile()to useMCRExpandedObjectinstead ofMCRObject, aligning with updated data model usage.MigrationCommands.repairDerivate, removed the logic that added enriched derivate links to metadata, simplifying the repair process.General Code Quality and Bug Fixes:
Attendeeto usegetEMail()instead of the deprecatedgetEMailAddress().DerivateServletFilterand simplified redirect logic by removing unnecessary checks for empty URLs. [1] [2]DerivateServletFilterandVideoSourceResourceto remove the use of timeouts, using the simpler method signature. [1] [2]Dependency and Import Cleanups:
MCRExpandedObjectinRepairCommands.java.These changes collectively improve the maintainability, reliability, and clarity of the codebase, especially around access key management and build processes.