Skip to content

Remove the pod filter from the organization logs console - #3472

Open
kavindasr wants to merge 1 commit into
wso2:mainfrom
kavindasr:apip-logs-remove-pod-filter
Open

kavindasr wants to merge 1 commit into
wso2:mainfrom
kavindasr:apip-logs-remove-pod-filter

Conversation

@kavindasr

Copy link
Copy Markdown
Contributor

Follow-up to #3430. Removes the Pod select from the Logs toolbar; Project stays.

A pod name is a gateway name plus a replicaset hash plus a scheduler suffix, so the select was a list of strings nobody recognises, and the two pods of one gateway sit next to each other under names that differ only in the tail. Project already separates the lines a reader actually wants apart, and the source column still shows the pod when a line carries no component name — so nothing becomes unfindable.

What changed

File Change
LogsToolbar.tsx the Pod FormControl and podOptions are gone; picking a project no longer has to clear a pod; the caption says "Project narrows the lines already on screen"
types.ts LogViewFilters.pod, LogFacets.pods and LogFacets.podsByProject removed
consoleLines.ts deriveFacets no longer collects pods or groups them by project; matchesView drops the pod clause
LogsFeature.tsx INITIAL_VIEW loses pod; the "N of M loaded lines match" note names one filter
consoleLines.test.ts the two pod-facet tests are gone, the view-filter test narrows to project

LogEntry.podName is kept — toConsoleLine still falls back to it for the source column.

No backend change: the pod filter ran entirely in the browser, and GET /logs never took a podName parameter.

Verification

  • tsc --noEmit clean under both host configs (tsconfig.json against ai-workspace's deps, tsconfig.console.json against api-control-plane's).
  • Plugin vitest suite: 42 passed (was 44 — the two removed tests covered pod faceting only).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 2cd851a4-9588-43d2-b182-215d5184cc0f

📥 Commits

Reviewing files that changed from the base of the PR and between 51bb7a7 and 7f67893.

📒 Files selected for processing (5)
  • portals/cloud-plugins/apip-cloud-ui-logs/src/LogsFeature.tsx
  • portals/cloud-plugins/apip-cloud-ui-logs/src/LogsToolbar.tsx
  • portals/cloud-plugins/apip-cloud-ui-logs/src/consoleLines.test.ts
  • portals/cloud-plugins/apip-cloud-ui-logs/src/consoleLines.ts
  • portals/cloud-plugins/apip-cloud-ui-logs/src/types.ts

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The logs UI removes pod filtering. Filter types, facet derivation, matching logic, toolbar controls, view state, messages, and tests now support project-only client-side filtering.

Changes

Logs filter contract and matching logic

Layer / File(s) Summary
Filter types and matching behavior
portals/cloud-plugins/apip-cloud-ui-logs/src/types.ts, portals/cloud-plugins/apip-cloud-ui-logs/src/consoleLines.ts, portals/cloud-plugins/apip-cloud-ui-logs/src/consoleLines.test.ts
LogViewFilters and LogFacets no longer contain pod fields. Facet derivation and view matching no longer use pod data. Tests now cover project-only filtering and facets.

Logs view integration

Layer / File(s) Summary
Initial view and toolbar controls
portals/cloud-plugins/apip-cloud-ui-logs/src/LogsFeature.tsx, portals/cloud-plugins/apip-cloud-ui-logs/src/LogsToolbar.tsx, portals/cloud-plugins/apip-cloud-ui-logs/src/consoleLines.test.ts
The initial view removes pod state. The toolbar removes pod options and the Pod selector. Project changes update only the project filter. Related text now describes project-only narrowing.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 7f678

The logs console now supports project-only client-side narrowing as intended, with no concrete unresolved merge risk identified.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the purpose, implementation, affected files, and verification results. However, it omits most required template sections, including User stories, Documentation, Security check… Complete the required template sections. Add explicit User stories, Documentation status, Security checks, Samples, Related PRs, and Test environment details. Include the required Purpose, Goals, Approach, and Automation tests headings or c…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: removing the Pod filter from the organization logs console.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 5 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the purpose, implementation, affected files, and verification results. However, it omits most required template sections, including User stories, Documentation, Security checks, Samples, Related PRs, and Test environment details.

Resolution

Complete the required template sections. Add explicit User stories, Documentation status, Security checks, Samples, Related PRs, and Test environment details. Include the required Purpose, Goals, Approach, and Automation tests headings or clearly map the existing content to those sections.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@codecov-commenter

codecov-commenter commented Sep 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.02%. Comparing base (3c13e04) to head (7f67893).
⚠️ Report is 84 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3472      +/-   ##
==========================================
- Coverage   53.91%   53.02%   -0.90%     
==========================================
  Files         219      798     +579     
  Lines       44881   127479   +82598     
  Branches        0     4447    +4447     
==========================================
+ Hits        24199    67593   +43394     
- Misses      18870    53414   +34544     
- Partials     1812     6472    +4660     
Flag Coverage Δ
ai-workspace-bff-integration 39.58% <ø> (-14.34%) ⬇️
ai-workspace-bff-unit 75.00% <ø> (+21.08%) ⬆️
ai-workspace-ui-integration 25.93% <ø> (-27.99%) ⬇️
api-portal-server-integration 57.94% <ø> (+4.02%) ⬆️
api-portal-ui-integration 30.90% <ø> (-23.02%) ⬇️
gateway-controller-integration 44.65% <ø> (-9.27%) ⬇️
gateway-controller-unit 52.09% <ø> (-1.83%) ⬇️
platform-api-integration 42.00% <ø> (-11.91%) ⬇️
platform-api-unit 29.77% <ø> (-24.15%) ⬇️
policy-engine-integration 37.05% <ø> (-16.87%) ⬇️
policy-engine-unit 57.61% <ø> (+3.69%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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