Skip to content

feat: bgp monitor bugs - #1066

Merged
dpgiakatos merged 10 commits into
masterfrom
bgp-monitor-bugs
Apr 22, 2026
Merged

dpgiakatos merged 10 commits into
masterfrom
bgp-monitor-bugs

Conversation

@dpgiakatos

Copy link
Copy Markdown
Member

Description

This PR fixes the issues discussed in the issue #1065.

Related issue

#1065

How Has This Been Tested?

Tested locally.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@dpgiakatos
dpgiakatos requested a review from m-appel April 17, 2026 09:50
@dpgiakatos dpgiakatos self-assigned this Apr 17, 2026
@dpgiakatos dpgiakatos added the bug Something isn't working label Apr 17, 2026
@dpgiakatos dpgiakatos linked an issue Apr 17, 2026 that may be closed by this pull request
@romain-fontugne

Copy link
Copy Markdown
Member

can you also update the text for the overview component when there is no data :
image

The other fixes look good to me.

Not in the original issue: I think we could bump up the number of selected peers to a much larger number, e.g., 50 peers. So that we gonna show all peers if a user select only one collector, and it won't break if a user select all collectors.

Last one thing, I would really love if we could click at the minute granularity on the rpki plot (like we can for the two other plots)

@m-appel m-appel left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My changes are all addressed, I guess the RIS Live message and number of peers needs updating.

I'm not sure we can do the click in the RPKI plot. I believe Plotly only allows interactions with data values and in the RPKI plot we only have bars. In the other plots we manually added datapoints in 1-minute intervals, which is why we can click.

If clicking inside the plot is not possible, maybe we can clone the time slider below the plot?

@dpgiakatos

Copy link
Copy Markdown
Member Author

New fixes:

  • nb peers increase to 50
  • ris live overview text changed
  • click at the minute granularity on the rpki plot

@dpgiakatos

Copy link
Copy Markdown
Member Author

With JavaScript we can do everything. For the RPKI plot, the issue is the one Malte described: we don’t have all the time bins for the stacked bar because we use only the first timebin plus its duration. I had to manually calculate the x-axis position using the mouse coordinates from the click and inspect the Plotly JS file to find the closest point and determine the correct timebin. Fun with JS!

@m-appel

m-appel commented Apr 21, 2026

Copy link
Copy Markdown
Member

Nice! It does not recognize clicks on empty parts (i.e., not bars) of the plot, but I assume this is not captured by plotly?

@dpgiakatos

Copy link
Copy Markdown
Member Author

Yes, plotly captures only the clicks on top of the plots and not the empty parts.

@romain-fontugne

Copy link
Copy Markdown
Member

All problems fixed, thanks!

I found a weird case while testing. If no peer see the prefix at the start time, then there will be no peer selected by default.
For example this:
http://localhost:5173/en/bgp-monitor?prefix=84.205.65.0/24&data-source=bgplay&start-time=2026-04-19T03:13&end-time=2026-04-20T15:13&rrcs=0

But I would say it is more of a corner case that a bug. Please merge.

@romain-fontugne romain-fontugne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@m-appel m-appel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess I have to approve as well :)

@dpgiakatos
dpgiakatos merged commit 4b78044 into master Apr 22, 2026
4 checks passed
@dpgiakatos
dpgiakatos deleted the bgp-monitor-bugs branch April 22, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues with BGP monitor

3 participants