Repository navigation
Now-SDK 4.8 silently drops and tombstones sys_ux_asset records #96
Unanswered
BenKhz
asked this question in
Help and Questions with SDK or Fluent
Replies: 2 comments 2 replies
|
Thanks for the report, we will investigate this |
2 replies
|
Huzzah! 🙌🏼 Are there docs for AIUX somewhere? The readme giving away mich. --Billy Matthews719.439.5484On Aug 14, 2026, at 9:34 AM, sn-rickbull ***@***.***> wrote:
***@***.***/aiux should be published now.
If you have ***@***.*** or newer you should see a new option pop in.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Question: How should
sys_ux_lib_assetrecords be handled when converting an installed app to SDK source?Context
We're evaluating the workflow of installing an existing (store) application on an instance, then converting it to SDK source and redeploying, and want to confirm it's lossless. The app's scope contains a number of
sys_ux_lib_assetrecords (a module-federation UI bundle — multiple.js/.cssassets under a shared library name).We observe that after
transform → build → deploy, the app's installed file count drops (in our case ~90sys_ux_lib_assetrecords disappear). We'd like to understand whether this is expected and what the intended handling is.Environment
@servicenow/sdk: 4.8.1Steps to reproduce
sys_ux_lib_assetrecords, where some records share the samename(common with module-federation builds that emit hashed + unhashed variants and leave copies across builds).now-sdk download <dir>— confirms all records download (e.g. all N XML files present under<dir>/update/).now-sdk transform(against the instance) — generatessrc/fluent/generated/.src/fluent/generated/keys.ts, thennow-sdk buildand inspect theauthor_elective_updateoutput.What we observe
keys.tscontains onesys_ux_lib_assetentry per uniquename, not per record. Records that share anamecollapse into one. Debug output shows the dedup at load time (Database contains N records for transformation, where N is the unique-name count plus related records).sys_ux_lib_asset— the surviving records exist only askeys.tsidentity stubs.transform, all thesys_ux_lib_assetentries inkeys.tsare markeddeleted: true. Onbuildthese becomeaction="DELETE"author-elective updates, anddeployremoves them from the instance. (An offlinetransform --from <dir>does not setdeleted: true, so this appears to come from the instance-reconciliation step.)Questions
sys_ux_lib_assetappears to be keyed bynameinkeys.ts, butnameis not unique on this table. Is this intended? Should it be keyed bysys_id? Records with duplicate names are silently dropped.sys_ux_lib_assetexpected to be representable as Fluent source? If not, what's the recommended way to carry these assets through an SDK conversion without losing them?deleted: trueon reconciliation: Why does an instancetransformmark existing, present-on-instance records asdeleted: truewhen they simply have no source representation? This turns "can't represent" into "delete on deploy," which is the actual data loss.Side note
now-sdk transform --from <dir>appears to delete the consumed XML files from the input directory after processing. Is that expected? It's surprising for a directory of hand-curated metadata.All reactions