GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge branch 'v2-dev' into chore/ga-version-bumps · contentstack/cli-plugins@f403c35

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .talismanrc
  • packages
    • contentstack-apps-cli
      • package.json
    • contentstack-audit
      • package.json
      • src
        • audit-base-command.ts
        • config
          • index.ts
        • messages
          • index.ts
        • modules
          • assets.ts
          • entries.ts
        • types
          • content-types.ts
      • test/unit
        • mock
          • am-contents-no-stack
            • environments
              • environments.json
            • locales
              • master-locale.json
            • spaces/space_one/assets
              • assets.json
              • chunk0-assets.json
          • am-contents
            • environments
              • environments.json
            • locales
              • master-locale.json
            • spaces
              • space_clean/assets
                • assets.json
                • chunk0-assets.json
              • space_cross_only/assets
                • assets.json
                • chunk0-assets.json
              • space_one/assets
                • assets.json
                • chunk0-assets.json
            • stack
              • stack.json
          • contents/assets
            • assets.json
            • chunk1-assets.json
        • modules
          • assets.test.ts
          • entries.test.ts
    • contentstack-branches
      • package.json
    • contentstack-bulk-operations
      • package.json
      • src
        • base-bulk-command.ts
        • commands/cm/stacks
          • bulk-assets.ts
        • interfaces
          • index.ts
        • messages
          • index.ts
        • services
          • asset-service.ts
          • bulk-operation-service.ts
        • utils
          • batch-queue-handler.ts
          • config-builder.ts
          • data-dir-asset-fetcher.ts
          • helpers.ts
          • index.ts
          • interactive.ts
          • item-fetcher.ts
      • test/unit/services
        • bulk-operation-service.test.ts
    • contentstack-cli-cm-regex-validate
      • package.json
    • contentstack-cli-tsgen
      • package.json
    • contentstack-content-type
      • README.md
      • package.json
      • skills
        • code-review
          • SKILL.md
        • contentstack-cli-content-type
          • SKILL.md
      • src/core/content-type
        • compare.ts
      • test/core/content-type
        • compare.test.ts
    • contentstack-export-to-csv
      • package.json
    • contentstack-export
      • messages
        • index.json
      • package.json
      • src
        • config
          • index.ts
        • export/modules
          • assets.ts
          • base-class.ts
        • types
          • default-config.ts
        • utils
          • export-config-handler.ts
      • test/unit/export/modules
        • assets.test.ts
        • base-class.test.ts
        • stack.test.ts
    • contentstack-external-migrate
      • package.json
    • contentstack-import-setup
      • package.json
    • contentstack-import
      • README.md
      • package.json
      • src
        • commands/cm/stacks
          • import.ts
        • import/modules
          • assets.ts
        • types
          • import-config.ts
        • utils
          • import-config-handler.ts
      • test/unit/import/modules
        • assets.test.ts
    • contentstack-migrate-rte
      • package.json
    • contentstack-migration
      • README.md
      • src/commands/cm/stacks
        • migration.ts
    • contentstack-query-export
      • package.json
    • contentstack-seed
      • README.md
    • contentstack-variants
      • package.json
  • pnpm-lock.yaml

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.talismanrc‎

Copy file name to clipboard
+38-20Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,42 @@
11
fileignoreconfig:
2+
- filename: packages/contentstack-audit/test/unit/mock/am-contents-no-stack/environments/environments.json
3+
checksum: fe82c708f5f4d0b05694a601855fb7950661048eef8d7f9f794713e3a665064e
4+
- filename: packages/contentstack-audit/test/unit/mock/am-contents/environments/environments.json
5+
checksum: ffaaee9269a6e833cd3dbe337ddc5c060cce948519873c7a2777754519a31b52
26
- filename: pnpm-lock.yaml
3-
checksum: d999b6eddff71bc2c7e9449f0e93de6db38f9121f84fe74f43295a41644fb9d3
4-
- filename: packages/contentstack-export/src/utils/export-config-handler.ts
5-
checksum: 3ff8e8ea60f92311f8224bce457f7aaab026194de61e13eebdc6ca5a39f66bc9
6-
- filename: packages/contentstack-asset-management/src/utils/export-helpers.ts
7-
checksum: 726d1632110ebc203ce70dc1cbe7d4b3011f56349ed371b6645d0375e7818cad
8-
- filename: packages/contentstack-asset-management/src/utils/cs-assets-api-adapter.ts
9-
checksum: bc4a53f96be6a10786e00133245c7bdc43c965c8a98b753e3879e1110cf9c601
10-
- filename: packages/contentstack-asset-management/test/unit/utils/cs-assets-api-adapter.test.ts
11-
checksum: 63c6bff4d51842d8fa3cce88545259d0a2c3cfe71df95d303d993f692cee883b
7+
checksum: 649aae748e3ae8c157439dc6c7c9ea402cc19b4dab7ca64b7e4d839d1375df53
8+
- filename: packages/contentstack-audit/src/types/content-types.ts
9+
checksum: d16a65415c3184f15a807d58e5858310aeb5633794fc9075e36f89c94da636c3
10+
- filename: packages/contentstack-audit/src/audit-base-command.ts
11+
checksum: b706ea114a3cb5e4c0e7e163f32ceffa3356a6b0766bf5b8fe387c3c72f44c36
12+
- filename: packages/contentstack-audit/test/unit/mock/am-contents-no-stack/spaces/space_one/assets/chunk0-assets.json
13+
checksum: a276dc984efd49c097b4c38a02a17cfd1d28d704bd403d65af2b7673b8e9dbe9
14+
- filename: packages/contentstack-audit/src/modules/entries.ts
15+
checksum: 13072df0872f8c098d23f49b02f9e8f3e492ab2f483d67a5ea5e423ab406ad94
16+
- filename: packages/contentstack-audit/src/modules/assets.ts
17+
checksum: 9cdc568453a3926d866de4d3d56e6fbc4629eafcaca1c51536c11d937a0bf126
18+
- filename: packages/contentstack-audit/test/unit/modules/assets.test.ts
19+
checksum: 203bb83afa84a696b84066dc6959712289e9fc4135c8cba641f9ff634f32b3db
20+
- filename: packages/contentstack-audit/test/unit/modules/entries.test.ts
21+
checksum: 31d9767d87e4e9db54f641e8cb9d3360f591acdaa8b089a83eaa4aacdf0c3a35
22+
- filename: packages/contentstack-audit/test/unit/mock/am-contents/spaces/space_clean/assets/chunk0-assets.json
23+
checksum: f02886c04ea1097ebc5965fa9a63a878adb9437d56a5b1797be1967fae35f9e4
24+
- filename: packages/contentstack-import/src/import/modules/assets.ts
25+
checksum: d213265909a1b163ce733b9e2534e3a74304a2589c2d85e059f10fa0acfdee11
26+
- filename: packages/contentstack-import/src/utils/import-config-handler.ts
27+
checksum: 5b2050b283ea3d990e8ad3207b054c6932b76d2bd82a9f659b287ef11dec9f83
28+
- filename: packages/contentstack-audit/test/unit/mock/am-contents/spaces/space_cross_only/assets/chunk0-assets.json
29+
checksum: 27d5398f5d81bd3af53da9a5d10475a36c08e8fd8ad29df24e8f267494419a20
30+
- filename: packages/contentstack-audit/test/unit/mock/am-contents/spaces/space_one/assets/chunk0-assets.json
31+
checksum: 9fc8b266ef58ecce8d3c4182632d1f7d088dfbce81b3fcea46b087cde3129b91
32+
- filename: packages/contentstack-audit/test/unit/mock/am-contents/stack/stack.json
33+
checksum: c4ac3ff80eb38b1c58eb0db21a232bd84f856d4647093542296199036945083c
34+
- filename: packages/contentstack-bulk-operations/src/commands/cm/stacks/bulk-assets.ts
35+
checksum: 60f33657cc6e2664c17397a2f6b4b54a3f7bf71618931d63cd2811822bd4837e
36+
- filename: packages/contentstack-bulk-operations/src/utils/data-dir-asset-fetcher.ts
37+
checksum: ddcf4601ac47be300eba0eb901e4d45d748c2c4eab676c56677cb9a802fe3db0
1238
- filename: packages/contentstack-migration/src/commands/cm/stacks/migration.ts
13-
checksum: 529431473623cf6bbefb35bc898be2a60dcb453e0c9273ecb97923de658769b3
14-
- filename: packages/contentstack-seed/src/commands/cm/stacks/seed.ts
15-
checksum: 9a3fd45a57c6ebf63d6c154657f2ebf799befbbacb9a255944c2d89ae89b22ed
16-
- filename: packages/contentstack-seed/test/commands/cm/stacks/seed.test.ts
17-
checksum: b54f572a614e5d80f7fa27a51e679147cb537fd76ac922eed981d1156a261e50
39+
checksum: a64a4d396eddd936a63b799eff58c5c6660b5dcaa3a310fd8b09a027932f1789
1840
- filename: packages/contentstack-migration/README.md
19-
checksum: 042b8f6b0c81838d7cf8296f3a3379b41ec9a6ab77f9f53190b8155dacf1f34a
20-
- filename: packages/contentstack-seed/README.md
21-
checksum: e6388605a4ef3daa116692e4425dcbf6fc35dc7763f8f38d8b9657dbd80ded62
22-
- filename: packages/contentstack-content-type/README.md
23-
checksum: 76f77f9228a5389576fd91f3a4d0f85cf8d9642fe43c597eb39e6181101654b3
24-
version: '1.0'
41+
checksum: e96006c1a948f766c88ae972b29582fa58eaf8184606bf011eebddc5a06cd7b6
42+
version: ""
Collapse file

‎packages/contentstack-apps-cli/package.json‎

Copy file name to clipboardExpand all lines: packages/contentstack-apps-cli/package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"@contentstack/cli-command": "~2.0.0",
2626
"@contentstack/cli-launch": "^1.11.1",
2727
"@contentstack/cli-utilities": "~2.0.0",
28-
"adm-zip": "^0.5.18",
2928
"chalk": "^5.6.2",
29+
"adm-zip": "^0.6.0",
3030
"lodash": "^4.18.1",
3131
"shelljs": "^0.10.0",
3232
"tmp": "^0.2.7",
@@ -110,4 +110,4 @@
110110
"app:deploy": "APDP"
111111
}
112112
}
113-
}
113+
}
Collapse file

‎packages/contentstack-audit/package.json‎

Copy file name to clipboardExpand all lines: packages/contentstack-audit/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@
8080
"keywords": [
8181
"oclif"
8282
]
83-
}
83+
}
Collapse file

‎packages/contentstack-audit/src/audit-base-command.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-audit/src/audit-base-command.ts
+44-16Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
clearProgressModuleSetting,
1616
readContentTypeSchemas,
1717
readGlobalFieldSchemas,
18-
generateUid
18+
generateUid,
1919
} from '@contentstack/cli-utilities';
2020
import { createWriteStream, existsSync, mkdirSync, writeFileSync, rmSync } from 'fs';
2121
import config from './config';
@@ -56,7 +56,9 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
5656
minWidth: 7,
5757
header: 'Fix Status',
5858
get: (row: any) => {
59-
return row.fixStatus === 'Fixed' ? getChalk().greenBright(row.fixStatus) : getChalk().redBright(row.fixStatus);
59+
return row.fixStatus === 'Fixed'
60+
? getChalk().greenBright(row.fixStatus)
61+
: getChalk().redBright(row.fixStatus);
6062
},
6163
},
6264
};
@@ -104,6 +106,8 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
104106
missingFieldRules,
105107
missingMultipleFields,
106108
missingRefsInComposableStudio,
109+
missingScanStatusAssets,
110+
missingAssetRefsInEntries,
107111
} = await this.scanAndFix();
108112

109113
if (this.flags['show-console-output']) {
@@ -135,6 +139,12 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
135139
{ module: 'Entries Changed Multiple Fields', missingRefs: missingMultipleFields },
136140
]);
137141
this.showOutputOnScreenWorkflowsAndExtension([{ module: 'Studio', missingRefs: missingRefsInComposableStudio }]);
142+
this.showOutputOnScreenWorkflowsAndExtension([
143+
{ module: 'Assets Scan Status', missingRefs: missingScanStatusAssets },
144+
]);
145+
this.showOutputOnScreenWorkflowsAndExtension([
146+
{ module: 'Entries Asset Field', missingRefs: missingAssetRefsInEntries },
147+
]);
138148
}
139149
this.showOutputOnScreenWorkflowsAndExtension([{ module: 'Summary', missingRefs: this.summaryDataToPrint }]);
140150

@@ -151,7 +161,9 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
151161
!isEmpty(missingEnvLocalesInEntries) ||
152162
!isEmpty(missingFieldRules) ||
153163
!isEmpty(missingMultipleFields) ||
154-
!isEmpty(missingRefsInComposableStudio)
164+
!isEmpty(missingRefsInComposableStudio) ||
165+
!isEmpty(missingScanStatusAssets) ||
166+
!isEmpty(missingAssetRefsInEntries)
155167
) {
156168
if (this.currentCommand === 'cm:stacks:audit') {
157169
log.warn(this.$t(auditMsg.FINAL_REPORT_PATH, { path: this.sharedConfig.reportPath }), this.auditContext);
@@ -192,7 +204,9 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
192204
!isEmpty(missingEnvLocalesInAssets) ||
193205
!isEmpty(missingEnvLocalesInEntries) ||
194206
!isEmpty(missingFieldRules) ||
195-
!isEmpty(missingRefsInComposableStudio)
207+
!isEmpty(missingRefsInComposableStudio) ||
208+
!isEmpty(missingScanStatusAssets) ||
209+
!isEmpty(missingAssetRefsInEntries)
196210
);
197211
}
198212

@@ -223,6 +237,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
223237
missingTitleFields?: Record<string, any>;
224238
missingEnvLocale?: Record<string, any>;
225239
missingMultipleFields?: Record<string, any>;
240+
missingAssetRefs?: Record<string, any>;
226241
} = {},
227242
missingMandatoryFields,
228243
missingTitleFields,
@@ -231,6 +246,8 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
231246
missingEnvLocalesInEntries,
232247
missingFieldRules,
233248
missingMultipleFields,
249+
missingAssetRefsInEntries,
250+
missingScanStatusAssets,
234251
missingRefsInComposableStudio;
235252

236253
const constructorParam: ModuleConstructorParam & CtConstructorParam = {
@@ -270,17 +287,21 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
270287
constructorParam['moduleName'] = module;
271288

272289
switch (module) {
273-
case 'assets':
290+
case 'assets': {
274291
log.info('Executing assets audit', this.auditContext);
275-
const assetsTotalCount = dataModuleWise['assets']?.Total || 0;
276-
missingEnvLocalesInAssets = await new Assets(cloneDeep(constructorParam)).run(false, assetsTotalCount);
292+
const assetsModule = new Assets(cloneDeep(constructorParam));
293+
missingEnvLocalesInAssets = await assetsModule.run();
294+
missingScanStatusAssets = assetsModule.missingScanStatusAssets ?? {};
277295
await this.prepareReport(module, missingEnvLocalesInAssets);
296+
await this.prepareReport('asset-scan-status', missingScanStatusAssets);
278297
this.getAffectedData('assets', dataModuleWise['assets'], missingEnvLocalesInAssets);
298+
this.getAffectedData('asset-scan-status', dataModuleWise['assets'], missingScanStatusAssets);
279299
log.success(
280-
`Assets audit completed. Found ${Object.keys(missingEnvLocalesInAssets || {}).length} issues`,
300+
`Assets audit completed. Found ${Object.keys(missingEnvLocalesInAssets || {}).length} issues, ${Object.keys(missingScanStatusAssets).length} non-clean scan status assets`,
281301
this.auditContext,
282302
);
283303
break;
304+
}
284305
case 'content-types':
285306
log.info('Executing content-types audit', this.auditContext);
286307
const contentTypesTotalCount = dataModuleWise['content-types']?.Total || 0;
@@ -313,6 +334,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
313334
missingTitleFields = missingEntry.missingTitleFields ?? {};
314335
missingEnvLocalesInEntries = missingEntry.missingEnvLocale ?? {};
315336
missingMultipleFields = missingEntry.missingMultipleFields ?? {};
337+
missingAssetRefsInEntries = missingEntry.missingAssetRefs ?? {};
316338
await this.prepareReport(module, missingEntryRefs);
317339

318340
await this.prepareReport(`Entries_Select_field`, missingSelectFeild);
@@ -324,6 +346,8 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
324346
await this.prepareReport('Entry_Missing_Locale_and_Env_in_Publish_Details', missingEnvLocalesInEntries);
325347

326348
await this.prepareReport('Entry_Multiple_Fields', missingMultipleFields);
349+
350+
await this.prepareReport('Entries_Asset_field', missingAssetRefsInEntries);
327351
this.getAffectedData('entries', dataModuleWise['entries'], missingEntry);
328352
log.success(
329353
`Entries audit completed. Found ${Object.keys(missingEntryRefs || {}).length} reference issues`,
@@ -382,14 +406,14 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
382406
// schema from moduleName, so invoke it once per schema (overriding moduleName per
383407
// instance) and merge the results. Merged object is keyed by schema uid; a content type
384408
// and global field sharing a uid would collide, which is not expected in practice.
385-
const ctFieldRules = await new FieldRule(
386-
cloneDeep({ ...constructorParam, moduleName: 'content-types' }),
387-
).run(data.ctSchema?.length || 0);
409+
const ctFieldRules = await new FieldRule(cloneDeep({ ...constructorParam, moduleName: 'content-types' })).run(
410+
data.ctSchema?.length || 0,
411+
);
388412
let gfFieldRules: Record<string, any> = {};
389413
if (data.gfSchema?.length) {
390-
gfFieldRules = await new FieldRule(
391-
cloneDeep({ ...constructorParam, moduleName: 'global-fields' }),
392-
).run(data.gfSchema.length);
414+
gfFieldRules = await new FieldRule(cloneDeep({ ...constructorParam, moduleName: 'global-fields' })).run(
415+
data.gfSchema.length,
416+
);
393417
}
394418
missingFieldRules = { ...ctFieldRules, ...gfFieldRules };
395419

@@ -455,6 +479,8 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
455479
missingFieldRules,
456480
missingMultipleFields,
457481
missingRefsInComposableStudio,
482+
missingScanStatusAssets,
483+
missingAssetRefsInEntries,
458484
};
459485
}
460486

@@ -638,7 +664,8 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
638664
| keyof typeof config.moduleConfig
639665
| keyof typeof config.ReportTitleForEntries
640666
| 'field-rules'
641-
| 'Summary',
667+
| 'Summary'
668+
| 'asset-scan-status',
642669
listOfMissingRefs: Record<string, any>,
643670
): Promise<void> {
644671
log.debug(`Preparing report for module: ${moduleName}`, this.auditContext);
@@ -682,7 +709,8 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
682709
| keyof typeof config.moduleConfig
683710
| keyof typeof config.ReportTitleForEntries
684711
| 'field-rules'
685-
| 'Summary',
712+
| 'Summary'
713+
| 'asset-scan-status',
686714
listOfMissingRefs: Record<string, any>,
687715
): Promise<void> {
688716
if (Object.keys(config.moduleConfig).includes(moduleName) || config.field_level_modules.includes(moduleName)) {
Collapse file

‎packages/contentstack-audit/src/config/index.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-audit/src/config/index.ts
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ const config = {
5555
name: 'assets',
5656
dirName: 'assets',
5757
fileName: 'assets.json',
58+
// Asset scan statuses that must block import/reference; any other value (including
59+
// 'not_scanned', 'clean', or the field being absent) is treated as safe.
60+
blockingScanStatuses: ['pending', 'quarantined'],
5861
},
5962
environments: {
6063
name: 'environments',
@@ -111,6 +114,8 @@ const config = {
111114
'publish_environment',
112115
'asset_uid',
113116
'space_id',
117+
'scan_status',
118+
'mandatory',
114119
'selectedValue',
115120
'ct_uid',
116121
'action',
@@ -130,6 +135,7 @@ const config = {
130135
Entry_Missing_Locale_and_Env: 'Entry_Missing_Locale_and_Env',
131136
Entry_Missing_Locale_and_Env_in_Publish_Details: 'Entry_Missing_Locale_and_Env_in_Publish_Details',
132137
Entry_Multiple_Fields: 'Entry_Multiple_Fields',
138+
Entries_Asset_field: 'Entries_Asset_field',
133139
},
134140
field_level_modules: [
135141
'Entries_Title_field',
@@ -138,6 +144,8 @@ const config = {
138144
'Entry_Missing_Locale_and_Env_in_Publish_Details',
139145
'field-rules',
140146
'Entry_Multiple_Fields',
147+
'Entries_Asset_field',
148+
'asset-scan-status',
141149
'Summary',
142150
],
143151
fixSelectField: false,
Collapse file

‎packages/contentstack-audit/src/messages/index.ts‎

Copy file name to clipboardExpand all lines: packages/contentstack-audit/src/messages/index.ts
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ const auditMsg = {
4040
SCAN_CR_SUCCESS_MSG: 'Successfully completed the scanning of custom role with UID {uid} and name {name}.',
4141
SCAN_CS_SUCCESS_MSG: 'Successfully completed the scanning of studio project with UID {uid} and name {name}.',
4242
SCAN_ASSET_SUCCESS_MSG: `Successfully completed the scanning of Asset with UID '{uid}'.`,
43-
SCAN_ASSET_WARN_MSG: `The locale '{locale}' or environment '{environment}' are not present for asset with uid '{uid}'`,
43+
SCAN_ASSET_ENV_MISSING: `Environment '{environment}' is not present for asset '{uid}' (locale '{locale}')`,
44+
SCAN_ASSET_LOCALE_MISSING: `Locale '{locale}' is not present for asset '{uid}' (environment '{environment}')`,
45+
SCAN_ASSET_ENV_AND_LOCALE_MISSING: `Neither locale '{locale}' nor environment '{environment}' is present for asset '{uid}'`,
46+
ASSET_PD_SOURCE_STACK_UNKNOWN: `Source stack API key not found at '{path}'; asset publish details tagged with an api_key were skipped and left unchanged.`,
4447
ENTRY_PUBLISH_DETAILS: `Removing the publish details for entry '{uid}' of ct '{ctuid}' in locale '{locale}' as locale '{publocale}' or environment '{environment}' does not exist`,
4548
CT_REFERENCE_FIELD: `The mentioned Reference field is not Array field reference is '{reference_to}' having display name '{display_name}''`,
4649
ASSET_NOT_EXIST: `The publish_details either does not exist or is not an array for asset uid '{uid}'`,
@@ -50,6 +53,8 @@ const auditMsg = {
5053
FIELD_RULE_TARGET_ABSENT: `The target field '{target_field}' is not present in the schema of the content-type {ctUid}`,
5154
FIELD_RULE_CONDITION_SCAN_MESSAGE: `Completed Scanning of Field Rule '{num}' condition of Content-type '{ctUid}'`,
5255
FIELD_RULE_TARGET_SCAN_MESSAGE: `Completed Scanning of Field Rule '{num}' target of Content-type '{ctUid}'`,
56+
SCAN_ASSET_QUARANTINE_MSG: `Asset with UID '{uid}' has a non-clean scan status ('{status}') and will be excluded from import.`,
57+
ENTRY_ASSET_REF_WARN_MSG: `Entry '{uid}' field '{field}' references asset '{asset_uid}' with scan status '{status}'; it will be removed on fix.`,
5358
};
5459

5560
const auditFixMsg = {
@@ -63,7 +68,9 @@ const auditFixMsg = {
6368
ENTRY_MANDATORY_FIELD_FIX: `Removing the publish details from the entry with UID '{uid}' in Locale '{locale}'...`,
6469
ENTRY_SELECT_FIELD_FIX: `Adding the value '{value}' in the select field of entry UID '{uid}'...`,
6570
ASSET_FIX: `Fixed publish details for Asset with UID '{uid}'`,
66-
FIELD_RULE_FIX_MESSAGE: `Fixed Field Rule '{num}' target of Content-type '{ctUid}'`,
71+
FIELD_RULE_FIX_MESSAGE: `Fixed Field Rule '{num}' target of Content-type '{ctUid}`,
72+
ASSET_SCAN_STATUS_FIX: `Removed asset with UID '{uid}' (scan status: '{status}') from assets.json.`,
73+
ENTRY_ASSET_REF_FIX: `Removed reference to asset '{asset_uid}' from entry '{uid}' field '{field}'.`,
6774
};
6875

6976
const messages: typeof errors &

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.