[PR #4379] [MERGED] Refactor registry to behave as a dictionary #12830

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4379
Author: @jeremystretch
Created: 3/18/2020
Status: Merged
Merged: 3/18/2020
Merged by: @jeremystretch

Base: developHead: refactor-registry


📝 Commits (2)

  • 043b1c2 Refactor the registry into a dictionary object
  • 70c2905 Raise specific exceptions

📊 Changes

3 files changed (+63 additions, -27 deletions)

View changed files

netbox/extras/registry.py (+21 -0)
netbox/extras/tests/test_registry.py (+33 -0)
📝 netbox/extras/utils.py (+9 -27)

📄 Description

  • Tweaks the new Registry object to behave as a sort of write-once dictionary
  • Adds basic tests

🔄 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/4379 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/18/2020 **Status:** ✅ Merged **Merged:** 3/18/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `refactor-registry` --- ### 📝 Commits (2) - [`043b1c2`](https://github.com/netbox-community/netbox/commit/043b1c28d2fe7c4b8f44d0f10e43388132e50c8f) Refactor the registry into a dictionary object - [`70c2905`](https://github.com/netbox-community/netbox/commit/70c29051b39f0ec849e48b292034677ac5097c0e) Raise specific exceptions ### 📊 Changes **3 files changed** (+63 additions, -27 deletions) <details> <summary>View changed files</summary> ➕ `netbox/extras/registry.py` (+21 -0) ➕ `netbox/extras/tests/test_registry.py` (+33 -0) 📝 `netbox/extras/utils.py` (+9 -27) </details> ### 📄 Description - Tweaks the new Registry object to behave as a sort of write-once dictionary - Adds basic tests --- <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 22:23:51 +01:00
adam closed this issue 2025-12-29 22:23:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12830