Skip to content

NMS-19542: Add search to SNMP Config definitions and profiles, layout updates#8350

Merged
synqotik merged 9 commits intofeatures/snmp-config-db-migrationfrom
jira/NMS-19542-snmp-config-search
Mar 16, 2026
Merged

NMS-19542: Add search to SNMP Config definitions and profiles, layout updates#8350
synqotik merged 9 commits intofeatures/snmp-config-db-migrationfrom
jira/NMS-19542-snmp-config-search

Conversation

@synqotik
Copy link
Contributor

@synqotik synqotik commented Mar 12, 2026

Add search to SNMP Config definitions and profiles.

This is a case-insensitive, client-side search. There should not be more than say 50-100 definitions, so server-side search is not really necessary.

For definitions, this searches location (i.e. Monitoring Location) as well as any part of any specific IP, IP range or IPLIKE expression.

For profiles, this searches labels and filter expressions.

In addition, this PR makes various changes to the overall layout.

Changed the tabs to have this structure:

  • Lookup
    |-- Lookup by IP panel
  • Browse Configurations
    |-- Definitions
    |-- Profiles
  • Advanced
    |-- Default Configuration

Moved the Upload and Download buttons to the top of the container and removed the separate page.

Created a common ActionDropdownButton component to encapsulate an icon button with a dropdown where user can choose e.g. XML or Json format for upload/download. We could enhance and use this common component elsewhere as well.

Added some more explanatory text, clicking on an info icon opens a dialog displaying more detailed instructions. Updated some of the wording to make it more understandable.

This is an initial search functionality, we may add more searching/filtering in the future.

snmp-config-with-search

Also I realized there wasn't pagination on the profiles page, so that has been added.

And, added an initial ui/CLAUDE.md.

NOTE: we are encountering unit test issues unrelated to this ticket failing the UI build to fail on CI. I fixed some using some extra handling for timers, but ending up having to skip a lot of tests for now. I will open a separate ticket to investigate those. Most of the issues have to do with cases where there are timers involved, for example when we debounce in the UI for autocomplete or other text input. Many pass locally but fail in CI. Honestly, many of those unit tests are not really that critical, they aren't testing core business logic, so OK to skip until we can fix them.

External References

@synqotik synqotik force-pushed the jira/NMS-19542-snmp-config-search branch from 448cc27 to 512633e Compare March 12, 2026 18:54
@synqotik synqotik changed the title NMS-19542: Add search to SNMP Config definitions and profiles NMS-19542: Add search to SNMP Config definitions and profiles, layout updates Mar 12, 2026
@synqotik synqotik force-pushed the jira/NMS-19542-snmp-config-search branch from 512633e to 6053098 Compare March 12, 2026 19:19
@synqotik synqotik force-pushed the jira/NMS-19542-snmp-config-search branch from bab63a0 to 3d80598 Compare March 13, 2026 03:26
@synqotik synqotik marked this pull request as ready for review March 13, 2026 17:03
Copy link
Contributor

@cgorantla cgorantla left a comment

Choose a reason for hiding this comment

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

LGTM!

ui/CLAUDE.md Outdated
@@ -0,0 +1,266 @@
# OpenNMS UI — Claude Instructions
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not check-in this file. This eats up context every time someone loads claude. You can keep it local for now.

@synqotik synqotik merged commit c7a7dce into features/snmp-config-db-migration Mar 16, 2026
4 of 5 checks passed
@synqotik synqotik deleted the jira/NMS-19542-snmp-config-search branch March 16, 2026 22:52
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.

2 participants