NETOBSERV-2872 change feature columns defaults for views - #2836
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
📝 WalkthroughWalkthroughThe static frontend configuration no longer enables nine network and flow metadata columns by default. Source and destination column settings were updated consistently. ChangesFrontend column defaults
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/ok-to-test |
|
New images: quay.io/netobserv/network-observability-operator:d816ecd1
quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-d816ecd1
quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-d816ecd1They will expire in two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:d816ecd1 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-d816ecd1Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-d816ecd1
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
|
/ok-to-test |
|
New images: quay.io/netobserv/network-observability-operator:d816ecd1
quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-d816ecd1
quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-d816ecd1They will expire in two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:d816ecd1 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-d816ecd1Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-d816ecd1
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
1 similar comment
|
New images: quay.io/netobserv/network-observability-operator:d816ecd1
quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-d816ecd1
quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-d816ecd1They will expire in two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:d816ecd1 make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-d816ecd1Or as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-d816ecd1
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/controller/consoleplugin/config/static-frontend-config.yaml`:
- Line 178: Update the user-facing documentation for the default UI columns
affected by the configuration entries in the static frontend config, including
the feature-specific view behavior. Ensure the documented defaults match the
changed values and cover all related entries, including the configuration around
the default setting shown here.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: d53f59b8-4439-41e9-b789-bea280a5161e
📒 Files selected for processing (1)
internal/controller/consoleplugin/config/static-frontend-config.yaml
| field: SrcK8S_NetworkName | ||
| filter: src_network | ||
| default: true | ||
| default: false |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Document the changed default-column behavior.
These changes alter the columns shown by default in the UI. Add or update user-facing documentation for the new defaults and the feature-specific view behavior.
As per coding guidelines, update documentation when changing user-facing behavior.
Also applies to: 319-319, 440-440, 614-614, 623-623, 640-656, 681-681, 706-706, 721-721
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@internal/controller/consoleplugin/config/static-frontend-config.yaml` at line
178, Update the user-facing documentation for the default UI columns affected by
the configuration entries in the static frontend config, including the
feature-specific view behavior. Ensure the documented defaults match the changed
values and cover all related entries, including the configuration around the
default setting shown here.
Source: Coding guidelines
jpinsonneau
left a comment
There was a problem hiding this comment.
Looks good; don't forget to update the plugin sample with the script https://github.com/netobserv/netobserv-web-console/blob/main/scripts/update-config.sh
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2836 +/- ##
============================
============================
🚀 New features to boost your workflow:
|
thanks, yes, the change is already in PR netobserv/netobserv-web-console#1595 |
|
/ok-to-test |
|
New images: quay.io/netobserv/network-observability-operator:52a7fc8d
quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-52a7fc8d
quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-52a7fc8dThey will expire in two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:52a7fc8d make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-52a7fc8dOr as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-52a7fc8d
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
|
New images: quay.io/netobserv/network-observability-operator:52a7fc8d
quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-52a7fc8d
quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-52a7fc8dThey will expire in two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:52a7fc8d make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-52a7fc8dOr as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-52a7fc8d
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
|
/ok-to-test |
|
New images: quay.io/netobserv/network-observability-operator:52a7fc8d
quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-52a7fc8d
quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-52a7fc8dThey will expire in two weeks. To deploy this build: # Direct deployment, from operator repo
IMAGE=quay.io/netobserv/network-observability-operator:52a7fc8d make deploy
# Or using operator-sdk
operator-sdk run bundle quay.io/netobserv/network-observability-operator-bundle:v0.0.0-sha-52a7fc8dOr as a Catalog Source: apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: netobserv-dev
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/netobserv/network-observability-operator-catalog:v0.0.0-sha-52a7fc8d
displayName: NetObserv development catalog
publisher: Me
updateStrategy:
registryPoll:
interval: 1m |
| default: false | ||
| width: 10 | ||
| feature: tlsTracking | ||
| - id: TLSCipherSuite |
There was a problem hiding this comment.
Any reason why TLSCipherSuite, TLSGroup and TLSTypes columns dont have default:false?
There was a problem hiding this comment.
if its not set, then it would resolve as false when unmarshalling yaml.
There was a problem hiding this comment.
Then can just remove all defaults instead of setting to false here
There was a problem hiding this comment.
I think its okay to leave existing fields as is.
Description
change feature columns defaults for views now since those columns will be preset in feature specific view and All Traffic column will only show default base columns.
Dependencies
netobserv/netobserv-web-console#1595
Checklist
Co-Authored-By: Claude Sonnet.
Summary by CodeRabbit