[PR #12222] [MERGED] 7503 do device validate-create in serial #13927

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12222
Author: @arthanson
Created: 4/11/2023
Status: Merged
Merged: 5/31/2023
Merged by: @jeremystretch

Base: developHead: 7503-bulk-create-rack-space


📝 Commits (6)

  • cb79fea 7503 do device validate-create in serial
  • 69fcb81 7503 fix single instance
  • b645b6d 7503 atomic transaction
  • fc9555a 7503 fix return data for bulk operations
  • b5f9fe6 7503 add test
  • a132da8 Move sequential creation logic to a mixin

📊 Changes

3 files changed (+69 additions, -6 deletions)

View changed files

📝 netbox/dcim/api/views.py (+9 -4)
📝 netbox/dcim/tests/test_api.py (+34 -1)
📝 netbox/netbox/api/viewsets/mixins.py (+26 -1)

📄 Description

Fixes: #7503

Makes Device ViewSet to object validation and creation serial, instead of validating all at once then creating all at once - to catch conditions like overlapping rack locations.


🔄 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/12222 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 4/11/2023 **Status:** ✅ Merged **Merged:** 5/31/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `7503-bulk-create-rack-space` --- ### 📝 Commits (6) - [`cb79fea`](https://github.com/netbox-community/netbox/commit/cb79fea33f0991a8fb3dafe18310aad5d63d8671) 7503 do device validate-create in serial - [`69fcb81`](https://github.com/netbox-community/netbox/commit/69fcb8122dd267141cabb132561952c69e2a66e6) 7503 fix single instance - [`b645b6d`](https://github.com/netbox-community/netbox/commit/b645b6d15995830dc26dd5d0ec7dc6dc98448f22) 7503 atomic transaction - [`fc9555a`](https://github.com/netbox-community/netbox/commit/fc9555a7b2bc819a015d0832f82a1f299d140aec) 7503 fix return data for bulk operations - [`b5f9fe6`](https://github.com/netbox-community/netbox/commit/b5f9fe6c0f92b7f86daccf98fa8974fe7dc6ede9) 7503 add test - [`a132da8`](https://github.com/netbox-community/netbox/commit/a132da84c7b21167407050c22e110e9544f07818) Move sequential creation logic to a mixin ### 📊 Changes **3 files changed** (+69 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/views.py` (+9 -4) 📝 `netbox/dcim/tests/test_api.py` (+34 -1) 📝 `netbox/netbox/api/viewsets/mixins.py` (+26 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #7503 <!-- Please include a summary of the proposed changes below. --> Makes Device ViewSet to object validation and creation serial, instead of validating all at once then creating all at once - to catch conditions like overlapping rack locations. --- <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:21:35 +01:00
adam closed this issue 2025-12-29 23:21:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13927