Skip to content

ROX-29495: Add time window to external ip flows service#15454

Merged
bradr5 merged 1 commit intomasterfrom
bradr/ROX-29495_add_since_param_to_external_flows
May 28, 2025
Merged

ROX-29495: Add time window to external ip flows service#15454
bradr5 merged 1 commit intomasterfrom
bradr/ROX-29495_add_since_param_to_external_flows

Conversation

@bradr5
Copy link
Contributor

@bradr5 bradr5 commented May 27, 2025

Description

Update the existing /v1/networkgraph/cluster/{clusterId}/externalentities/{entityId}/flows call to include a since query parameter set to the network graph timeWindow variable.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Manually tested instance.

Before:

  • Defaults to last 5min – /v1/networkgraph/cluster/d4368447-c8f3-4e64-9e07-00b8a5ed226c/externalentities/d4368447-c8f3-4e64-9e07-00b8a5ed226c__MTQyLjI1MC4xNTIuODIvMzI/flows?since=2025-05-27T19:46:08.048Z

After:

  • Time window set to "past hour" at 2025-05-27T20:46:08.048Z –/v1/networkgraph/cluster/d4368447-c8f3-4e64-9e07-00b8a5ed226c/externalentities/d4368447-c8f3-4e64-9e07-00b8a5ed226c__MTQyLjI1MC4xNTIuODIvMzI/flows?since=2025-05-27T19:46:08.048Z

@bradr5 bradr5 requested a review from a team as a code owner May 27, 2025 20:51
@bradr5 bradr5 requested review from pedrottimark and sachaudh May 27, 2025 20:52
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @bradr5 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@rhacs-bot
Copy link
Contributor

Images are ready for the commit at 8436d58.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.8.x-823-g8436d58156.

@codecov
Copy link

codecov bot commented May 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.23%. Comparing base (92e5d0b) to head (8436d58).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #15454      +/-   ##
==========================================
- Coverage   49.24%   49.23%   -0.01%     
==========================================
  Files        2578     2578              
  Lines      189182   189182              
==========================================
- Hits        93161    93151      -10     
- Misses      88686    88693       +7     
- Partials     7335     7338       +3     
Flag Coverage Δ
go-unit-tests 49.23% <ø> (-0.01%) ⬇️

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

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bradr5 bradr5 merged commit 29ad8eb into master May 28, 2025
86 checks passed
@bradr5 bradr5 deleted the bradr/ROX-29495_add_since_param_to_external_flows branch May 28, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants