Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Don't serialize AssessmentResults that implement JsonFileArchivableResult #243

Merged
merged 3 commits into from
Dec 1, 2023
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AssessmentArchiver(
recursiveAdd(assessmentResult)

// Add assessment result file to archive
if (assessmentResult is AssessmentResult && assessmentResultFilename != null) {
if (assessmentResult is AssessmentResult && assessmentResult !is JsonFileArchivableResult && assessmentResultFilename != null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

So... why not just not include the assessmentResultFilename?

It seems like this is obfuscating the protocol with more special casing than it should.

Logger.d("Writing result for assessment ${assessmentResult.identifier}")
archiveBuilder.addDataFile(
JsonArchiveFile(
Expand Down
Loading