Skip to content

Fix digital object load and summary messages (#2345)#2356

Open
ShrishtyJainTech wants to merge 2 commits into
qa/2.xfrom
dev/issue-2345-digitalobject-importCount
Open

Fix digital object load and summary messages (#2345)#2356
ShrishtyJainTech wants to merge 2 commits into
qa/2.xfrom
dev/issue-2345-digitalobject-importCount

Conversation

@ShrishtyJainTech
Copy link
Copy Markdown

No description provided.

@ShrishtyJainTech ShrishtyJainTech requested a review from anvit May 15, 2026 19:29
@ShrishtyJainTech ShrishtyJainTech self-assigned this May 15, 2026
@@ -374,7 +374,7 @@ protected function addDigitalObject($objectId, $path, $options = [])

$remainingImportCount = $this->totalObjCount - $this->skippedCount - $importedCount;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove $importedCount here since it's always going to be zero and is unused.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated as suggested. Please take another look when convenient.

}

$this->logSection('digital-object', 'Successfully Loaded '.self::$count.' digital objects.');
$this->logSection('digital-object', 'Successfully Loaded '.self::$count.' digital objects and skipped '.$this->skippedCount.'.');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed the last bit of the discussion in the morning, but I thought we'd talked about displaying the total count as well? So something along the lines of Successfully loaded 10 out of 15 digital objects, and skipped 5? Feel free to ignore this if you and Jay decided that we don't need to display that.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem: log of digitalobject:load does not count imported records

2 participants