Skip to content

Conversation

@ChrisEdwards
Copy link
Collaborator

@ChrisEdwards ChrisEdwards commented Dec 19, 2025

Summary

Enhance LibraryFilterForm to support additional filter parameters available in TeamServer's NgLibraryFilterRequest:

  • environments: Filter by server environment (DEVELOPMENT, QA, PRODUCTION)
  • statuses: Filter by library policy status (CURRENT, FLAGGED, STALE, etc.)
  • severities: Filter by CVE severity (CRITICAL, HIGH, MEDIUM, LOW, NOTE)

This enables the MCP Contrast Server to implement a search_libraries tool with full TeamServer filter parity.

Implementation

Environments Filter

  • Added EnumSet<ServerEnvironment> environments field with getter/setter
  • Updated toString() to include environments in URL query string

Statuses Filter

  • Added List<String> statuses field with getter/setter
  • Note: Named 'statuses' (plural) since parent FilterForm already has 'status' as a String field
  • Updated toString() to include statuses in URL query string

Severities Filter

  • Added List<String> severities field with getter/setter
  • Updated toString() to include severities in URL query string

Testing

  • Added 15 unit tests (5 for each filter)
  • All 166 SDK tests pass
  • ./mvnw verify completes successfully

Related

  • Closes bead sdk-53p (environments filter)
  • Closes bead sdk-xo5 (statuses filter)
  • Closes bead sdk-kb0 (severities filter)
  • Closes epic sdk-45b (LibraryFilterForm enhancements for MCP Contrast SCA support)
  • Will unblock mcp-py37 in mcp-contrast repo

🤖 Generated with Claude Code

ChrisEdwards and others added 2 commits December 19, 2025 11:29
Support filtering libraries by environment (DEVELOPMENT, QA, PRODUCTION)
to match TeamServer NgLibraryFilterRequest capabilities.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Support filtering libraries by status (CURRENT, FLAGGED, STALE, etc.)
to match TeamServer NgLibraryFilterRequest capabilities.

Note: Named 'statuses' (plural) since parent FilterForm already has
'status' as a String field.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ChrisEdwards ChrisEdwards changed the title Add environments filter to LibraryFilterForm Add environments and statuses filters to LibraryFilterForm Dec 19, 2025
Support filtering libraries by CVE severity (CRITICAL, HIGH, MEDIUM, LOW, NOTE)
to achieve parity with TeamServer's NgLibraryFilterRequest.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ChrisEdwards ChrisEdwards changed the title Add environments and statuses filters to LibraryFilterForm Add environments, statuses, and severities filters to LibraryFilterForm Dec 19, 2025
@ChrisEdwards
Copy link
Collaborator Author

Closing to recreate with branch name matching Jira ticket AIML-322

@ChrisEdwards ChrisEdwards deleted the add-environments-filter-to-library branch December 19, 2025 18:05
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