Add the option to automatically push changes to objects when synchronizing data sources #12129
Labels
beta
Concerns a bug/feature in a beta release
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
NetBox version
v3.5-beta1
Feature type
Change to existing functionality
Proposed functionality
#11558 introduced the ability to populate certain object data from remote data sources. Currently, this is a two-step process:
This separation of tasks is intentional, and ensures a decoupling of synchronization jobs (which are expected to be automated) from effecting a change to production data. However, there may be cases where it's desirable to effect changes immediately upon synchronization with the remote source.
This FR proposes the addition of an
auto_sync
boolean field to theSyncedDataMixin
class. Any object withauto_sync
set to true shall have itssync_data()
method called automatically upon its associated DataFile being updated.Use case
This provides an alternative direct coupling approach to employing synchronized object data, while preserving the existing loose coupling as the default option.
Database changes
No response
External dependencies
No response
The text was updated successfully, but these errors were encountered: