[PR #20269] [MERGED] Closes #19547: Add Sync button for DataSource ListView #15867

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20269
Author: @pheus
Created: 9/5/2025
Status: Merged
Merged: 9/8/2025
Merged by: @jeremystretch

Base: mainHead: 19547-add-sync-button-to-data-source-list-view


📝 Commits (1)

  • 29ba9cb feat(core): Add Sync button for DataSource actions

📊 Changes

3 files changed (+29 additions, -3 deletions)

View changed files

📝 netbox/core/tables/data.py (+4 -0)
📝 netbox/core/tables/template_code.py (+16 -0)
📝 netbox/core/views.py (+9 -3)

📄 Description

Fixes: #19547

Summary

Adds a Sync button to the Data Sources list view so a sync can be triggered directly from the table (no need to open the detail page).

Details

  • Introduces a per‑row Sync action in the list view.
  • Visibility/enabled state respects user permissions and current job status.
  • Reuses the existing sync mechanism/queue; no new API surface.

UX

  • Button sits alongside existing row actions.
  • Disabled while a sync is pending or running.

Notes

Open to feedback on approach.


🔄 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/20269 **Author:** [@pheus](https://github.com/pheus) **Created:** 9/5/2025 **Status:** ✅ Merged **Merged:** 9/8/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `19547-add-sync-button-to-data-source-list-view` --- ### 📝 Commits (1) - [`29ba9cb`](https://github.com/netbox-community/netbox/commit/29ba9cb0cee6fd80bfdcae08cb96b532623ef044) feat(core): Add Sync button for DataSource actions ### 📊 Changes **3 files changed** (+29 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/tables/data.py` (+4 -0) 📝 `netbox/core/tables/template_code.py` (+16 -0) 📝 `netbox/core/views.py` (+9 -3) </details> ### 📄 Description ### Fixes: #19547 ### Summary Adds a **Sync** button to the Data Sources list view so a sync can be triggered directly from the table (no need to open the detail page). ### Details - Introduces a per‑row **Sync** action in the list view. - Visibility/enabled state respects user permissions and current job status. - Reuses the existing sync mechanism/queue; no new API surface. ### UX - Button sits alongside existing row actions. - Disabled while a sync is pending or running. ### Notes Open to feedback on approach. --- <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-30 00:24:30 +01:00
adam closed this issue 2025-12-30 00:24:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15867