feat(ui): add org.opennms.web.ui opt-in for next-generation UI#5
Open
cnewkirk wants to merge 4 commits into
Open
feat(ui): add org.opennms.web.ui opt-in for next-generation UI#5cnewkirk wants to merge 4 commits into
cnewkirk wants to merge 4 commits into
Conversation
added 4 commits
April 27, 2026 20:43
This was referenced Apr 29, 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
Adds a single system property
org.opennms.web.ui(defaultclassic) that gates whether/opennms/shows the legacy Vaadin frontPage or redirects to the redesigned Vue SPA at/ui/. The default is classic, so this PR is a zero-impact change for upgraders — admins must explicitly opt in.What changes
FrontPageControllerchecks the property ahead of the dashboard-role redirect;nextshort-circuits toredirect:/ui/.index.jspdoes the same in JSP form so the Jetty welcome-file path also opts in.ui.propertiesships inetc/opennms.properties.d/(commented-out) documenting the property.bin/opennms-uiadmin script (use classic|next,status) writes the property idempotently and prompts a restart — no manual file editing required.How an admin uses it
Or edit
etc/opennms.properties.d/ui.propertiesdirectly. Either way, opt-out bybin/opennms-ui use classicand restart.Test plan
mvn test -pl opennms-webapp -Dtest=FrontPageControllerTest— 5/5 passing (default → classic,next→ /ui/,NEXTcase-insensitive, classic property → not /ui/,nextprecedence overdashboard.redirect)bin/opennms-uismoke tests —status/use next/use classic/use bogus(idempotent writes, no duplicate lines, exits non-zero on bad input)developon JDK 21/opennms/— expect classic; set tonext, restart, hit again — expect Vue SPA at/ui/Relationship to other PRs in this series
/ui/is served (which Vue SPA bundle the request resolves to); this PR controls whether/ui/is the active interface in the first place. They are functionally independent — either can land first — but they are most useful together.Toward a user-friendly opt-in/opt-out
This PR is the foundation: a single property + admin script. A natural follow-up is a small in-UI control (e.g. an admin-only toggle in the classic UI's settings) that writes the property and asks the admin to restart, eliminating the shell step entirely. That work is intentionally NOT in this PR to keep the gate mechanism reviewable in isolation.