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-1977 automatically disable filters when not available in prometheus #662

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jpinsonneau
Copy link
Contributor

@jpinsonneau jpinsonneau commented Dec 4, 2024

Description

image

Dependencies

n/a

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 Dec 4, 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

Comment on lines 472 to 474
// update filters to retrigger query without showing the error
updateTableFilters({ ...model.filters });
model.setChipsPopoverMessage(getPromError(errStr));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

still have an issue here when a topology group is enabled. This will loop as the filters are not involved

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that would make it but a bit hacky:
a1cbc9b

The positive side is that it will manage any case (not only the topology groups)

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

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

Project coverage is 56.68%. Comparing base (01883f0) to head (3365f1c).
Report is 17 commits behind head on main.

Files with missing lines Patch % Lines
web/src/components/netflow-traffic.tsx 10.00% 18 Missing ⚠️
web/src/utils/errors.ts 22.72% 17 Missing ⚠️
pkg/handler/response.go 22.22% 7 Missing ⚠️
pkg/handler/topology.go 0.00% 2 Missing ⚠️
...ponents/tabs/netflow-topology/netflow-topology.tsx 33.33% 2 Missing ⚠️
web/src/components/messages/error.tsx 50.00% 1 Missing ⚠️
...b/src/components/toolbar/filters/chips-popover.tsx 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #662      +/-   ##
==========================================
- Coverage   56.70%   56.68%   -0.03%     
==========================================
  Files         197      198       +1     
  Lines       10113    10206      +93     
  Branches     1192     1203      +11     
==========================================
+ Hits         5735     5785      +50     
- Misses       4009     4055      +46     
+ Partials      369      366       -3     
Flag Coverage Δ
uitests 59.02% <33.89%> (-0.21%) ⬇️
unittests 51.65% <18.18%> (+0.37%) ⬆️

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

Files with missing lines Coverage Δ
...b/src/components/drawer/netflow-traffic-drawer.tsx 45.54% <100.00%> (ø)
web/src/model/netflow-traffic.ts 86.90% <100.00%> (+0.15%) ⬆️
web/src/components/messages/error.tsx 21.42% <50.00%> (ø)
...b/src/components/toolbar/filters/chips-popover.tsx 90.00% <90.00%> (ø)
pkg/handler/topology.go 51.67% <0.00%> (ø)
...ponents/tabs/netflow-topology/netflow-topology.tsx 35.22% <33.33%> (ø)
pkg/handler/response.go 20.58% <22.22%> (-0.38%) ⬇️
web/src/utils/errors.ts 41.93% <22.72%> (-29.50%) ⬇️
web/src/components/netflow-traffic.tsx 63.46% <10.00%> (-3.31%) ⬇️

... and 11 files with indirect coverage changes

@jpinsonneau jpinsonneau marked this pull request as ready for review December 9, 2024 14:22
@jpinsonneau jpinsonneau requested a review from jotak December 9, 2024 14:22
@jotak jotak added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Dec 9, 2024
Copy link

github-actions bot commented Dec 9, 2024

New image:
quay.io/netobserv/network-observability-console-plugin:2c90e96

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=2c90e96 make set-plugin-image

@jpinsonneau
Copy link
Contributor Author

/retest

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.

thanks, code LGTM
/lgtm

@jpinsonneau
Copy link
Contributor Author

Not sure why konflux is failing here 🤔
cc @OlivierCazade

@jpinsonneau
Copy link
Contributor Author

/retest

@jpinsonneau
Copy link
Contributor Author

Seems like I'm always getting the following error in konflux:

[1/3] STEP 7/13: RUN . /cachi2/cachi2.env &&     CYPRESS_INSTALL_BINARY=0 node --max-old-space-size=6000 $(which npm) --legacy-peer-deps ci
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code ENOMEM
npm ERR! syscall spawn
npm ERR! errno -12
npm ERR! spawn ENOMEM

npm ERR! A complete log of this run can be found in: /opt/app-root/src/.npm/_logs/2024-12-17T14_47_56_250Z-debug-0.log
subprocess exited with status 244
subprocess exited with status 244
Error: building at STEP "RUN . /cachi2/cachi2.env &&     CYPRESS_INSTALL_BINARY=0 node --max-old-space-size=6000 $(which npm) --legacy-peer-deps ci": exit status 244

@Amoghrd Amoghrd removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Dec 23, 2024
@Amoghrd
Copy link
Contributor

Amoghrd commented Dec 23, 2024

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Dec 23, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:270aebe

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=270aebe make set-plugin-image

@Amoghrd
Copy link
Contributor

Amoghrd commented Dec 23, 2024

@jpinsonneau The page is stuck on loading when Groups are updated. Need to click on refresh button to load the page.
Also in the overview page for example if DNSTracking is enabled with no DNS metrics are select the DNS panel then the whole overview page does not load with error below. Shouldnt only that panel have that error and others should load fine right?
Screenshot 2024-12-23 at 1 07 39 PM

Otherwise PR looks good

Copy link

openshift-ci bot commented Jan 6, 2025

New changes are detected. LGTM label has been removed.

@openshift-ci openshift-ci bot removed the lgtm label Jan 6, 2025
Copy link

openshift-ci bot commented Jan 6, 2025

[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 jotak. For more information see the 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

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jan 6, 2025
@jpinsonneau
Copy link
Contributor Author

@jpinsonneau The page is stuck on loading when Groups are updated. Need to click on refresh button to load the page. Also in the overview page for example if DNSTracking is enabled with no DNS metrics are select the DNS panel then the whole overview page does not load with error below. Shouldnt only that panel have that error and others should load fine right? Screenshot 2024-12-23 at 1 07 39 PM

Otherwise PR looks good

3365f1c that change will ensure groups are refreshed after an error is displayed.

However, for the Overview suggestion, this will require more changes. If you feel it's important we can open a followup.
The error shows only when the panel is selected and the metric not available which still makes sense.

@Amoghrd
Copy link
Contributor

Amoghrd commented Jan 8, 2025

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jan 8, 2025
Copy link

github-actions bot commented Jan 8, 2025

New image:
quay.io/netobserv/network-observability-console-plugin:ec75f32

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=ec75f32 make set-plugin-image

@Amoghrd
Copy link
Contributor

Amoghrd commented Jan 8, 2025

Now changing groups works as expected.
Yeah, overview is not that important. If we get a customer case for the same then we can look at it then.
This PR is good to go.
/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved QE has approved this pull request label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. qe-approved QE has approved this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants