Skip to content

Commit 00ff23b

Browse files
committed
fix(vanta): declare the removed uploadMimeType subblock as dropped
check-block-registry fails a PR that deletes a subblock id without a migration entry, because a deployed workflow can still hold a value under that id. The serializer already discards an orphan silently, but the repo's contract is that the removal is declared rather than inferred. Uses the _removed_ form, scoped to upload_document_file: the value has no replacement field to move to.
1 parent 539e1ab commit 00ff23b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

apps/sim/lib/workflows/migrations/subblock-migrations.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,19 @@ export const SUBBLOCK_ID_MIGRATIONS: Record<string, readonly SubblockIdMigration
292292
* dropped outright.
293293
*/
294294
sap_concur: [{ from: 'forwardId', to: '_removed_forwardId' }],
295+
/**
296+
* `uploadMimeType` was an advanced MIME Type input on Upload Document File whose
297+
* value the upload path never read: the content type is resolved from storage and
298+
* that resolution is never empty, so the field's value lost the `||` chain every
299+
* time. Dropped rather than renamed — there is no field for the value to move to.
300+
*/
301+
vanta: [
302+
{
303+
from: 'uploadMimeType',
304+
to: '_removed_uploadMimeType',
305+
whenOperation: ['upload_document_file'],
306+
},
307+
],
295308
}
296309

297310
/** Reads the value out of a stored subblock entry, tolerating a bare value. */

0 commit comments

Comments
 (0)