Skip to main content
What each release needs when you upgrade a Darpan you run yourself, newest first: the components that move with it, its upgrade data and migrations, new settings, API contract changes and how to roll back. What changed for the people using Darpan is in Release updates. The general upgrade procedure is in Production. Version key: headings carry the backend version (drpn-ai/darpan); the app (darpan-ui) has its own tags, named in each entry: v2.x alongside backend v1.x, v3.x from backend v2.0.0, and v4.x from backend v3.0.0. Backend and app tags are cut together for major and minor releases. A patch can be backend-only or carry an app tag too, as v1.5.1 did with app v2.6.1.

v3.6.3

Cut with app v4.5.0 and darpan CLI 0.7.1; darpan 3.6.3, app v4.5.5 and CLI 0.7.3 are the builds to deploy. App 4.5.5 adds the Tenant Settings API keys section, which needs darpan 3.6.3 and moqui-gql v1.1.4. 3.6.1 puts a deleted connection in a bin you can restore it from, runs uploaded files through the same steps as connected runs, and counts every sign-in attempt before checking it. 3.6.2 names every order a sync pulse finds late and shows when a finding’s check will close it. 3.6.3 moves the framework to Moqui 4.0.1, makes each morning’s audit report the day before it runs, and adds the GraphQL API key methods. A minor release that moves the API contract to version 7, because five methods and some fields are removed and list fields are typed as they are sent; 3.6.1 adds six methods and 3.6.2 none, so it stays at 7. The theme: every number Darpan shows can be trusted, and every run says plainly when it could not finish.

Operators

  • 3.6.0 moves every component with it: darpan-hotwax v1.5.0, shopify-darpan v0.13.0, netsuite-darpan v0.9.0, database-darpan v0.4.2, darpan-agent v0.5.2, moqui-gql v1.1.2 and moqui-rules v0.2.1. Its upgrade data (2,285 records, loaded on boot) is mostly the mascot’s regenerated words and routes, plus the new migrations: the NetSuite RESTlet table drop, the orphaned-schema drops, the AI-settings cleanup, a nullable agent column, the wider setting value, the rule shape report and the retired seed rows cleanup. The retention job pauses across the deploy, and the two drops wait until the first checks pass. Steps: Upgrade.
  • The framework’s System and Tools apps and the old admin screens under /apps/darpan are closed; the app and the admin app cover them. API contract version 7.
  • 3.6.1 moves every component with it: darpan-hotwax v1.5.1, shopify-darpan v0.13.1, netsuite-darpan v0.9.1, database-darpan v0.4.3, darpan-agent v0.5.3, moqui-gql v1.1.3 and moqui-rules v0.2.2; moqui-jexl stays at v0.2.2. Its upgrade data (loaded on boot) brings the mascot’s words for the connection bin and three migrations, all off: REKEY_MASCOT_ACTIONS, EXACT_RECORD_KEYS (MySQL 8; writes wait while it copies) and ORPHAN_KEPT_DATA (cannot be undone). The retention job’s new pass empties the bin after its window. The API contract stays at 7 with six new methods for the bin. Steps: Upgrade.
  • 3.6.2 moves darpan-hotwax to v1.5.2 and shopify-darpan to v0.13.2 with it; every other component stays at its 3.6.1 tag. Its upgrade data (two records, loaded on boot) brings two migrations, both off; the boot load also updates the HotWax orders definition with its cancelled field. PULSE_STALE_EPISODES ends a sync pulse episode an earlier peak date left open, so a pair that has gone quiet posts its current late orders again; CHAT_WEBHOOK_URLS copies chat-space webhook links saved in the old column to where Darpan reads them. App v4.5.4 needs the 3.6.2 backend. No method changes; the API contract stays at 7. Steps: Upgrade.
  • 3.6.3 moves shopify-darpan to v0.13.3, darpan-agent to v0.5.4 and moqui-gql to v1.1.4 with it; every other component stays at its 3.6.1 or 3.6.2 tag. The image builds the moqui-framework fork’s master (the upstream 4.0.1 merge) and moqui-runtime at upstream commit 726c3ef75779e2f7b4a7449766af4585e838bda1, both fetched by commit. Its upgrade data (loaded on boot) is the mascot’s words for the API key section; no migration. A new table (ProductKnowledgeEntry) and a nullable column (KnowledgeEntry.audience) are added on the first boot. A scheduled audit run now reports the day before its fire: the run on day D reads the period through the end of D-1, so the 1st’s run closes the month just ended. A sync pair’s lag allowance counts from the end of that day, as it always has. The API contract stays at 7, with four new methods for GraphQL API keys. Steps: Upgrade.

Upgrade

Apply the steps of each patch you cross, oldest first. The general procedure (load the upgrade data, start the backend, run the migrations, deploy the app) is in Production. To 3.6.0. No image may mix 3.6.0 core with an older component tag.
  1. Before the deploy, pause the retention job (run_DataRetention_daily). Until the orphaned-schema drops in step 3 have run, its sweep fails on rows left in a table those drops remove.
  2. Load the upgrade data (2,285 records, loaded on boot by default). It also registers the new migrations, all disabled.
  3. Run the migrations one at a time from the Migrations screen, with a dry run first where the migration offers one: RULE_TENANT_STAMPS (if not yet applied), AGENT_TURN_CONVERSATION_NULLABLE and DARPAN_SETTING_VALUE_WIDE (schema only), LLM_WORKSPACE_REMOTES (removes the stored AI provider settings), RULE_LOGIC_SHAPE_CHECK (a report; changes nothing) and RETIRED_SEED_ROWS (removes seed rows the release deleted from its data files, which a seed load cannot remove). Then, only after the first checks on 3.6.0 pass, NSRESTLET_DROP and ORPHAN_SCHEMA_DROPS, then resume run_DataRetention_daily.
  4. Deploy darpan-ui v4.5.0 after the migrations.
  5. The API contract moves to 7: five methods and several reply fields are removed and many reply types are stated exactly. Move to darpan CLI 0.7.1.
3.6.0 adds the admin app’s read-only SQL runner, which needs its own datasource; see Production. To 3.6.1. Build from the darpan-docker-config v3.6.1 tag. darpan, database-darpan, darpan-hotwax and moqui-gql call the same live access checks on every write, so no image may mix 3.6.1 core with an older tag of any of them. The image must carry the moqui-framework fork at 3befa4e2 or later: it counts a sign-in attempt before it checks the password, and EXACT_RECORD_KEYS below needs it.
  1. Load the upgrade data (loaded on boot by default). It registers the three new migrations, all disabled.
  2. Check the new columns after the roll. Moqui adds them, nullable, on boot: six count columns on RECONCILIATION_RUN_RESULT (RULE_DIFFERENCE_COUNT, DUPLICATE_DIFFERENCE_COUNT and the four hidden counts), and IS_ARCHIVED and ARCHIVED_DATE on each connection table (NetSuite auth, SFTP server, Shopify, HotWax OMS and database connections). Runs stored before 3.6.1 read computed counts; there is no backfill.
  3. Run the migrations one at a time, each as enable, dry run, read, run. A disabled migration refuses a dry run too (DISABLED), and after a real run a dry run answers only ALREADY_APPLIED. With darpan-admin, the dry run is migrations run <id> --dry-run; never run migrations run without an id, since it sweeps every enabled row:
    • REKEY_MASCOT_ACTIONS, once the upgrade data has loaded. It moves admin edits of mascot control entries to their new keys and lists any pair edited on both rows for a person to settle.
    • EXACT_RECORD_KEYS, on MySQL 8 only (the collation does not exist on 5.7; nothing to do on H2 or Postgres). It rebuilds AUDIT_FINDING and SYNC_PULSE_PRESENT_KEY with ALGORITHM=COPY, LOCK=SHARED: reads go on, writes wait for the copy. Read the dry run (rows, size, the groups merged today, keys ending in a space), then run it while no audit or sync pulse is writing (darpan-admin live empty). Findings merged before stay merged.
    • ORPHAN_KEPT_DATA. It drops kept copies and ID index rows that connection deletes left behind before the bin, and cannot be undone. Read the dry run’s list of groups first. A copy that is refreshing is skipped and listed, so run it again later.
  4. Resume run_DataRetention_daily if it is paused. Its CONNECTION_BIN pass purges each deleted connection, with its credentials and kept data, after the bin window (darpan.retention.connectionBin.days, default 14 days, per tenant too). While the job is paused, a deleted connection keeps them.
  5. Deploy darpan-ui v4.5.1 after the backend.
To 3.6.2. Build from the darpan-docker-config v3.6.2 tag, which moves the darpan, darpan-hotwax and shopify-darpan pins. HotWax and Shopify orders gain isCancelled, and Shopify orders returnStatus; no existing rule reads either, so no run’s rows change.
  1. Load the upgrade data (two records, loaded on boot by default). It registers the PULSE_STALE_EPISODES and CHAT_WEBHOOK_URLS migrations, disabled. The same boot load upserts darpan-hotwax’s seed data definition OMS_ORDERS_GQL_V1 with isCancelled (set from statusId ORDER_CANCELLED).
  2. Run PULSE_STALE_EPISODES right after the roll, as enable, dry run, read, run. The dry run lists, per tenant and pair, the episodes an earlier peak date left open and the orders it would close; the run ends them. It posts nothing itself.
  3. Run CHAT_WEBHOOK_URLS as enable, dry run, read, run. The dry run counts, per tenant, the chat spaces whose webhook link is only in the old column; it writes nothing and names no URL.
  4. Where ORPHAN_SCHEMA_DROPS already ran (3.6.0 deploys), dry run it again, then run it with --force to drop TENANT_CHAT_SPACE.GOOGLE_CHAT_WEBHOOK_URL. Where it has not run, it runs after CHAT_WEBHOOK_URLS and needs no --force.
  5. Deploy darpan-ui v4.5.4 after the backend. Its finding detail shows the check’s passes-when line, which an older backend fills with a stock sentence.
To 3.6.3. Build from the darpan-docker-config v3.6.3 tag, which moves the darpan, shopify-darpan, darpan-agent and moqui-gql pins and carries Moqui 4.0.1 (framework fork and runtime). darpan 3.6.3’s facade reads outputs only moqui-gql v1.1.4 has, so no image may mix them.
  1. Load the upgrade data (loaded on boot by default): the mascot’s API key entries. Nothing to run.
  2. Expect the first morning after the roll to report yesterday. A sync pair whose lag allowance was set to hold a day (1,440 minutes) now waits a full day after the day it reads ends; lower it if its reports should stay a day behind, not two.
  3. Optionally publish the product knowledge tier with darpan-admin kb publish --target <instance> (dry run first). Until then the product tier reads as absent, as before.

Rollback

  • Until NSRESTLET_DROP and ORPHAN_SCHEMA_DROPS run, a rollback to 3.5.9 (redeploy its image) loses nothing. After them, 3.5.9 still starts (Moqui recreates a dropped table empty and a dropped column null), but without the dropped data.

v3.5.9

Cut with app v4.4.15 and darpan CLI 0.6.0; darpan 3.5.9 is the build to deploy. 3.5.1 lets a sync pulse watch Shopify → HotWax orders and keeps errors and warnings out of your chat rooms. A minor release that moves the API contract to version 6, because the order lookup’s catalog methods are removed. The theme: look up any id from what Darpan already holds, without calling your systems.

Operators

  • 3.5.0 moves darpan, darpan-hotwax v1.4.0, shopify-darpan v0.12.0 and netsuite-darpan v0.8.0 together: the system components carry the index’s sources. Its upgrade data (4 records, loaded on boot) adds the tenant filters of the ID index tables and the nightly index job, which arrives paused. Run the pending migrations after the deploy (the acknowledgement note becomes optional), then deploy app v4.4.15. CLI 0.5.0’s lookup --all and catalog commands stop working; CLI 0.6.0 replaces them.
  • 3.5.9 sends an audit’s run update even while another of its checks is still running (a read with no progress figures no longer stops it), and the Darpan team’s daily error email leaves out deliberate refusals. Its upgrade data is two email wording blocks.
  • 3.5.8 is 3.5.7 deployed with three more changes: a store-scoped check on a day its store sold nothing is a quiet day, not “did not run” (a side that keeps nothing alerts from the second day in a row); chat card headers carry no logo; and remove#AuditCheck (on the CLI) takes a check out of an audit, refused while it has open findings. 3.5.7 was cut and never deployed.
  • 3.5.7 makes chat posts cards: a peak period’s start names only the pairs checked in it, a sync pulse’s past-allowance and caught-up posts carry Open the pulse, and an audit update is its card alone. A scheduled check that reads nothing on both sides says “nothing to compare” instead of staying silent. A pulse on a database endpoint reads its order times again. Its upgrade data (loaded on boot) is the mascot’s words for the new Tenant Settings and one email copy block.
  • 3.5.6 sends a run’s short link in chat cards, emails and error cards (/runs/<saved run>/<run>), and its upgrade data (loaded on boot) brings the mascot’s words for the run, Starting and Pulses pages. The ID index’s working copy of a tenant’s ids is readable by its owner only.
  • 3.5.5 fixes runs and sync pulses that now and then failed with a missing-file error. No upgrade data.
  • 3.5.4 is 3.5.3 with one more fix and is deployed in its place; 3.5.2 and 3.5.3 were cut and never deployed. A sync pulse that does not finish twice in a row tells the Darpan team, never your chat room, and a pulse no longer fails when it checks more than 1,000 NetSuite orders by key. No upgrade data of its own.
  • 3.5.3 moves darpan, darpan-hotwax v1.4.1 and netsuite-darpan v0.8.1 together. A sync pulse runs on its own small lane, up to 4 at once (setting darpan.reconciliation.automation.maxConcurrentLightRuns), so a tenant’s audit no longer skips its pulses. A daily NetSuite-only audit check reads what changed since its last complete read instead of the month to date. Its upgrade data (5 records, loaded on boot) adds the shared-read statuses and their tenant filter; one table and two NetSuite check fields are created on boot. Run the pending migrations after the deploy, then deploy app v4.4.15.
  • 3.5.2 moves darpan alone and has no upgrade data. It fixes the acknowledgement-note migration, which 3.5.1 could not run (MySQL refuses a schema change inside the migration’s transaction; nothing changed). Run the pending migrations after the deploy, then deploy app v4.4.15.
  • 3.5.1 moves darpan alone, on 3.5.0’s other pins. Its upgrade data (4 records, loaded on boot) marks HotWax orders and Shopify orders as the systems a pulse can read upstream and rewords two mascot lines; its alerts change adds no data. There is no migration of its own.

Upgrade

To 3.5.0. The three system components carry the ID index’s sources, and core without them indexes nothing. The ID index tables are created on boot.
  1. Load the upgrade data (4 records, loaded on boot by default): the tenant filters of the three ID index tables and the job maintain_IdIndex_nightly, which arrives paused. Resume it when the index should be maintained nightly.
  2. Run the pending migrations (run#PendingMigrations, a dry run first): ACK_NOTE_NULLABLE makes AUDIT_FINDING_ACKNOWLEDGEMENT.NOTE nullable, the schema only. 3.4.16 registered it; 3.5.0 fixes its MySQL statement.
  3. Deploy darpan-ui v4.4.15 after the migration.
  4. The API contract moves to 6. Move to darpan CLI 0.6.0.
3.5.1 to 3.5.9. Each moves darpan alone, except 3.5.3 (below). Every one loads its upgrade data on boot and has no migration of its own; run the pending migrations after the deploy anyway, then keep app v4.4.15.
  • 3.5.1 is deployed in place of 3.5.0, on 3.5.0’s other pins. Its upgrade data (4 records) sets pulseCreatedField and pulseNameField on the OMS_GQL and SHOPIFY connectors; the two connector columns are created on boot.
  • 3.5.2 has no upgrade data. It fixes ACK_NOTE_NULLABLE, which 3.5.1 could not run: MySQL refuses DDL on a connection enlisted in an active XA transaction (XAER_RMFAIL), and run#Migration runs in one. The migration now suspends that transaction around its statement.
  • 3.5.3 moves darpan, darpan-hotwax v1.4.1 and netsuite-darpan v0.8.1 together; load darpan-hotwax before netsuite-darpan, because the NetSuite read by change asks HotWax first. Its upgrade data (5 records) adds the AuditSharedRead statuses and the tenant filter DARPAN_SCOPE_AUD_SHARED_READ; the table AuditSharedRead and the NsSuiteQlSourceQuery fields omsChangedStatusIds and liveLineStates are created on boot. One new setting, darpan.reconciliation.automation.maxConcurrentLightRuns (default 4).
  • 3.5.4 is 3.5.3 plus a sync pulse fix, deployed in its place; same pins as 3.5.3 and no upgrade data of its own. 3.5.3’s records load from their darpan-seed files on boot.
  • 3.5.5 has no upgrade data.
  • 3.5.6 and 3.5.7 load the mascot seed (and, for 3.5.7, one email copy block); they change only default wording, never an admin’s edit.
  • 3.5.8 is deployed in place of 3.5.7. Its upgrade data is diffed from 3.5.6, so 3.5.7’s mascot seed and copy block load with it.
  • 3.5.9’s upgrade data is two email copy blocks. The daily error email’s ignore list is the setting errors.email.ignorePatterns.

v3.4.16

Cut together with app v4.4.0 and darpan CLI 0.2.4; darpan 3.4.16, app v4.4.14 and CLI 0.5.0 are the builds to deploy. 3.4.1 gives automations back their own copy of the filters; 3.4.2 makes Run now read both sides in the run’s own tenant and checks every unmatched exchange; 3.4.3 gives queries their own page and lets a NetSuite order line carry its order’s backorder; 3.4.4 looks up every record a regular run’s read could not confirm, opens the audit page on the last morning that was due, and gives audit findings a priority, which app v4.4.4 lets you work through on the audit page; 3.4.5 lists under each audit statement only the causes it can reach, gives a Shopify order on its way to NetSuite its day of grace, and lets a HotWax orders side keep exchange orders; 3.4.6, with app v4.4.7, sends a run’s errors to the Darpan team instead of your chat space, re-checks HotWax orders that changed since an audit’s last read, and shows each system’s payment status on a finding; 3.4.7, with app v4.4.10, lists an order finding’s lines with each system’s word for them, and sends a failed saved run’s error to the Darpan team instead of your chat space; 3.4.8 makes those lines a read option you tick on a run’s side; 3.4.9, with app v4.4.11, lets you acknowledge an audit finding with a note, send Darpan feedback from a finding, and re-check every open finding at once; 3.4.10, with app v4.4.12, lets you switch a run’s read options on its page after it is made. 3.4.11, with CLI 0.3.0, lets the CLI make any change your role allows in the app; 3.4.12, with app v4.4.14, makes every audit finding speak of the systems its check compares, in the same rows, and adds the methods behind proposing an audit change yourself; 3.4.13 follows an order id through every connected system for the CLI and keeps the record an audit check looked up. A minor release that moves the API contract to version 5, because methods are removed. It adds 25 methods, for peak periods, the sync pulse, the audit read report and queries (and 3.4.3 one more, for pinned queries, 3.4.9 seven, for acknowledgements, feedback and re-checking all findings, 3.4.12 three, for proposing an audit change, and 3.4.13 six, for looking up an order), and removes the 8 tenant script methods that queries replace. The theme: Darpan stays light on your busy days, every run filters its records the same way, and you can ask your own questions of what your audits keep.

Operators

  • 3.4.14 is backend only; the app stays at v4.4.14 and every other component where 3.4.13 put it. There is no upgrade data and no migration.
  • 3.4.16 moves darpan alone. Its upgrade data (1 record, loaded on boot) registers a migration that 3.5.0 fixes for MySQL and runs; 3.4.17 was cut and never deployed.
  • 3.4.15 is backend only too; the app stays at v4.4.14. There is no upgrade data and no migration.
  • 3.4.13 moves darpan, darpan-hotwax v1.3.5, shopify-darpan v0.11.3 and netsuite-darpan v0.7.2 together; they carry the order lookup’s reads and links. Its upgrade data (loaded on boot) adds the tenant filters for the two lookup tables. There is no migration. Deploy it before app v4.4.14; CLI 0.5.0 follows.
  • 3.4.12 is cut with app v4.4.14; deploy them together, backend first. Only darpan moves in the image. There is no upgrade data and no migration. It adds three API methods (contract stays 5) that CLI 0.4.0 uses, released after the deploy.
  • 3.4.11 is backend only, cut with CLI 0.3.0; the app stays at v4.4.13. Only darpan moves in the image. There is no upgrade data and no migration.
  • 3.4.10 is cut with app v4.4.12; deploy them together. Only darpan moves in the image. There is no upgrade data and no migration. App v4.4.13 follows on its own: the feedback popup lists past notes under Previous notes, shown only when there are some.
  • 3.4.9 is cut with app v4.4.11; deploy them together. Its upgrade data (63 records, loaded on boot) restates the whole audit vocabulary with the three acknowledgement history events, and carries the tenant filters for the two new tables, the feedback thank-you and answer emails with their words, and the acknowledged lines of the run update and the digest. The acknowledgement and feedback tables are created on boot. There is no migration. Feedback reaches the Darpan team only once feedback.chat.webhookUrl is set in the admin app; the note is saved and the thank-you email goes either way.
  • 3.4.8 is backend only; the app stays at v4.4.10 and shopify-darpan at v0.11.2. It needs darpan-hotwax v1.3.4 in the image, and its upgrade data (1 record, loaded on boot): the Shopify connector with its Order lines option. The HotWax connector’s Order items option loads from darpan-hotwax on every boot. There is no migration. A side with either option on reads live, not from a kept copy.
  • 3.4.7 is cut with app v4.4.10; app v4.4.9 was tagged but never deployed. 3.4.7 needs darpan-hotwax v1.3.3 and shopify-darpan v0.11.2 in the image, and its upgrade data (1 record, loaded on boot): the words of the line a failed saved run sends. There is no migration. Line reading stays off for every check until Darpan turns it on.
  • 3.4.6 is cut with app v4.4.7. It needs darpan-hotwax v1.3.2 and shopify-darpan v0.11.1 in the image, and its upgrade data (37 records, loaded on boot): the words of the run notice, the daily error email, the Unexplained findings email and the audit update’s new lines, and two scheduled jobs. Three tables and four run history fields are created on boot. There is no migration. Darpan’s error cards, its daily error email and the Unexplained findings CSV are for the Darpan team and stay off until errors.chat.webhookUrl, errors.email.to and audit.unexplained.email.to are set in the admin app.
  • 3.4.5 was cut backend only; app v4.4.6 follows it and shows every finding’s first row (each system’s state, the total and the day) in full on the audit page. 3.4.5 needs darpan-hotwax v1.3.1 in the image, and its upgrade data (2,325 records, loaded on boot): the in-app help content and the HotWax orders connector’s new option. The browser preflight now allows the X-Darpan-Tenant header. There is no migration.
  • 3.4.4 was cut backend only; app v4.4.4 follows it and shows the priorities and the new audit progress fields. App v4.4.5 lays out the priority choices in Audit settings as full-width lettered options, with each statement’s level in its own column. 3.4.4 needs moqui-gql v1.1.1, darpan-agent v0.5.1 and database-darpan v0.4.1 in the image, and its upgrade data (53 records, loaded on boot): the priority levels, a 6-hour lock expiry on every scheduled job, and the run email’s new line. A run killed mid-job now frees its job’s lock after 6 hours instead of 24. Dependencies are patched, among them log4j 2.25.5 and the PostgreSQL driver 42.7.15.
  • Deploy the backend first, then the app, then release darpan CLI 0.2.5. 3.4.3 needs netsuite-darpan v0.7.1 in the image; it has no upgrade data or migration. The CLI’s new writes are refused until the backend is deployed. The image must carry moqui-rules and moqui-jexl: darpan 3.4.0 does not start without moqui-jexl.
  • Load this release’s upgrade data with the deploy, not after. It carries each connector’s built-in filters: without them, a run on that source fails with “Load the upgrade data, then run again.” It also carries the peak period and sync pulse access rows (without them, saves say not authorized), the sync pulse job and statuses, the welcome email’s password line, two conclusion names and three connectors’ status fields.
  • The first extract clean-up after the deploy deletes every manual run’s extracts and lookup answers older than 7 days, for every tenant. Download any you still need before deploying.
  • Right after loading the upgrade data, run the pending migrations. TENANT_SCRIPTS_TO_QUERIES copies every tenant script into a query and every deployment into a schedule, switched off, and removes the old scripts’ five-minute job; it has no dry run, keeps the old rows and is safe to run twice. Until it runs, no old scheduled script posts. On an instance that ran 3.4.0, AUTOMATION_FILTER_COPY (3.4.1) gives each automation back its own filters, copied from its run’s; it has a dry run and is safe to run twice. Until it runs, those automations run unfiltered. Upgrading from before 3.4.0 straight to 3.4.1, it writes nothing and the automations keep the filters they have. The steps are under Upgrade below.
  • Rolling back from 3.4.1 to 3.4.0 after AUTOMATION_FILTER_COPY has run: delete the rows of RECONCILIATION_AUTOMATION_SOURCE_FILTER first. 3.4.0 does not clear them, so saving, syncing or deleting an automation would fail on their foreign key.
  • Sync pulse samples are kept 30 days by the daily retention job. Make sure that job is running.
  • Users created before this release have no kept password. For anyone who still needs one, reset the password and send the welcome again.
  • add#TenantMember answers welcomeSent and welcomeWithPassword instead of welcomeQueued, and waits for the mail server.
  • Darpan emails carry a Message-ID on the sending domain (support@drpn.ai, or DARPAN_MAIL_FROM) instead of the server’s host name.
  • A scheduled query’s email comes from the same address as Darpan’s other mail (DARPAN_MAIL_FROM, else support@drpn.ai); there is nothing new to set. An instance with scheduled_job_check_time 0 holds query schedules too.

Upgrade

To 3.4.0. 3.4.0 runs Keep, the step that sets records aside, in Spark after every read instead of in each connector’s extractor, and adds the moqui-rules and moqui-jexl components. The upgrade data is a delta on 3.3.2. New tables (RULES_*, the jexl.script tables (USER_SCRIPT, USER_SCRIPT_DEPLOYMENT, USER_SCRIPT_DEPLOYMENT_DELIVERY, USER_SCRIPT_RUN, SCRIPT_SOURCE), DATASET, DATASET_READ, PEAK_PERIOD, PEAK_PERIOD_RUN_TIME, SYNC_PAIR, PEAK_PERIOD_SYNC, SYNC_PULSE_SAMPLE, SYNC_PULSE_ORDER, the judge tables) and new columns on existing tables are created on boot.
  1. Build the set from darpan-docker-config at its 3.4.0 tag. It clones and builds moqui-rules and moqui-jexl (MOQUI_JEXL_REF v0.2.2); a darpan 3.4.0 ref does not build without moqui-rules and does not start without moqui-jexl. Every connector component moves with darpan, because their extractors no longer filter.
  2. Set JAVA_OPTS on the container. The entrypoint stops without it.
  3. On MySQL, check two column types after the first boot. SOURCE_SYSTEM_CONNECTOR.KEEP_LINES_JSON and DATASET.KEPT_FIELDS_JSON must be LONGTEXT. Moqui adds a missing column with the right type but never changes the type of an existing one, so a database that ran a pre-release 3.4.0 build may hold them narrower. Widen them with ALTER TABLE SOURCE_SYSTEM_CONNECTOR MODIFY KEEP_LINES_JSON LONGTEXT and ALTER TABLE DATASET MODIFY KEPT_FIELDS_JSON LONGTEXT. SOURCE_SYSTEM_CONNECTOR.LOOKUP_MAX_IDS is no longer read; it stays.
  4. Load the upgrade data with loadDarpanUpgradeData. Loading by the darpan-seed type (the entrypoint’s default) also loads each connector’s built-in Keep lines, which darpan-hotwax, netsuite-darpan and shopify-darpan seed in their own darpan-seed files; until they are loaded, a run side that Spark keeps fails with “Keep lines (keepLinesJson) are not loaded”. For queries the darpan-seed files carry the jexl.script tenant filters, the read sources, the JEXL_* artifact groups and their grants to DARPAN_USER (moqui-jexl’s own seed is type seed, so Darpan carries a copy as darpan-seed), the DARPAN_QUERY_RESULT email template and its copy, and the TENANT_SCRIPTS_TO_QUERIES registry row.
  5. moqui-rules’ seed comes with the upgrade data. Its data/RuleSeedData.xml is type seed, which DARPAN_LOAD_UPGRADE_DATA does not load, so the 3.4.0 upgrade data carries a verbatim copy of its rows. Without them, generating a check’s pair fact type fails on a foreign key to FVT_TEXT.
  6. Run the pending migrations right after the load. The upgrade data parks the retired AUTOMATION_FILTERS and AUTOMATION_FILTER_TABLE migrations: 3.4.1 keeps automations’ own filters in RECONCILIATION_AUTOMATION_SOURCE_FILTER. On an instance that ran 3.4.0, AUTOMATION_FILTER_COPY copies each automation’s filters back from its run’s; until it runs those automations run unfiltered, so stop the scheduler across the deploy and this step. TENANT_SCRIPTS_TO_QUERIES then copies every tenant script into a query and every deployment into a schedule, switched off, and deletes the retired scan_TenantScriptDeployments_5m job.
  7. Deploy darpan-ui after the backend.
What changes on its own after the 3.4.0 deploy:
  • The first extract purge deletes every interactive extract (fileN-api folders) and captured lookup answer (lookups/) older than darpan.purge.extract.days (7), for every tenant.
  • Stored source filters are no longer sent to the extractors. Spark applies them after the read. A data-defined source still filters at the read.
  • An automation runs on its own copy of its run’s filters (3.4.1). An edit on the run reaches the automation’s scheduled and audit runs only after a sync.
  • run_SyncPulse is seeded running and does nothing until a tenant gives a sync pair a pulse cadence. Sync pulse samples are kept 30 days, but only while run_DataRetention_daily runs; it is seeded paused, so resume it on an instance with sync pairs.
  • scan_DueDatasets_30m is seeded paused. No dataset reads a source until it is resumed and a dataset is active.
  • moqui-jexl’s scheduler checks for due query schedules every 60 seconds on every node, starting two minutes after boot. It is not a service job: jexl_deployment_check_seconds 0 turns it off on a node. A node with scheduled_job_check_time 0 holds query schedules too.
  • Migrated query schedules stay off until a tenant admin switches each on. The old darpan.script tables stay until a later release drops them.
3.4.4. Its upgrade data has 53 records. The audit priority column and table are created on boot. Regular runs look up every missing record whatever its share; only audit checks keep the 5% gate, so a tenant whose daily reads leave many records missing makes more lookup calls than on 3.4.3. 3.4.5. Its upgrade data has 2,325 records. The browser CORS preflight allows the X-Darpan-Tenant request header beside the framework’s own list; a proxy in front of the backend that answers preflights itself must allow it too. 3.4.6. Its upgrade data has 37 records. The RUN_ERROR_NOTICE, ERROR_LOG_ENTRY and ERROR_DIGEST_SEND tables and four execution columns (FILE1_READ_COUNT, FILE2_READ_COUNT, NO_DATA_KIND, TRIGGER_TYPE) are created on boot. Six settings sit under the admin app’s Errors area; set them to your own team’s destinations, never a client’s: Every ERROR log line is counted in memory and stored every 5 minutes, whether or not errors.email.to is set. A Shopify completed-returns read asks each order’s date, statuses and totals, which costs a little more Shopify query cost per order. See Run errors. 3.4.7. audit.unexplained.email.to is refused on save unless it is a list of email addresses. A source’s stored parameters.readFields ride beside the rules’ read fields. Roll back by redeploying 3.4.6; the copy block is ignored there. 3.4.8. The OMS_GQL row, with its withOrderItems option, loads from darpan-hotwax’s own data/HotWaxConnectorSeedData.xml on every boot. Order lines are turned on in the run editor; see Order lines for audit findings. Roll back by redeploying 3.4.7: the connectors’ extra option is ignored there, and a side that stored it keeps it while a 3.4.7 run drops it at run time, without failing. 3.4.9. Without the upgrade data load, acknowledging a finding fails on a foreign key to the missing event types. Three settings: Set feedback.chat.webhookUrl to your own team’s space, never a client’s. List and answer feedback with darpan-admin feedback and darpan-admin feedback reply <id> "<answer>". Re-check all (verify#AuditFindings) starts one automation run per automation, and one more per 1,000 orders, through run admission. The nightly purge deletes a finding’s acknowledgement with the finding; feedback rows are not purged. Roll back by redeploying 3.4.8 with app v4.4.10: the new tables stay and are not read, so acknowledged findings count as open again. 3.4.10. save#RuleSetRun takes file1ExtractOptions and file2ExtractOptions (omitted keeps, sent replaces, an empty map clears). Roll back by redeploying 3.4.9 with app v4.4.11: options saved meanwhile stay stored and keep working. 3.4.11. store#SourceConfigEndpointAccess needs edit access. Roll back by redeploying 3.4.10: CLI changes are then refused at the server (exit 7) and reads keep working. 3.4.13 to 3.4.15. 3.4.13 adds the tenant filters for the two lookup override tables, which are created on boot. lookup#Order (3.4.14) also lists findings a check keyed by another system’s ids. get#AuditChangeProposal and list#AuditChangeProposals refuse a view-only user (3.4.15). Roll back 3.4.14 and 3.4.15 by redeploying the patch before. 3.4.16. Run the pending migrations after the boot (run#PendingMigrations, a dry run first): ACK_NOTE_NULLABLE makes AUDIT_FINDING_ACKNOWLEDGEMENT.NOTE nullable, the schema only, no row changed. Moqui never relaxes an existing column, so until it runs an acknowledgement with no note fails. Deploy app v4.4.15 after it.

Rollback

  • To roll back to 3.3.2, roll back the whole set, connectors included, so the extractors filter again. New tables, columns and seed rows stay and are ignored. The old scripts’ rows are still there, but TENANT_SCRIPTS_TO_QUERIES deleted their five-minute job: the 3.3.2 seed load brings it back. Changes made to queries since are not carried back.

v3.3.2

Cut together with app v4.3.0 and darpan-agent v0.4.0; backend v3.3.2 and app v4.3.2 are the builds to deploy. A minor release: the API contract stays at version 4 and only gains methods. The theme: what used to wait for a release is now edited while Darpan runs, by a super admin, with a preview where it matters and a record of every change.

Operators

  • Editable in the admin app and with darpan-admin, without a deploy: every email’s words and subject, with a live preview; tunables such as run admission caps, retries, run-health thresholds and the two-factor reminder cadence; scheduled jobs’ crons, pause states and parameters; retention periods, per tenant too, and the purge days for result and extract files; the mascot’s hints and glossary; and the agent’s prompts, models, prices, replies and per-tenant daily cap.
  • A deploy keeps every edit: job seeds carry defaults only, applied to jobs nobody edited. Resuming a job that deletes data, or shortening a retention period while it runs, needs a fresh preview.
  • An agent model without a price refuses the turn instead of spending untracked; enter the price first when moving to a new model.
  • Deploy the backend first, then the app, then the admin app. After deploy, run the RETIRED_JOB_PARAMETERS migration (dry run, then real): it moves the purge jobs’ old retentionDays parameters into their settings.
  • The agent’s author model is no longer a JVM property; set every role’s model in the admin app.
  • A conclusion rule can read any field of the HotWax order, also on a run that filters stores or channels: the read asks for every field the run’s rules and conclusion rules use. Before, such a condition saw a blank and never matched (3.3.1).
  • The Schedule page lists every job in production, and a job’s time, parameters and pause state can be changed there and with darpan-admin job (3.3.2).
  • A once-a-day job can be moved to any daily time on a server whose clock keeps daylight saving (3.3.2).
  • A migration you disable stays disabled after a deploy (3.3.2).

v3.2.1

Cut together with app v4.2.0, darpan-hotwax v1.2.0 and darpan-agent v0.3.0; backend v3.2.1 is the build to deploy. A minor line: the API contract stays at version 4 and only gains methods.

Operators

  • Deploy the backend before app v4.2.0: the passkey button calls two new methods.
  • darpan-admin signs in on UAT and prod by browser approval: the operator types the terminal’s code in the Darpan app, and a super admin with two-factor on approves with a fresh passkey or app code. The session lasts 12 hours and is kept until it ends or darpan-admin logout. Only that admin session can call admin.* from a CLI.
  • Two-factor policy gains the role everyone; the super admin who dates super admins or everyone must keep a second way back in: a passkey and an authenticator app, or unused recovery codes. Clearing a date is never blocked. Policy dates are on the UTC calendar: 2026-12-02 starts at 00:00 UTC.
  • A daily job at 15:00 UTC sends the reminder emails and does nothing while no policy has a date.
  • Passkey-only sign-in is rate-limited per address and answers an unknown username the same as a known one.
  • The email line is written at send time when an AI key is configured; otherwise the template’s own line is used.
  • Before dating the everyone requirement, make sure your own second way back in is set, move password-only service accounts to GraphQL API keys or enrol them, and tell tenant users.

Upgrade

The upgrade data is a delta on 3.1.0: four records (the tenant user role’s description, the EVERYONE two-factor policy row, a reminder email template and the send_TwoFactorReminders_daily job). The PasskeySignInChallenge and AuthSecret tables and the scopeId field on the CLI sign-in tables are created on boot; nothing needs backfilling.
  1. Build and deploy the set from the darpan-docker-config tag of the 3.2 release you deploy, then load the upgrade data with loadDarpanUpgradeData.
  2. Deploy the backend before darpan-ui v4.2.0.
  3. Keep the scheduler on one node. send_TwoFactorReminders_daily runs at 15:00 UTC on the scheduler node.
  4. Before dating the EVERYONE policy, read the list of people not yet enrolled. Setting a date for DARPAN_SUPER_ADMIN, ADMIN or EVERYONE needs the setter to have a passkey and an authenticator app, or unused recovery codes.

Rollback

  • Roll back the whole set to 3.1.0. The new tables, the policy row, the template and the job stay and are ignored; passkeys and enrolments are kept.

v3.1.0

Cut together with app v4.1.0, darpan-hotwax v1.1.0, shopify-darpan v0.10.0, netsuite-darpan v0.6.0, database-darpan v0.4.0, moqui-gql v1.1.0 and darpan-agent v0.2.0. A minor release: the API contract stays at version 4 and only gains methods, and every component deploys together.

Operators

  • All components deploy together. Deploy with darpan-docker-config at v3.1.0: its health check reads /, because the framework’s /Login page now answers 404.
  • Tell people before deploying: web sign-ins older than 24 hours and CLI sign-ins older than 7 days end at the deploy, and they sign in again (darpan login for the CLI).
  • Two-factor is optional for every role at deploy. Set it up first, then require it by role in the admin app under Open Security. Requiring it for super admins or everyone needs the setter to keep a second way back in.
  • Passkeys use the host of DARPAN_APP_BASE_URL as their relying party. An instance served elsewhere sets DARPAN_WEBAUTHN_RP_ID and DARPAN_WEBAUTHN_ORIGINS. DARPAN_TOTP_ISSUER names the entry in authenticator apps (default Darpan).
  • Darpan signs people in only through its own sign-in. HTTP Basic and username/password request parameters are refused with 401; integrations use a session or an API key.
  • Passwords are stored with PBKDF2 and rehashed at sign-in.
  • Tighter tenant isolation and outbound connection checks across every connector.
  • The admin audit trail covers every admin change and every download.
  • Per-table retention for findings, run results, agent transcripts and agent query logs, off until a period is set. A nightly job deletes extracts older than 7 days.
  • A super admin command rotates the field-encryption key.
  • Backend groundwork for a Darpan Shopify app (install and privacy webhooks). Nothing changes until an app is registered.
  • The prod image runs as a non-root user, from pinned base images.

API

  • Contract version stays 4: 23 methods are added (12 for two-factor and passkeys, and admin methods for two-factor policy and reset, Darpan admins, the tenant welcome, a retention dry run, key rotation and Shopify apps, plus begin#ShopifyInstall) and none is removed. login#Session can answer with a two-factor challenge instead of a token.
  • GraphQL agent keys last at most 90 days by default (gql.apiKey.maxDays); a key minted with no expiry gets the maximum. Each key records who minted it.

Upgrade

  • Start the new image first: it creates the new tables for two-factor, passkeys, retention and Shopify apps.
  • From v3.0.3: load the seed records with ./gradlew loadDarpanUpgradeData (90 records: two-factor policies and email templates, the tenant welcome template, the extract and retention jobs, and the tenant filters), then run#PendingMigrations, dry run first. One migration, NS_AUTH_ACCOUNTS, records each NetSuite auth profile’s account.
  • From an earlier v3.0 patch, load the v3.0.3 records first; see that section.
  • Build with a MOQUI_FRAMEWORK_REF that includes PBKDF2 hashing, and deploy app v4.1.0 with the backend.
  • Check your API clients first. A script that sends a password as HTTP Basic or as authUsername/authPassword gets HTTP 401: move it to login#Session and the login_key header, or to a GraphQL API key. A /Login health check gets 404; check / (a redirect) or /status from inside the container instead.
  • Turn on two-factor sign-in after the deploy: each super admin sets up a second factor, then admin.SecurityAdminServices.update#TwoFactorPolicy makes a role required from a date. Set DARPAN_APP_BASE_URL (or the DARPAN_WEBAUTHN_* variables) first if your users will use passkeys.
  • The retention job is seeded paused and every period is unset, so it deletes nothing until you set a period and resume the job.

Rollback

  • Roll back as a set, to v3.0.3 with app v4.0.3. Passwords rehashed after the upgrade cannot be checked by the older image, so those people reset their password. Reload v3.0.3’s SecuritySeedData.xml so the tenant filters match its code. The new tables and two-factor enrolments stay and are not read.

v3.0.3

Cut together with app v4.0.3, darpan-hotwax v1.0.1, shopify-darpan v0.9.1, netsuite-darpan v0.5.1, database-darpan v0.3.0, moqui-gql v1.0.0 and darpan-agent v0.1.2. One section covers the 3.0 line: v3.0.0 (November 12, with app v4.0.0 and the first darpan-agent tag, v0.1.0) and the November 12 patches: app v4.0.1, v4.0.2 and v4.0.3, darpan-agent v0.1.1 and v0.1.2, v3.0.2 with darpan-hotwax v1.0.1, shopify-darpan v0.9.1 and netsuite-darpan v0.5.1, and v3.0.3 with app v4.0.3. There is no backend v3.0.1. A major release: the API contract moves to version 4, and every component deploys together.

Operators

  • All components deploy together.
  • Before deploying, set DARPAN_APP_BASE_URL and confirm the SYSTEM email server: the run update emails every audit’s recipients after each run, and its links use that base URL.
  • The audit agent runs when DARPAN_AGENT_ENABLED=true, the tenant is enabled, and the user holds an AI access grant or is a Darpan administrator. The same switch and tenant setting turn on Claude’s words in the run update.
  • The agent reaches Claude by workload identity federation, with no stored Anthropic key: the task mints a short-lived AWS-signed token (sts:GetWebIdentityToken, audience https://api.anthropic.com) and the Anthropic SDK exchanges it. Enable outbound web identity federation on the AWS account, allow the task role sts:GetWebIdentityToken for that audience, and set ANTHROPIC_FEDERATION_RULE_ID, ANTHROPIC_ORGANIZATION_ID, ANTHROPIC_SERVICE_ACCOUNT_ID, ANTHROPIC_WORKSPACE_ID and ANTHROPIC_IDENTITY_TOKEN_FILE. Leave ANTHROPIC_API_KEY unset: it takes precedence over federation.
  • Two scheduled jobs: due script deployments every 5 minutes, and a config version for each tenant whose audit config changed and has been quiet for a minute.
  • The run engine moves to Spark 4.2.1 and Drools 10.2.0. The image’s JVM flags carry what they need.
  • Connections keep their stored secret only while their host is unchanged, and SFTP and database connections verify the server’s identity, AWS RDS included. A database whose certificate cannot be verified needs its CA stored before it connects again.
  • The app moves to Vue 3.5.44.

API

  • Contract version 4. list#HotWaxOmsRestSourceConfigs and save#HotWaxOmsRestSourceConfig no longer take or return ordersPath and returnsPageSize: HotWax reads are GraphQL only. 66 methods are added, for the agent, CLI access, tenant scripts, config versions and data definitions.
  • GraphQL: a finding is open or fixed; pending, pendingUntil and graceDays are gone.

Upgrade

  • Start the new image first: it creates the new tables and columns.
  • From v3.0.0 or v3.0.2: start the v3.0.3 image. From v3.0.0 it adds one column. Two seed records (the item quantity fields on the rules board) load at start, or with ./gradlew loadDarpanUpgradeData. There are no migrations.
  • From v2.1.12: load the seed records with ./gradlew loadDarpanUpgradeData (150 records from v2.1.12, including the tenant filters for the new entities, and the 2 of v3.0.3), then run#PendingMigrations, dry run first. Four migrations run once each: stored HotWax sources move from the retired REST endpoints to GraphQL (the dry run names any transfer-order or line-unit source with no GraphQL endpoint), statement links lose their expected-cause lists, each audit gets one schedule, and pending findings open.

Rollback

  • Roll back as a set. To v3.0.2 with app v4.0.2: findings that moved with their check stay under their new statement and read as ordinary open findings. To v3.0.0 with app v4.0.1 and darpan-agent v0.1.1: the new column stays unread, and runs reading the item count or ship groups find those fields empty. To v3.0.0 with app v4.0.0 and darpan-agent v0.1.0: the agent then reads only ANTHROPIC_API_KEY, so set one or turn the agent off. To v2.1.12 with app v3.1.4 and the v2.1 connectors: the migrations do not reverse, so findings stay open or fixed and each audit keeps the one schedule it was given. The new tables stay and are not read.

v2.1.12

Cut together with darpan-hotwax v0.10.4, netsuite-darpan v0.4.3 and shopify-darpan v0.8.5, with app v3.1.4, database-darpan v0.2.2 and moqui-gql v0.1.1. One section covers the 2.1 line: v2.1.0 (October 26, with app v3.1.0, darpan-hotwax v0.10.0, netsuite-darpan v0.4.0, shopify-darpan v0.8.0 and moqui-gql v0.1.0) and the v2.1.1 (October 27), v2.1.2 with app v3.1.2, v2.1.3 and v2.1.4 (October 28), v2.1.5 (October 29) and v2.1.6 (October 30, with app v3.1.3 and shopify-darpan v0.8.5) v2.1.7, v2.1.8 and v2.1.9 (October 30, with app v3.1.4), v2.1.10 and v2.1.11 (October 31) and v2.1.12 (November 2) patches. A minor line: the API contract only gains methods, and the components deploy together.

Operators

  • All components deploy together.
  • Every run waits its turn in one queue: up to 8 at once, 5 per tenant, tenants taking turns, held while memory is short. A played run runs in its audit’s tenant.
  • Search and run lists read each result’s summary, not the whole document.
  • The compare writes a <extract>.records.jsonl beside each JSON extract it reads. It is derived and goes with the run’s files.
  • A scheduled run’s extracts report how many records they have read, and Cancel run stops an automation mid-extract.
  • A failed extract fails its run and is retried, rather than reporting the window as empty. A HotWax orders page that answers 429, 502, 503 or 504 is retried on its own, and so is a transient HotWax GraphQL failure.
  • A run that failed after its reads finished can run again over the same window from the files it already read, without reading the source systems again.
  • New connections, queries and configurations get ids minted by the server; another tenant’s id answers exactly like a missing one.
  • Error messages and logs print an encrypted field as ***.
  • Each outbound request to HotWax, NetSuite and Shopify writes one INFO log line (oms gql call, oms rest call, netsuite call, shopify gql call).
  • Audit digests and password resets send from support@drpn.ai (override with DARPAN_MAIL_FROM); the SYSTEM email server needs an smtpHost.

API

  • Contract version stays 3: 32 methods are added across the line (26 in v2.1.0, 4 in v2.1.1, 2 in v2.1.2) and none is removed. v2.1.6 adds one optional parameter, retryFromRunResultId, to run#SavedRunDiff. v2.1.11 adds one optional parameter, lookups, to save#RunConclusions (replaced when given, an empty list clears them); a lookup’s parameters carry only keepRecordFields. From v2.1.12, get#AuditSettings.playableFrom is the first day of the period just ended (the tenant’s go-live when later), and run#Audit accepts days in that period.
  • GraphQL: read-only auditReport, auditFinding and findings (search, sort, paging), for agent keys that can be labelled, expired, listed, disabled and rotated. Tenant administrators mint keys for the tenant they are signed into.

Upgrade

  • Start the new image first: it creates the new tables and columns.
  • Load the seed records with ./gradlew loadDarpanUpgradeData, then run#PendingMigrations: 103 records from v2.0.0, the 5 of v2.1.1 from v2.1.0, the 3 of v2.1.2 from v2.1.1, the 1 of v2.1.3 from v2.1.2, none for v2.1.4, the 14 of v2.1.5 from v2.1.4, and none for v2.1.6 through v2.1.12. run#PendingMigrations then folds every automation’s history into its stored streak once.
  • Audit catalogues and checks are tenant configuration: load them per tenant, one file at a time, with DARPAN_UPGRADE_DATA_TYPES=darpan-tenant-config and DARPAN_UPGRADE_DATA_LOCATION=component://darpan/data/<file>.
  • Play each audit once from its page to create its automations, then schedule and enable them.

Rollback

  • Roll back as a set. To v2.1.11: a month that has ended can no longer be played; findings a play already recorded stay in that month’s report. To v2.1.10: a first play runs nothing (Run now on the audit’s automation works around it), and saved lookups that attach every record under a key read one record. To v2.1.9: a reason fails to save on a run whose compare scope has no mode (set its scopeMode to COMPARE). To v2.1.8 or v2.1.7 (app v3.1.3): a month-wide compare runs out of memory again; the .records.jsonl files left beside extracts are inert. To v2.1.6: nothing to undo; a repeated key then stops a ruled compare again. To v2.1.5 (app v3.1.2): nothing to undo. To v2.1.4: remove any rule on Shopify transactionIds first. To v2.1.2: remove any Sales channel filter on a HotWax GraphQL read first. To v2.1.1 (app v3.1.1): remove any “all in” or “contains all” rule first, and leave the AUTOMATION_STREAKS migration unrun. To v2.1.0 (app v3.1.0): delete the DARPAN_SCOPE_AUTOMATION_STREAK_BADGE, DARPAN_SCOPE_TENANT_STREAK_QUEST and DARPAN_SCOPE_TENANT_STREAK_FACT entity filters first. To v2.0.0 (app v3.0.0 and the v2.0.0 connectors): delete the 12 audit tenant-filter rows and the four filters of v2.1.1.

v2.0.0

Cut together with app v3.0.0, darpan-hotwax v0.9.0, shopify-darpan v0.7.0, netsuite-darpan v0.3.0 and database-darpan v0.2.1. A major release: the API contract only gains methods, but the transport, the run step codes and the connector pairing all change, and every component moves together.

Operators

  • All five backend components and the app deploy together. The backend seeds sources whose extract services exist only in the new connector versions, and the new connectors need the new backend. No mixed combination works.
  • /rpc/json answers HTTP 403 for any method outside facade.*, admin.* and gql.*, before dispatch. The framework’s /rest/login is closed. Darpan’s own clients use nothing else.
  • Run steps: verification records VERIFY_MISSING, VERIFY_EXCHANGE or VERIFY_RETURNS instead of VERIFY, a CONCLUDE step follows, and WRITE_OUTPUT and NOTIFY move to 9 and 10. Past runs keep their steps.
  • Every tenant-owned table is under the tenant filter. Rows with no tenant stamp disappear from tenant reads, so count them before upgrading.
  • Saved source filters on Shopify orders start applying after the upgrade; until now they were stored and ignored.
  • Returns verification over a long window gives a partial answer rather than none and says how many records it could not check. The HotWax returns lookup retries a transient gateway error after a minute, up to three times.
  • A weekly automation no longer fires twice when its window crosses a month boundary.
  • An automation can no longer be pointed at another tenant’s chat space, and saving an SFTP server can no longer take over another tenant’s server.
  • Super-admins get one timeline of every tenant’s scheduled runs.

API

  • Contract version stays 3: 29 public methods are added (86 to 115) and none is removed or changed, plus one operator-only method.
  • The breaking change for integrations is the method fence above: an integration that calls only published methods needs no change.
  • Run window boundaries in get#GeneratedOutput and get#ReconciliationRunStatus are ISO-8601 instants with a timeZone beside them.

Upgrade

  • Load v1.5.1’s 2 records first if they have not been loaded.
  • Before loading, count rows with no tenant stamp, using the queries in the upgrade file’s header (expect 0), and list saved source filters on Shopify-orders sources. If a filter, key-field or scope count is not 0, run reconciliation.ReconciliationRuleEngineServices.sweep#RuleChildTenantStamps and count again.
  • Build from darpan-docker-config v2.0.0, which pins all five backend components, and deploy it with app v3.0.0.
  • Load v2.0.0’s 80 records with ./gradlew loadDarpanUpgradeData.
  • Then, once per environment, run the RETIRED_FIELDS migration with force set (admin.MigrationAdminServices.run#Migration migrationId=RETIRED_FIELDS force=true), then run#PendingMigrations. Skip the forced run and the rules board offers two return-status fields, one of which matches nothing. Re-add any rule on the old field on Return status with IN_PROGRESS.
  • Client-specific rule sets ship as tenant configuration and load per tenant, not with the upgrade.
  • Probe the method fence afterwards: an anonymous call to org.moqui.impl.UserServices.update#Password over /rpc/json must answer HTTP 403.

Rollback

  • Roll back as a set, backend to v1.5.1 with the connectors at their previous tags and the app at v2.6.1.
  • The tenant filter rows added by this upgrade (13 EntityFilter rows, listed last in the upgrade file) must be removed before v1.5.1 runs on the same database; the other records are inert to it.
  • Lifecycle snapshot reads can be switched off without a redeploy with -Ddarpan.reconciliation.runSnapshot=off.

v1.5.1

Cut together with app v2.6.1 and shopify-darpan v0.6.1. One section covers the 1.5 line: v1.5.0 (August 26, with app v2.6.0, darpan-hotwax v0.8.0, shopify-darpan v0.6.0 and database-darpan v0.2.0) and the v1.5.1 patch. NetSuite (v0.2.0), darpan-hotwax and database-darpan are unchanged by the patch.

Operators

  • Slack needs no deployment configuration for the bot-token route. The one-click install additionally needs darpan.slack.clientId, darpan.slack.clientSecret and a resolvable redirect URI.
  • One-time data migrations run through a registry with a ledger, prerequisites and a supervisor, exposed to the admin application and as a Migrations screen. run#PendingMigrations is idempotent and safe to run on every deployment.
  • Source configurations carry explicit per-endpoint access. Endpoints not enabled are disabled, including endpoints added to the registry later.
  • Blank CSV cells are now read as empty values rather than as absent fields, which changes what a comparison reports for files with blank cells.
  • A database source fails an extraction that exceeds its max-rows cap rather than truncating it.
  • Scheduled-run verification is on by default and needs no configuration. The kill switch is -Ddarpan.reconciliation.automation.verifyMissingDiffs=false, and only an exact false disables it, so an unrecognised value leaves verification on. From v1.5.1 it gates all three verification passes. Verification adds roughly 46 seconds to a scheduled run.
  • A scheduled run’s steps are RESOLVE / EXTRACT_FILE1 / EXTRACT_FILE2 / COMPARE / VERIFY / WRITE_OUTPUT / NOTIFY — the same list a hand-started run records. Counting them is how to tell a verified run from an unverified one.
  • Backend v1.5.1 and shopify-darpan v0.6.1 deploy together. The connector emits the return status the rules-board field selects; with only one of the pair, a rule on that field matches nothing and reports zero exclusions, which is indistinguishable from a rule that is simply not deployed.
  • HotWax OMS configurations gain returnsPageSize (1–1000) for shrinking the returns page when the gateway struggles at the default.
  • The one-time cleanup for chat webhooks that cannot be decrypted now covers both the legacy and the provider-agnostic column, and validates each against its own provider, so a working Slack webhook is not cleared by it.

API

  • 20 methods added and one response field removed across the line, so the contract version moves from 2 to 3. The contract moves from 90 to 110 methods (86 public facade, 24 administrative). v1.5.1 adds no methods and changes no shapes; it moves the contract’s version string only.
  • Added on the public surface: five Slack methods, three config-sharing methods, two source-endpoint methods, infer#JsonSchemaFromCsvText, sync#Automation and change#ExpiredPassword.
  • get#Automation gains a syncStatus response field.
  • Administrative additions are the seven migration methods, which are not part of the public tenant surface.
  • The one removal: list#TenantChatSpaces no longer returns chatSpaces[].googleChatWebhookUrlMasked, dropped when chat webhooks moved to clear text — read chatSpaces[].googleChatWebhookUrl instead, or the provider-agnostic chatSpaces[].webhookUrl and chatSpaces[].webhookConfigured. No method was removed.
  • returnsPageSize is added to save#HotWaxOmsRestSourceConfig and list#HotWaxOmsRestSourceConfig as an additional field on existing methods, so integrations need no change for it.

Before you deploy

  • Scheduled runs verify their differences, which they never did before. The counts your automations report will drop, and the drop can be large — on one production automation it went from 532 to 2.
  • Nothing about the data changed: the earlier number counted records that a direct lookup shows are present, and the new number is what a hand-started run of the same rule set already produced.
  • Counts can also rise on orders runs, where the exchange check adds Shopify exchanges that are genuinely absent from HotWax. The returns checks remove false positives; the exchange check adds real differences.
  • Tell whoever reads those counts before the deploy rather than after, because a count moving by two orders of magnitude overnight reads as a broken reconciliation unless it is expected.

Upgrade

  • Coming from v1.4.0: load v1.5.0’s 54 seed records via ./gradlew loadDarpanUpgradeData, then v1.5.1’s 2. v1.4.0’s upgrade data is a prerequisite.
  • Already on v1.5.0: load v1.5.1’s 2 records only. They add the Return workflow status field to the rules board and let the Shopify returns connector carry exclusion rules. Until they load, the exclusion control is hidden for that connector.
  • Then run run#PendingMigrations once, or use the Migrations screen: it walks the registered one-time migrations, skips any already applied, and is safe to run again. That covers the v1.2.0 and v1.3.0 one-time services, so an environment behind on either no longer needs to chase them separately.
  • One step is not covered by that sweep. The Shopify return-status field was renamed within v1.5.1, and a seed load never deletes, so the superseded field must be swept explicitly, once per environment, after the load: run the RETIRED_FIELDS migration with force set, from the Migrations screen or as admin.MigrationAdminServices.run#Migration migrationId=RETIRED_FIELDS force=true. It is safe to run more than once. Skip it and the rules board offers two return-status fields, one of which matches nothing.
  • Any exclusion rule saved against the superseded field keeps its stored expression and matches nothing. Re-add it on Return workflow status with values REQUESTED,OPEN.
  • Of v1.5.0’s 54 records, fifty-one are additions. Three restate rows that already exist: the stored OMS and SHOPIFY names become “HotWax” and “Shopify” wherever a system is named, and HotWax transfer orders group under HotWax in the source picker. Renaming affects future runs only — a run’s file labels are recorded when it executes, so past runs keep the names they were given.
  • No schema migration is required; new tables and fields are created on startup.

Rollback

  • Schema and seed additions are additive and the restatements only correct display names, a picker grouping and one connector’s field list, so rolling the backend to v1.4.0 is safe and the loaded records do not need reverting — v1.4.0 ignores what it does not know.
  • Keep the app on v2.5.0 if the backend goes back to v1.4.0, since v2.6.x depends on methods v1.4.0 does not expose.
  • Rolling the backend to v1.5.0 while leaving shopify-darpan at v0.6.1 is safe — the extract carries one field nothing reads. The combination to avoid is backend v1.5.1 against shopify-darpan v0.6.0.
  • Setting darpan.reconciliation.automation.verifyMissingDiffs to false restores the unverified scheduled counts without a redeploy, and records a verification step saying why.
  • An integration reading googleChatWebhookUrl keeps working on v1.4.0, which returns both that field and the masked one; an integration that moved to webhookUrl or webhookConfigured will not, as those are new in the 1.5 line.
  • Roll all component pins back together.

v1.4.0

Cut together with app v2.5.0 and darpan-hotwax v0.7.0. Shopify (v0.5.0), NetSuite (v0.2.0), and database (v0.1.0) component pins are unchanged.

Operators

  • Production images pin DARPAN_REF=v1.4.0 with darpan-hotwax at v0.7.0 — move these together, since the transfer-order connector row this release adds names an extract service that exists only in the v0.7.0 component.
  • Deploy the backend before the app: app v2.5.0 reads run detail and the transfer-order source type that exist only in v1.4.0.
  • Transfer-order reconciliation covers extraction and comparison; there is no transfer-order-specific verification pass.
  • A status-defined extract is capped at 50,000 records and stops with a clear message naming the limit rather than returning a short result.
  • Exclusion filters still reach the HotWax OMS getters only.

API

  • No methods are added or removed — the published contract stays at 90 methods and the contract version stays at 2.
  • Run status gains a full-detail error field, so integrations need no change to keep working.

Upgrade

  • Existing environments load three seed records — the transfer-order source system, its connector registry row, and one window-mode value — via ./gradlew loadDarpanUpgradeData. All three are additions; nothing existing is changed, so the load does not alter how current reconciliations behave.
  • Until it runs, transfer orders do not appear as a source-system option.
  • This release adds no one-time service to run.
  • This upgrade file carries only what is new in v1.4.0. If an environment has not yet loaded the v1.3.0 upgrade data and run its one-time migrate#AutomationExcludeFilters service, do that first, or exclusion filters stay inert there. That service is safe to run again if its status is unknown.
  • No schema migration is required; four fields are added to existing tables on startup.

Rollback

  • Schema and seed additions are additive, so rolling the backend to v1.3.0 is safe and the loaded records do not need reverting — v1.3.0 code ignores them.
  • Keep the app on v2.4.0 if the backend goes back, since app v2.5.0 expects run detail and a source type a v1.3.0 backend does not return.
  • Roll all component pins back together.

v1.3.0

Cut together with app v2.4.0 and darpan-hotwax v0.6.0. Shopify (v0.5.0), NetSuite (v0.2.0), and database (v0.1.0) component pins are unchanged.

Operators

  • Production images pin DARPAN_REF=v1.3.0 with darpan-hotwax at v0.6.0 — move these together, since the connector registry row this release updates names a parameter the v0.6.0 orders getter reads.
  • Deploy the backend before the app: app v2.4.0 calls facade fields that exist only in v1.3.0.
  • Exclusion filters reach the HotWax OMS orders getter only; Shopify and NetSuite getters accept no filter parameter yet, and the missing-diff verify pass applies no exclusion rules by design.
  • An automation’s filters are frozen when it is created — editing a rule set’s filters later does not reach automations that already exist, so re-create an automation if its filters must follow a changed rule set.
  • Extract progress now reports a count on both file sides while a stage runs, instead of holding its starting value until the stage finished.

API

  • No methods are added or removed — the published contract stays at 90 methods and the contract version stays at 2.
  • Exclusion filters ride on existing rule-set and automation methods as additional fields, so integrations need no change to keep working.

Upgrade

  • Existing environments load one seed record — the OMS connector registry row gains its filter parameter name — via ./gradlew loadDarpanUpgradeData.
  • Until that load runs, exclusion filters are inert: the rules board saves exclusions that never reach the OMS query, and the exclusion popover shows nothing.
  • After the load, run the one-time internal service reconciliation.ReconciliationNotificationServices.migrate#AutomationExcludeFilters once server-side; it seeds exclusion rows for automations that existed before this release. It is safe to run more than once — a side is seeded only when it has no filter rows — and automations created after this release do not need it.
  • No schema migration is required; the two new entity groups are created on startup.

Rollback

  • Schema and seed additions are additive, so rolling the backend to v1.2.0 is safe and the loaded record does not need reverting — v1.2.0 code ignores it.
  • Keep the app on v2.3.0 if the backend goes back, since app v2.4.0 exposes exclusion controls a v1.2.0 backend cannot persist.
  • Roll all component pins back together.

v1.2.0

Cut together with app v2.3.0 and matching integration-component tags (darpan-hotwax v0.5.0, shopify-darpan v0.5.0).

Operators

  • Production images pin DARPAN_REF=v1.2.0 with darpan-hotwax/shopify-darpan at v0.5.0 — these move together, since this release’s connector registry references services introduced in the v0.5.0 components.
  • Deploy the backend before the app.
  • The MySQL driver moves to Connector/J 9.7.0, which is what supports a MySQL 8.4 server — do not upgrade the database server ahead of this release.
  • Scheduled automations resolve their tenant reliably and surface failures instead of ending quietly, so schedules that had stopped producing runs will start again.

API

  • This release removes the two tenant-wide notification-setting methods, replaced by the chat-space methods, and adds twenty-six methods. The published contract version moves from 1 to 2.
  • Integrations calling the removed methods must move to the chat-space methods; backend and app pins must move together.

Upgrade

  • Existing environments load twelve seed records (platform-admin API security, chat-space and run-subscription entity security, a cancelled-run status, and two connector-registry rows) via ./gradlew loadDarpanUpgradeData.
  • After that load, run the one-time internal service reconciliation.ReconciliationNotificationServices.migrate#TenantNotificationSettings once server-side — it copies each tenant’s existing webhook into a chat space named “Default space” and links that tenant’s automations to it. It is safe to run more than once; tenants that already have a chat space are skipped.
  • Until it runs, tenants keep their webhook but see an empty chat-space list.

Rollback

  • Schema and seed additions are additive, and the notification migration copies rather than moves, so the earlier webhook rows survive and v1.1.0 behavior still works if the backend is rolled back.
  • Keep the app on v2.2.0 if the backend goes back to v1.1.0 — app v2.3.0 depends on the chat-space methods, which do not exist there.
  • Roll all component pins back together.

v1.1.0

First minor release on the new baseline, cut together with app v2.2.0 and matching integration-component tags (darpan-hotwax v0.4.0, shopify-darpan v0.4.0).

Operators

  • Production images pin DARPAN_REF=v1.1.0 with darpan-hotwax/shopify-darpan at v0.4.0 — these move together, since v1.1.0’s connector registry references services introduced in the v0.4.0 components.
  • Deploy the backend before the app; app v2.2.0 reads the run-status service introduced in this release.
  • OMS extraction is substantially faster and lighter (streaming, compression, field projection).

Upgrade

  • Existing environments load six seed records (two source-type enums, composite-key entity security, two connector-registry rows) via ./gradlew loadDarpanUpgradeData; environments with the startup seed load enabled pick them up automatically.

Rollback

  • Schema additions are additive, so rolling the backend to v1.0.3 is structurally safe — but do not roll back once composite-key rule sets exist, and keep the app on v2.1.0 if the backend goes back.
  • Roll all component pins back together.

v1.0.3

First release on Darpan’s new independent repository baseline, and the version production images pin to and build from. Backend-only tag; the app is unaffected and versions independently. (Deploy v1.0.3 — the interim v1.0.0/v1.0.1/v1.0.2 tags were folded into it.)

Operators

  • Production images build directly from this tag with no overrides.
  • Integration components (HotWax OMS, Shopify, NetSuite) are pinned to matching tags.
  • First-time provisioning of new MySQL-backed environments is reliable end to end.
  • In-container data loads (types=darpan-seed-initial,darpan-seed) work from a plain exec shell.

Upgrade

  • No data-load action for existing environments.
  • An environment whose initial data load did not complete should run it once on this tag.
  • Fresh environments use the standard full data load.

Rollback

  • No earlier deployable tag exists on the new baseline; interim folded tags are superseded and are not deployment targets.
  • Retired pre-move tags must not be used as fallback targets.