You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENG-3324: Add system-stewards change hook for inheritance propagation
Temporary single-purpose callback registry under ``fides.api`` that lets
the fidesplus monitor-stewardship-inheritance feature react when a
user is added/removed as a data steward (system manager) of a system.
The three v1 system-manager mutation routes (``bulk_assign_steward``,
``update_managed_systems``, ``remove_user_as_system_manager``, and
the approver-demotion branch of ``update_user_permissions``) gain a
``BackgroundTasks`` injection and call
``notify_system_stewards_changed(background_tasks, system.id)`` after
each successful set/remove. The model methods themselves are
unchanged so callers from tests/conftest don't trigger propagation.
This is intentionally a tiny ~50-line shim. The module docstring
documents the cutover: when the event framework lands (fides
PR #8096), trigger sites swap to ``publish_after_commit(...)`` and
this file is deleted. Do not generalize this into a ``hooks`` package.
Pairs with fidesplus ``ENG-3324/monitor-steward-inheritance-propagation``,
which registers the inheritance-reconcile callback at app startup.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments