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

Prefetch interface data for REST API on netbox 4.2 #18826

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

Tishka17
Copy link

@Tishka17 Tishka17 commented Mar 6, 2025

Fixes: #18409

  • Do not do additional requests for CabledObjectModel.link_peers
  • Custom field for arrays containing generic foreign keys
  • Use custom field instead of CablePath._get_path method
  • Enable prefetching for interface _path and cable

@Tishka17
Copy link
Author

Tishka17 commented Mar 7, 2025

I see that I've missed termination.link is not None and other path processing logic, I'm going to fix it

@Tishka17
Copy link
Author

Tishka17 commented Mar 7, 2025

I remove loaded data cache invalidation, so the current logic of updating path continues working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant