Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/reports/searchEEEU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class SearchEEEU {
private static _elSubNav: HTMLElement = null;
private static _items: ISearchItem[] = null;
private static _loadOneDrive: boolean = null;
private static _maxItemCount: number = 0;
private static _oversharedGroups: string[] = null;
private static _stopFl: boolean = false;

Expand Down Expand Up @@ -156,7 +157,7 @@ export class SearchEEEU {
site.Lists().query({
Filter: "Hidden eq false",
Expand: ["RootFolder"],
Select: ["Id", "Title", "BaseTemplate", "HasUniqueRoleAssignments", "RootFolder/ServerRelativeUrl"]
Select: ["Id", "Title", "BaseTemplate", "HasUniqueRoleAssignments", "ItemCount", "RootFolder/ServerRelativeUrl"]
}).execute(resp => {
let ctrList = 0;
let siteText = this._elSubNav.children[0].innerHTML;
Expand All @@ -167,6 +168,9 @@ export class SearchEEEU {
// See if we are stopping this process
if (this._stopFl) { return; }

// See if we are skipping large lists
if (this._maxItemCount > 0 && list.ItemCount > this._maxItemCount) { return; }

// Show a dialog
this._elSubNav.children[0].innerHTML = `${siteText} - [Analyzing List ${++ctrList} of ${lists.length}]: ${list.Title}`;

Expand Down Expand Up @@ -700,6 +704,7 @@ export class SearchEEEU {
// Runs the report
static run(el: HTMLElement, auditOnly: boolean, values: { [key: string]: any }, onClose: () => void) {
this._loadOneDrive = values["LoadOneDrive"] == "true";
this._maxItemCount = parseInt(values["SkipLargeLists"]) || 0;
this._stopFl = false;

// Show a loading dialog
Expand Down
1 change: 1 addition & 0 deletions src/tabs/reports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export class ReportsTab {
case ReportTypes.DLP:
case ReportTypes.SearchAgents:
case ReportTypes.SearchDocs:
case ReportTypes.SearchEEEU:
case ReportTypes.SensitivityLabels:
case ReportTypes.UniquePermissions:
// Add a control to skip large lists/libraries
Expand Down
Loading