feature: modify json export #5052
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant enhancements to the assessment export data model, particularly by expanding demographic and organizational information, improving the structure of standards and questions, and adding support for CIS-specific demographics. It also includes some backend adjustments to support these new data structures and fields.
Export Model Enhancements:
AssessmentJson
to include a newOrganizationInfoJson
class, encapsulating detailed organization, sector, and compliance information. Added new fields such asAssessorWorkflow
andFacilitatorName
, and moved or expanded several demographic properties.SalJson
), and restructured standards/question export to support both requirements and questions mode, including subcategory groupings (StandardQuestionSubCategoryJson
).MaturityQuestionJson
,RequirementJson
, andStandardQuestionJson
for clearer export of assessment responses. [1] [2] [3]ObservationJson
with new fields such asImportance
,Summary
,Impacts
,Vulnerabilities
, andAutoGeneratedBy
for richer reporting.ComponentQuestionJson
class for component-level question exports.CIS Demographics Support:
CisDemographicsJson
,CisServiceDemographicsJson
,CisOrganizationDemographicsJson
,CisServiceCompositionJson
) and anAssessmentExportPayload
container to facilitate export and serialization of all assessment data, including CIS extensions.ICisDemographicBusiness
in the DI container to support new CIS demographic features in the backend.Demographic Data Improvements:
CriticalServiceName
to both theDemographicExt
model and its business logic, enabling export of this key data point. [1] [2]These changes collectively enable richer, more organized, and extensible export of assessment and demographic data, supporting both standard and CIS-specific workflows.