Repository navigation
feat: bgp monitor bugs - #1066
Conversation
There was a problem hiding this comment.
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?
|
New fixes:
|
|
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! |
|
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? |
|
Yes, plotly captures only the clicks on top of the plots and not the empty parts. |
|
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. But I would say it is more of a corner case that a bug. Please merge. |
m-appel
left a comment
There was a problem hiding this comment.
I guess I have to approve as well :)

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
Checklist: