feat: add pagination and test cases for AM package#209
feat: add pagination and test cases for AM package#209naman-contentstack wants to merge 9 commits into
Conversation
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
Summary
listSpaces,getWorkspaceAssets, andgetWorkspaceFoldersissued asingle API request, silently truncating results for orgs with large numbers of spaces
or assets.
fetchAllPageshelper inCSAssetsAdapterthat fetches the first pageto read the total
count, computes remaining skip offsets, and issues those requestsin controlled-concurrency batches — returning the full merged result set.
pageSize(default100) andfetchConcurrency(default
5) — threaded throughExportContext,ExportSpaces,ExportAssets,ImportSpaces, andImportSetupAssetMappers.Changes
CSAssetsAdapter: added privatefetchAllPages; updatedlistSpaces,getWorkspaceAssets,getWorkspaceFoldersto use itconstants: addedFALLBACK_AM_API_PAGE_SIZEandFALLBACK_AM_API_FETCH_CONCURRENCYExportContext/AssetManagementExportOptions: addedpageSize,fetchConcurrencyCSAssetsExportAdapter: addedapiPageSizeandapiFetchConcurrencygettersExportSpaces,ExportAssets,ImportSpaces,ImportSetupAssetMappers: wirednew params through to all list calls