From 18c8b602e229206d1bdf6af57121e1363d947cdd Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Wed, 29 Jul 2026 20:16:14 -0400 Subject: [PATCH 01/11] Added callback query event to set stop flag. --- package.json | 2 +- src/reports/dlp.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 57827ad..e6ded1f 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "dattatable": "^2.11.75", "exceljs": "^4.4.0", "fast-xml-parser": "^5.9.3", - "gd-sprest-bs": "^10.15.87", + "gd-sprest-bs": "^10.15.88", "jquery": "^3.7.1", "jszip": "^3.10.1", "mammoth": "^1.12.0", diff --git a/src/reports/dlp.ts b/src/reports/dlp.ts index d7fd69c..993c34b 100644 --- a/src/reports/dlp.ts +++ b/src/reports/dlp.ts @@ -92,7 +92,8 @@ export class DLP { let completed = 0; // Set the list - let web = this._loadOneDrive ? Web.getOneDrive() : Web(webUrl, { requestDigest: DataSource.SiteContext.FormDigestValue }); + let web = this._loadOneDrive ? Web.getOneDrive({ callbackQuery: () => { if (this._stopFl) { list.stop(); } } }) + : Web(webUrl, { requestDigest: DataSource.SiteContext.FormDigestValue, callbackQuery: () => { if (this._stopFl) { list.stop(); } } }); let list = web.Lists(lib.Title); // Get the item ids for this library From 4230e7a08d0589167cb505f5b7a4eeabe9006187 Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Wed, 29 Jul 2026 20:27:54 -0400 Subject: [PATCH 02/11] Updated the libs. --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e6ded1f..42997e3 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "license": "ISC", "dependencies": { "adm-zip": "^0.5.18", - "datatables.net": "^2.3.2", - "datatables.net-bs5": "^2.3.2", - "dattatable": "^2.11.75", + "datatables.net": "^3.0.0", + "datatables.net-bs5": "^3.0.0", + "dattatable": "^2.11.76", "exceljs": "^4.4.0", "fast-xml-parser": "^5.9.3", "gd-sprest-bs": "^10.15.88", From 66fc5e40c856bf11b4314e174ccf3167a169be88 Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Wed, 29 Jul 2026 20:29:08 -0400 Subject: [PATCH 03/11] Removed jquery library. --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 42997e3..dba58a2 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "exceljs": "^4.4.0", "fast-xml-parser": "^5.9.3", "gd-sprest-bs": "^10.15.88", - "jquery": "^3.7.1", "jszip": "^3.10.1", "mammoth": "^1.12.0", "moment": "^2.30.1", From 259c3132f0f8290c5c45c9ab5e43ffa67fb447a6 Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Wed, 29 Jul 2026 21:01:40 -0400 Subject: [PATCH 04/11] debug --- spfx/config/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spfx/config/config.json b/spfx/config/config.json index a7d7af3..8934d92 100644 --- a/spfx/config/config.json +++ b/spfx/config/config.json @@ -14,7 +14,7 @@ "externals": { "main-lib": { "globalName": "main-lib", - "path": "../dist/site-admin.min.js" + "path": "../dist/site-admin.js" } }, "localizedResources": { From 9be9c17ecdacb2276034194b6c62db22d9543306 Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Wed, 29 Jul 2026 21:02:14 -0400 Subject: [PATCH 05/11] Remove debug. --- spfx/config/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spfx/config/config.json b/spfx/config/config.json index 8934d92..a7d7af3 100644 --- a/spfx/config/config.json +++ b/spfx/config/config.json @@ -14,7 +14,7 @@ "externals": { "main-lib": { "globalName": "main-lib", - "path": "../dist/site-admin.js" + "path": "../dist/site-admin.min.js" } }, "localizedResources": { From b72dabddd9d89e2ca6966d1fd3347f4a867174cb Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Wed, 29 Jul 2026 21:03:43 -0400 Subject: [PATCH 06/11] debug --- spfx/config/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spfx/config/config.json b/spfx/config/config.json index a7d7af3..8934d92 100644 --- a/spfx/config/config.json +++ b/spfx/config/config.json @@ -14,7 +14,7 @@ "externals": { "main-lib": { "globalName": "main-lib", - "path": "../dist/site-admin.min.js" + "path": "../dist/site-admin.js" } }, "localizedResources": { From 3276670b97f84d7790875ef1615d93cc857912fc Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Thu, 30 Jul 2026 10:17:43 -0400 Subject: [PATCH 07/11] Updated the lib. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dba58a2..7a203b8 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "dattatable": "^2.11.76", "exceljs": "^4.4.0", "fast-xml-parser": "^5.9.3", - "gd-sprest-bs": "^10.15.88", + "gd-sprest-bs": "^10.15.89", "jszip": "^3.10.1", "mammoth": "^1.12.0", "moment": "^2.30.1", From 1c07d5c87475c08f61787517810ec9ba5d8e5047 Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Thu, 30 Jul 2026 12:45:51 -0400 Subject: [PATCH 08/11] Updated search doc to include logic to stop the batch calls. --- src/reports/dlp.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reports/dlp.ts b/src/reports/dlp.ts index 993c34b..6d9d8ca 100644 --- a/src/reports/dlp.ts +++ b/src/reports/dlp.ts @@ -662,7 +662,8 @@ export class DLP { // Create the list for the batch requests let batchRequests = 0; let completed = 0; - let web = this._loadOneDrive ? Web.getOneDrive() : Web(webUrl, { requestDigest: DataSource.SiteContext.FormDigestValue }); + let web = this._loadOneDrive ? Web.getOneDrive({ callbackQuery: () => { if (this._stopFl) { list.stop(); } } }) + : Web(webUrl, { requestDigest: DataSource.SiteContext.FormDigestValue, callbackQuery: () => { if (this._stopFl) { list.stop(); } } }); let list = web.Lists().getById(libId); // Get the item ids for this library From ba20b20ca027bb24cc342f15f3316a55ce37b998 Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Thu, 30 Jul 2026 12:58:59 -0400 Subject: [PATCH 09/11] Updated search eeeu to have callback for stopping the batch if cancelled. --- src/reports/searchEEEU.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reports/searchEEEU.ts b/src/reports/searchEEEU.ts index 2223bbe..5e8b01b 100644 --- a/src/reports/searchEEEU.ts +++ b/src/reports/searchEEEU.ts @@ -63,7 +63,8 @@ export class SearchEEEU { // Create a batch job let completed = 0; let ctrBatchJobs = 0; - let batchWeb = this._loadOneDrive ? Web.getOneDrive() : Web(web.Url, { requestDigest: DataSource.SiteContext.FormDigestValue }); + let batchWeb = this._loadOneDrive ? Web.getOneDrive({ callbackQuery: () => { if (this._stopFl) { batch.stop(); } } }) + : Web(web.Url, { requestDigest: DataSource.SiteContext.FormDigestValue, callbackQuery: () => { if (this._stopFl) { batch.stop(); } } }); let batch = batchWeb.Lists().getById(list.Id); // Update the dialog From 9536f199f62c890c395310fa5155b1b0926c644b Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Thu, 30 Jul 2026 13:23:19 -0400 Subject: [PATCH 10/11] Updated the libs. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7a203b8..0af7a12 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "dattatable": "^2.11.76", "exceljs": "^4.4.0", "fast-xml-parser": "^5.9.3", - "gd-sprest-bs": "^10.15.89", + "gd-sprest-bs": "^10.15.90", "jszip": "^3.10.1", "mammoth": "^1.12.0", "moment": "^2.30.1", From 474e1bdd38e1f9c313c5bab1e339f92d42b0eff5 Mon Sep 17 00:00:00 2001 From: Gunjan Datta Date: Thu, 30 Jul 2026 13:59:29 -0400 Subject: [PATCH 11/11] Remove debug. --- spfx/config/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spfx/config/config.json b/spfx/config/config.json index 8934d92..a7d7af3 100644 --- a/spfx/config/config.json +++ b/spfx/config/config.json @@ -14,7 +14,7 @@ "externals": { "main-lib": { "globalName": "main-lib", - "path": "../dist/site-admin.js" + "path": "../dist/site-admin.min.js" } }, "localizedResources": {