Import the wilm agent store, WINC adoption work and batches CLI, with four fixes
This commit is contained in:
@@ -140,6 +140,22 @@ from shopdb.utils.mailer import send_email, send_alert, send_webhook
|
||||
from shopdb.utils.cmmc_usb_db import cmmc_usb_connection
|
||||
|
||||
|
||||
# Reversible bulk-import journal. A plugin that drives a bulk import (a site
|
||||
# asset adoption, an integration sync) records the primitive changes it makes so
|
||||
# the whole batch can be undone. ImportBatch is the identity approval, write, and
|
||||
# undo all reference; ImportJournalEntry is one reversible mutation. Exposed so a
|
||||
# plugin's import UI can list applied batches and reverse one without reaching
|
||||
# into core internals. See the PLUGIN-HOOKS wiki page.
|
||||
from shopdb.core.models import (
|
||||
ImportBatch,
|
||||
ImportJournalEntry,
|
||||
BATCH_APPLIED,
|
||||
BATCH_UNDONE,
|
||||
OP_UPDATE,
|
||||
OP_INSERT,
|
||||
)
|
||||
|
||||
|
||||
def audit_log(
|
||||
action: str,
|
||||
entitytype: str,
|
||||
|
||||
Reference in New Issue
Block a user