Skip to content

Big package and mod installation refactoring#148

Merged
paoloambrosio merged 6 commits into
OpenSimTools:mainfrom
paoloambrosio:147-config-callbacks
Mar 17, 2026
Merged

Big package and mod installation refactoring#148
paoloambrosio merged 6 commits into
OpenSimTools:mainfrom
paoloambrosio:147-config-callbacks

Conversation

@paoloambrosio
Copy link
Copy Markdown
Contributor

@paoloambrosio paoloambrosio commented Mar 16, 2026

  • Refactored PackagesUpdater tests
  • Refactored ModPackagesUpdater and added tests
    • Extacted the logic for checking if a package is bootfiles into a dedicated interface IBootfilesNameChecker
    • Extracted the logic for creating mod installers into a dedicated interface IModInstallerFactory
  • Refactored ModInstaller and added tests
    • Moved PostProcessor functionality to BaseModInstaller
  • Transformed many constants into default config
  • Refactored BootfilesInstaller and added test
    • Changed processing events to be called for each section only if not empty
  • Fix configuration files not always tracked (closes Config files not executing callbacks #147)
    • Execute callbacks during post-processing
    • Refactoring of callback handling

- Extacted the logic for checking if a package is bootfiles into a
  dedicated interface `IBootfilesNameChecker`
- Extracted the logic for creating mod installers into a dedicated
  interface `IModInstallerFactory`
- Refactored `ModPackagesUpdater` to use these new interfaces, improving
  separation of concerns and testability
- Transformed many constants into default config
- Added test for BootfilesInstaller
- Minor refactor to make it more readable
- Post processing event for each section only if not empty
- Execute callbacks during post-processing
- Test behaviour
- Refactoring of callback handling
@paoloambrosio paoloambrosio marked this pull request as ready for review March 17, 2026 06:34
@paoloambrosio paoloambrosio changed the title Execute callbacks for mod config files Big package and mod installation refactoring Mar 17, 2026
@paoloambrosio paoloambrosio merged commit 354ac23 into OpenSimTools:main Mar 17, 2026
1 check passed
@paoloambrosio paoloambrosio deleted the 147-config-callbacks branch March 17, 2026 06:50
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.

Config files not executing callbacks

1 participant