Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NETOBSERV-1902 Additionnal graphs + tab + autocomplete for UDN #656

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jpinsonneau
Copy link
Contributor

@jpinsonneau jpinsonneau commented Nov 26, 2024

Description

  • extra tabs for CUDN and UDN resources
  • UDN field showing link to resources
  • autocomplete
  • updated mocks

Dependencies

netobserv/network-observability-operator#909 to get the config deployed

Checklist

If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
    • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
    • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
    • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

Copy link

openshift-ci bot commented Nov 26, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link

openshift-ci bot commented Nov 26, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from jpinsonneau. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 18.64407% with 48 lines in your changes missing coverage. Please review.

Project coverage is 56.49%. Comparing base (765ca7c) to head (fedd455).
Report is 19 commits behind head on main.

Files with missing lines Patch % Lines
pkg/handler/resources.go 4.34% 21 Missing and 1 partial ⚠️
...omponents/drawer/element/element-panel-content.tsx 45.45% 6 Missing ⚠️
web/src/components/drawer/record/record-field.tsx 0.00% 6 Missing ⚠️
web/src/utils/filter-options.ts 25.00% 6 Missing ⚠️
web/src/utils/autocomplete-cache.ts 20.00% 4 Missing ⚠️
pkg/handler/lokiclientmock/loki_client_mock.go 0.00% 2 Missing ⚠️
web/src/utils/filter-definitions.ts 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #656      +/-   ##
==========================================
- Coverage   56.54%   56.49%   -0.06%     
==========================================
  Files         196      197       +1     
  Lines       10064    10169     +105     
  Branches     1195     1196       +1     
==========================================
+ Hits         5691     5745      +54     
- Misses       4008     4053      +45     
- Partials      365      371       +6     
Flag Coverage Δ
uitests 59.08% <27.27%> (-0.18%) ⬇️
unittests 50.92% <7.69%> (+0.34%) ⬆️

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

Files with missing lines Coverage Δ
pkg/model/fields/fields.go 88.88% <ø> (ø)
pkg/server/routes.go 70.58% <100.00%> (+0.58%) ⬆️
web/src/api/ipfix.ts 100.00% <ø> (ø)
web/src/api/loki.ts 85.71% <ø> (ø)
web/src/utils/columns.ts 78.26% <100.00%> (+0.15%) ⬆️
pkg/handler/lokiclientmock/loki_client_mock.go 0.00% <0.00%> (ø)
web/src/utils/filter-definitions.ts 72.51% <0.00%> (-0.86%) ⬇️
web/src/utils/autocomplete-cache.ts 42.85% <20.00%> (-3.81%) ⬇️
...omponents/drawer/element/element-panel-content.tsx 65.90% <45.45%> (-2.67%) ⬇️
web/src/components/drawer/record/record-field.tsx 50.28% <0.00%> (-1.77%) ⬇️
... and 2 more

... and 4 files with indirect coverage changes

Comment on lines +519 to +528
// TODO: define how to split the UDN ID
// an alternative could be to use `calculated: kubeObject(K8S_UDN_Type,K8S_UDN_Namespace,K8S_UDN_Name,0)`
// from config within 3 separated fields
if (id.includes('.')) {
const parts = id.split('.');
child = kubeObjContent(parts[1], 'UserDefinedNetwork', parts[0]);
} else {
child = kubeObjContent(id, 'ClusterUserDefinedNetwork', undefined);
}
return singleContainer(child);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Holding this PR until we confirm this ☝️

@jpinsonneau jpinsonneau mentioned this pull request Dec 13, 2024
6 tasks
Copy link
Member

@jotak jotak left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants