[PR #11646] [MERGED] Closes #11558: Add support for remote data sources #13820

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11646
Author: @jeremystretch
Created: 2/2/2023
Status: Merged
Merged: 2/2/2023
Merged by: @jeremystretch

Base: featureHead: 11558-data-sources


📝 Commits (10+)

📊 Changes

53 files changed (+1865 additions, -14 deletions)

View changed files

docs/models/core/datafile.md (+25 -0)
docs/models/core/datasource.md (+47 -0)
netbox/core/__init__.py (+0 -0)
netbox/core/api/__init__.py (+0 -0)
netbox/core/api/nested_serializers.py (+25 -0)
netbox/core/api/serializers.py (+51 -0)
netbox/core/api/urls.py (+13 -0)
netbox/core/api/views.py (+52 -0)
netbox/core/apps.py (+8 -0)
netbox/core/choices.py (+34 -0)
netbox/core/data_backends.py (+117 -0)
netbox/core/exceptions.py (+2 -0)
netbox/core/filtersets.py (+64 -0)
netbox/core/forms/__init__.py (+4 -0)
netbox/core/forms/bulk_edit.py (+50 -0)
netbox/core/forms/bulk_import.py (+15 -0)
netbox/core/forms/filtersets.py (+49 -0)
netbox/core/forms/model_forms.py (+81 -0)
netbox/core/graphql/__init__.py (+0 -0)
netbox/core/graphql/schema.py (+12 -0)

...and 33 more files

📄 Description

Closes: #11558

  • Establishes new core app for core features (those used by multiple other apps)
  • Introduces DataSource and DataFile models
  • Provides initial data backends for local directories and remote git repos (additional backends to be added)
  • Adds a syncdatasource management command

🔄 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/11646 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/2/2023 **Status:** ✅ Merged **Merged:** 2/2/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `11558-data-sources` --- ### 📝 Commits (10+) - [`d59d883`](https://github.com/netbox-community/netbox/commit/d59d883f8d8065907a1b17551ddfab3a2291f78e) WIP - [`6d5e33b`](https://github.com/netbox-community/netbox/commit/6d5e33b78514561c5c32e47d3cd89129996b7973) WIP - [`bfb21f6`](https://github.com/netbox-community/netbox/commit/bfb21f62de63f475a9a8206aafd3216150631394) Add git sync - [`9f299b7`](https://github.com/netbox-community/netbox/commit/9f299b7b426c87d932330c6faeb8014e5b3005cd) Fix file hashing - [`a5822ad`](https://github.com/netbox-community/netbox/commit/a5822ade84e5a215d2be0113f680ec61cde0a89d) Add last_synced to DataSource - [`41607f9`](https://github.com/netbox-community/netbox/commit/41607f9a52c5bff686785bf43e28c25c1181905c) Build out UI & API resources - [`cdc1886`](https://github.com/netbox-community/netbox/commit/cdc18868a583936c8b7c23c7d67dc1779a9bc4d4) Add status field to DataSource - [`15ca5e2`](https://github.com/netbox-community/netbox/commit/15ca5e23268948b5c5b604bf8f6542e6b7b40318) Add UI control to sync data source - [`685e457`](https://github.com/netbox-community/netbox/commit/685e457d6f8526a68953826ffc8959599ffe286b) Add API endpoint to sync data sources - [`f23f8d5`](https://github.com/netbox-community/netbox/commit/f23f8d5ba4751e03dc864e4efd09886cc6a5ef69) Fix display of DataSource job results ### 📊 Changes **53 files changed** (+1865 additions, -14 deletions) <details> <summary>View changed files</summary> ➕ `docs/models/core/datafile.md` (+25 -0) ➕ `docs/models/core/datasource.md` (+47 -0) ➕ `netbox/core/__init__.py` (+0 -0) ➕ `netbox/core/api/__init__.py` (+0 -0) ➕ `netbox/core/api/nested_serializers.py` (+25 -0) ➕ `netbox/core/api/serializers.py` (+51 -0) ➕ `netbox/core/api/urls.py` (+13 -0) ➕ `netbox/core/api/views.py` (+52 -0) ➕ `netbox/core/apps.py` (+8 -0) ➕ `netbox/core/choices.py` (+34 -0) ➕ `netbox/core/data_backends.py` (+117 -0) ➕ `netbox/core/exceptions.py` (+2 -0) ➕ `netbox/core/filtersets.py` (+64 -0) ➕ `netbox/core/forms/__init__.py` (+4 -0) ➕ `netbox/core/forms/bulk_edit.py` (+50 -0) ➕ `netbox/core/forms/bulk_import.py` (+15 -0) ➕ `netbox/core/forms/filtersets.py` (+49 -0) ➕ `netbox/core/forms/model_forms.py` (+81 -0) ➕ `netbox/core/graphql/__init__.py` (+0 -0) ➕ `netbox/core/graphql/schema.py` (+12 -0) _...and 33 more files_ </details> ### 📄 Description ### Closes: #11558 - Establishes new `core` app for core features (those used by multiple other apps) - Introduces `DataSource` and `DataFile` models - Provides initial data backends for local directories and remote git repos (additional backends to be added) - Adds a `syncdatasource` management command --- <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:20:59 +01:00
adam closed this issue 2025-12-29 23:20:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13820