Skip to content

[DPC-5384] Me/dpc 5384 dw upgrade#3004

Merged
MEspositoE14s merged 11 commits into
mainfrom
me/dpc-5384-DW-upgrade
May 19, 2026
Merged

[DPC-5384] Me/dpc 5384 dw upgrade#3004
MEspositoE14s merged 11 commits into
mainfrom
me/dpc-5384-DW-upgrade

Conversation

@MEspositoE14s
Copy link
Copy Markdown
Contributor

🎫 Ticket

https://jira.cms.gov/browse/DPC-5384

🛠 Changes

Bumped DropWizard from 4.x to 5.0.1 and updated code where necessary.

ℹ️ Context

  • DropWizard 4.x had reached end of life.
  • Jetty 11 was accumulating Snyk alerts that are only fixed in 12.x, and Jetty 12 is only supported in DropWizard 5.

🧪 Validation

CI passes and services can start and run.

@MEspositoE14s MEspositoE14s requested a review from a team as a code owner May 11, 2026 14:24
@lukey-luke
Copy link
Copy Markdown
Contributor

Looks good to me! Rails dependencies seem to be causing issues with the pipelines still, but all java workflows are passing ✅

@MethodSource("downloadArgs")
void canDownloadFiles(boolean compressFile, Map<String, String> requestHeaders) throws IOException {
String testData = "test data".repeat(500);
String testData = "test data".repeat(50);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I reduced this because the test is still occasionally failing due to resource limitations.

ashley-weaver
ashley-weaver previously approved these changes May 13, 2026
Copy link
Copy Markdown
Contributor

@ashley-weaver ashley-weaver left a comment

Choose a reason for hiding this comment

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

🙌

enabled: true
schemaValidation: false
schematronValidation: false
schematronValidation: false # Schematron has been deprecated, we should remove this in the future.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we have a ticket for this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just created DPC-5450.

@MEspositoE14s MEspositoE14s requested a review from a team May 15, 2026 15:03
@MethodSource("downloadArgs")
void canDownloadFiles(boolean compressFile, Map<String, String> requestHeaders) throws IOException {
String testData = "test data".repeat(500);
String testData = "test data".repeat(50);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey @MEspositoE14s, instead of using .repeat(50) here, why not just pass an example thats closer to what the data would look like?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We could have, and I don't feel particularly strongly about it either way so I'm open to switching it, but from the point of view of the DataResource endpoint it doesn't care what's in the file. It doesn't even attempt to read it, just compress and uncompress it. I just wanted some junk data and this was an easy way to get it with one line of code.

Comment on lines -44 to -48
bind(ValidatorFactory.class).toProvider(ValidatorFactoryProvider.class);
bind(ConfiguredValidator.class).to(InjectingConfiguredValidator.class);

bind(DPCProfileSupport.class).in(Scopes.SINGLETON);
bind(FhirValidator.class).toProvider(FHIRValidatorProvider.class);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How come we no longer need ValidatorFactory.class and FhirValidator.class?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These were replaced with the @Provides methods later in the same class.

  • ValidatorFactory provideValidatorFactory(...)
  • FhirValidator provideFhirValidator(...)

Doing it this way lets us configure the instances that get bound to ValidatorFactory and FhirValidator.

Copy link
Copy Markdown
Contributor

@Jose-verdance Jose-verdance left a comment

Choose a reason for hiding this comment

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

LG!

@MEspositoE14s MEspositoE14s merged commit 5628899 into main May 19, 2026
25 of 27 checks passed
@MEspositoE14s MEspositoE14s deleted the me/dpc-5384-DW-upgrade branch May 19, 2026 15:40
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.

4 participants