Skip to content
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

Cable terminations are not refreshed correctly on API PATCH of Cable #18263

Open
bctiemann opened this issue Dec 21, 2024 · 0 comments · May be fixed by #18264
Open

Cable terminations are not refreshed correctly on API PATCH of Cable #18263

bctiemann opened this issue Dec 21, 2024 · 0 comments · May be fixed by #18264
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation topic: cabling type: bug A confirmed report of unexpected behavior in the application

Comments

@bctiemann
Copy link
Contributor

Deployment Type

Self-hosted

Triage priority

I volunteer to perform this work (if approved)

NetBox Version

v4.1.8

Python Version

3.10

Steps to Reproduce

Ideally populate the DB with a large number (1000+) of Interfaces and Cables connecting them.

API call:

http://127.0.0.1:8000/api/dcim/cables/1/
{
    "b_terminations": [
        {
            "object_type": "dcim.interface",
            "object_id": 161
        }
    ]
}

Compare to UI edit of Cable where B-side interface is changed.

Expected Behavior

Both operations (UI and API) should have the same effect and execute in the same amount of time.

Observed Behavior

The UI call completes in a few hundred ms; but depending on the data size, the API call can take many seconds or minutes to complete.

@bctiemann bctiemann added type: bug A confirmed report of unexpected behavior in the application status: needs triage This issue is awaiting triage by a maintainer labels Dec 21, 2024
@bctiemann bctiemann self-assigned this Dec 21, 2024
@bctiemann bctiemann added status: accepted This issue has been accepted for implementation topic: cabling severity: medium Results in substantial degraded or broken functionality for specfic workflows and removed status: needs triage This issue is awaiting triage by a maintainer labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation topic: cabling type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
1 participant