[PR #14822] [MERGED] Fixes #14816: Ensure default contact assignment ordering is consistent #14462

Closed
opened 2025-12-29 23:24:36 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14822
Author: @jeremystretch
Created: 1/17/2024
Status: Merged
Merged: 1/17/2024
Merged by: @jeremystretch

Base: developHead: 14816-contact-assignment-ordering


📝 Commits (1)

  • fe7fc27 Fixes #14816: Ensure default contact assignment ordering is consistent

📊 Changes

4 files changed (+20 additions, -3 deletions)

View changed files

📝 netbox/tenancy/api/views.py (+1 -1)
netbox/tenancy/migrations/0014_contactassignment_ordering.py (+17 -0)
📝 netbox/tenancy/models/contacts.py (+1 -1)
📝 netbox/tenancy/views.py (+1 -1)

📄 Description

Fixes: #14816

  • Modify the default ordering for ContactAssignment to ensure results are always deterministic
  • Generate a schema migration
  • Prefetch content_type and tags when retrieving contact assignments via REST API (optimization)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/14822 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/17/2024 **Status:** ✅ Merged **Merged:** 1/17/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `14816-contact-assignment-ordering` --- ### 📝 Commits (1) - [`fe7fc27`](https://github.com/netbox-community/netbox/commit/fe7fc272160421af0f04a07ae775d65e84c3c226) Fixes #14816: Ensure default contact assignment ordering is consistent ### 📊 Changes **4 files changed** (+20 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/tenancy/api/views.py` (+1 -1) ➕ `netbox/tenancy/migrations/0014_contactassignment_ordering.py` (+17 -0) 📝 `netbox/tenancy/models/contacts.py` (+1 -1) 📝 `netbox/tenancy/views.py` (+1 -1) </details> ### 📄 Description ### Fixes: #14816 - Modify the default ordering for ContactAssignment to ensure results are always deterministic - Generate a schema migration - Prefetch `content_type` and `tags` when retrieving contact assignments via REST API (optimization) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:24:36 +01:00
adam closed this issue 2025-12-29 23:24:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14462