-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fixes #11460 - Fix unterminated cable exception when editing cable #15813
Fixes #11460 - Fix unterminated cable exception when editing cable #15813
Conversation
There are other options here for this, right now, this is the path of least resistance without a re-work of the form rendering logic to only partially render specific fields. Another caveat, for some reason |
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.
Nice work @DanSheps. However, as this is an open bug in v3.7 we need to fix it in the develop
branch (which shouldn't require much change).
If you haven't already, look at how we handle type selection for remote data sources dynamically; we probably want to follow the same pattern here.
22f5825
to
85db007
Compare
…to an "htmx" template
Updated to develop but I also switched around the rending a bit. Instead of using the hacky method I was using and pulling down the full page as an HTMX and then selecting I did the following:
I was thinking about this last night, I like it more because it is extendable and I think easier, just wasn't sure which way to go. |
@DanSheps the edit form comes up, but if you just select save without any changes an exception is thrown:
|
Thanks Arthur, didn't think to check the next step. Will try and figure out something for that. |
@jeremystretch looks like your changes fixed the issue I had previously |
One weirdness - go to edit a cable and click the delete 'x' next to the Type in the "B Side", the form auto-refreshes and any Type, device and interface are reset. You can see it better by first deleting interface, then when you delete Type interface and Type will be reset back. |
This implementation isn't quite perfect, but it does at least resolve #11460 without (AFAICT) breaking any existing functionality. I'm going to merge this as-is to resolve the immediate issues, and we can iterate on improvements separately from there. |
Fixes: #11460 - Fix unterminated cable exception when editing cable