Skip to content

Refactor DruidVersionZip/Part classes#2585

Open
mjgiarlo wants to merge 4 commits intomainfrom
refactor-dvz-dvzp#2519
Open

Refactor DruidVersionZip/Part classes#2585
mjgiarlo wants to merge 4 commits intomainfrom
refactor-dvz-dvzp#2519

Conversation

@mjgiarlo
Copy link
Member

@mjgiarlo mjgiarlo commented Jan 27, 2026

Why was this change made?

Fixes #2519

  • Fix flaky druid version zip spec test by cleaning up more consistently
  • Define the DVZP public interface and shrink it to what is used
  • Define the DVZ public interface and shrink it to what is used
  • Refactor into six new classes in app/services/

TO-DO

  • Seek naming & abstraction review on new classes and their interfaces
  • Fix tests & add test coverage

How was this change tested?

CI

@mjgiarlo mjgiarlo force-pushed the refactor-dvz-dvzp#2519 branch from 4d2feca to 82be245 Compare January 29, 2026 18:38
Copy link
Contributor

@justinlittman justinlittman left a comment

Choose a reason for hiding this comment

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

This is a huge improvement. The naming seems fine to me.

Only significant recommendations are:

  • Add additional documentation to classes / initializers.
  • Consider class-specific errors instead of generic / StandardError.

@mjgiarlo mjgiarlo force-pushed the refactor-dvz-dvzp#2519 branch from 82be245 to 771f736 Compare February 4, 2026 22:51
@mjgiarlo mjgiarlo force-pushed the refactor-dvz-dvzp#2519 branch 3 times, most recently from 8d56edd to e11579e Compare February 5, 2026 01:13
@mjgiarlo mjgiarlo force-pushed the refactor-dvz-dvzp#2519 branch from e11579e to bd4bd18 Compare February 5, 2026 01:15
@mjgiarlo mjgiarlo marked this pull request as ready for review February 5, 2026 01:19
@mjgiarlo mjgiarlo requested a review from jmartin-sul February 5, 2026 01:20
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.

Refactor DruidVersionZip / DruidVersionZipPart

3 participants