-
Notifications
You must be signed in to change notification settings - Fork 36
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
Minor IPAM improvements #1511
Minor IPAM improvements #1511
Conversation
Yeah, that'll need to be sorted out. I've applied your fixes and also found the invariant error causing the API error when the prefix is set to an empty string. The usage requests you are seeing are individual requests for usage info on individual prefixes, so we shouldn't be firing unnecessary requests. Some of them are cancelled because their associated tree element (e.g. the prefix shown in the IPAM) are destroyed, usually because the DOM is being prepared to draw a new set of nodes and a new IP tree. |
Current status is that I'm currently struggling with some component lifecycle management, which is blocking the desired feature of being able to scroll to selected nodes in the allocation viz. I'm not entirely sure what the issue is caused by, but I should be able to figure it out by the end of the day. |
Looking great so far! 😄 Regarding the scrollto - it is set to only scrollto on scope prefixes. I trust you remember better than me that this was as wished from NTNU. Anyway, I don't find any reason to not include this in NAV 4.7. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned, this looks ready for release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only reviewed Python code (not JS), looks good :-)
Testing functionality reveals that once a Prefix is selected in the search form, it cannot be removed without performing a full form reset. Will approve when fixed.
(There's also an issue that the defaults of the form do not correspond to the "default" search parameters. Opening IPAM and clicking Search
without altering the form will yield a different result than just opening IPAM - but this is irrelevant to this PR and can be fixed in any other context)
@emilhf I am not able to confirm your latest commits actually work :-/ I can confirm that the files are updated and not cached by my browser, but the changes apparently have no effect. I will still merge this for the release, as these are minor issues that can be reported as bugs. |
This fixes a couple of minor visual aspects of the IPAM, adding the description to the prefix listing itself (allowing for quick perusal) and providing more useful context in the tooltips (VLAN, description). This should make it more comfortable to crawl prefixes with many sub-allocations.
Also fixes a minor API bug where information about the top-level prefix is not returned when searching for available address space for delegation purposes. This allows us to draw more stuff in the prefix allocation viz, for example a tooltip displaying the VLAN id.