refactor: deploy CDA UI and API as separate WARs - #1908
Open
krowvin wants to merge 1 commit into
Open
Conversation
Signed-off-by: Charles Graham, SWT <charles.r.graham@usace.army.mil>
MikeNeilson
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This is a stacked comparison PR against #1871 following @MikeNeilson's suggestion to investigate the OpenDCS-style two-WAR deployment.
cwms-data-ui-<version>.warand the API ascwms-data-api-<version>.warROOT.warat/and the API ascwms-data.warat/cwms-data/cwms-dataapplication/cwms-dataAPI traffic through the local compose setupDeployment impact
Districts consuming release artifacts would install and manage two WARs instead of one. That may work well with the new update script because the UI and API are independently packaged, but it is an operational tradeoff we should compare with #1871's single-WAR approach. As Mike noted, production and test will also need WAF routing for the root UI application.
Verification
gradlew :cda-gui:test :cda-gui:checkstyleMain :cda-gui:checkstyleTest :cda-gui:war :cwms-data-api:war :cwms-data-api:prepareDockerBuildnpm test,npm run lint, andnpm run format:checkincda-gui/swagger-ui; the OpenAPI document loads from/cwms-data/swagger-docswith no console errors/swagger-uireturns 200 for HEAD/cwms-data/swagger-docs,/cwms-data/offices,/cwms-data/timezones, and/cwms-data/unitsreturn 200/cwms-dataendpoint remains 404