-
Notifications
You must be signed in to change notification settings - Fork 10
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
Nodes not staying in saved position #42
Comments
I have a feeling this could occur if its out of bounds, eg. the node going into a negative boundary so the y coordinate could be negative. |
@Kav91 No I was not dragging the map down before moving that node. I may have zoomed out though as you can tell there are many nodes that are fairly spread apart. I'm investigating the issue with possibly having a negative boundary value now. |
@Kav91 Update on the values of the node's location: Now when the highlighted node is moved up, possibly into a "negative boundary" as you described, this is what happens: |
have faced this issue too. definitely impacts the presentability of the dashboard. Would it help to make the node positions be able to 'snap-to-grid'. the utility of being able to drag the nodes around arbitrarily is possibly less than having them stay static and be able to display more data around the nodes. |
What would be the best way to fix this issue as the user's behavior is going to cause issues with this in my organization as the observability maps we will be using contain many nodes, some over 100. If it is possible to be able to see where the nodes are crossing into negative values that would be amazing, otherwise what do you recommend? Thanks in advance! |
how/where do you see the x and y coordinates for the nodes above? |
@sekrish I see them after clicking the "export" button. Find your specific node in the jumble of information and it shows you something like this: |
@Kav91 Is there any update on a resolution for this issue? It would be greatly appreciated by myself and the entire organization I work for! Thanks! |
hi @twcallaghan I've been exploring solutions. Observability Maps depends on react-d3-graph so in the past when I attempted to give nodes their own x,y position if they went out of bounds it wouldn't update the map. I had raised an issue quite some time ago -> danielcaldas/react-d3-graph#295 they did close it but I'm not sure if it will fix it as the PR states its for initialization -> danielcaldas/react-d3-graph#353. I need to test it out to see if can be used to bounce the nodes back if they do get positioned out of bounds. |
@Kav91 I understand what you are saying. If it was possibly easier, my thought was to make a defined border in a different color that shows where you should stop putting nodes (basically where the bounds are). This would be massively helpful in making large observability maps as you wouldn't have to guess or constantly check if your nodes are going out of bounds. |
I've just merged the following PR #49 . I'm hoping that this will help keep nodes with positive coordinates within the map bounds. So should prevent unexpected behaviour when reloading and it then appearing in a randomized location. It won't be immediately available till the nr1-catalog is updated which will be pending this PR newrelic/nr1-catalog#159 . I will leave this issue open till you all are able to test it out. |
@Kav91 So I noticed the changes you made and they're definitely on the right track as the nodes are no longer appearing in random places. They instead seem to be placed back in the positions they were originally in before moving. These nodes also still appear as positive integers when they go into "negative" values which I think should be a bug (also displayed below in an image). Thank you for the support, again I really appreciate the effort! |
@Kav91 Hope all has been well with you with the new year! I was wondering if there has been any updates on the possibility of keeping the nodes in negative locations at that location/adding a graphic or preventing the user from moving nodes into negative locations? Thanks! |
@twcallaghan thank you, hope yours was as well. Users should now be unable to place nodes in negative locations. |
@Kav91 Thank you, it has been! |
@twcallaghan Thank you for the kind words. Edit: Submitted catalog update here -> newrelic/nr1-catalog#188 will wait for this to get merged and retest the behaviour of the public/catalog version again. |
@twcallaghan Are you able to test and let me know how it is now, I've had another few fixes get merged in a newer release that is out now. I also had another colleague who I believe had the exact same situation as you and required a refresh so was able to debug with him. Hoping its sorted now 🤞 |
@Kav91 I was able to test it today and can confirm that it seems to be working great! |
@Kav91 Going to close the issue now as my boss tested it and confirms that it has fixed our issue. Thank you so much for the help throughout the many months! Hope you have a great rest of the year! |
Description
When the map is reloaded (as in the website is completed reloaded) the nodes either move back to the positions they were originally in when created or they are moved to a random location on the map.
I have seen both behaviors happen with entity nodes but I was unable to recreate this issue with custom nodes. The issue also only seems to happen with large amounts of nodes.
Steps to Reproduce
In the export below, to recreate my issue, take a few of the nodes and move them far away from their current position. Wait a few seconds to ensure that all the locations have been saved. Reload the webpage.
The arrows and order is all nonsense to recreate the issue without sensitive data.
Below is the export of the data in .txt.
nodebreak_export.txt
Expected Behaviour
The expected behavior is that nodes stay saved in the position they were moved to after getting the notification that their location has been saved.
Relevant Logs / Console output
Export of data in a .txt
nodebreak_export.txt
Your Environment
NR1 CLI version used: (not used)
Browser name and version: Google Chrome 85
Operating System and version: Windows 10 Enterprise version 1809
Here are some screenshots to better understand it (look at the two green nodes that are very high):
![before_obsmap](https://user-images.githubusercontent.com/23635947/93513595-110d1480-f8f4-11ea-924d-01a911d0f3dd.PNG)
Before reloading the page:
After reloading the page:
![after_obsmap](https://user-images.githubusercontent.com/23635947/93513606-166a5f00-f8f4-11ea-9ffc-5e5f1a55b6f7.PNG)
The text was updated successfully, but these errors were encountered: