Skip to content

Commit

Permalink
Merge pull request #3697 from cisagov/feature/CSET-2481
Browse files Browse the repository at this point in the history
Refactor "discovery" and "finding" usage to "observations" for consistency
  • Loading branch information
Marcus-Goectau authored Jan 11, 2024
2 parents 3d3c4e1 + f9fc579 commit 5f30608
Show file tree
Hide file tree
Showing 66 changed files with 831 additions and 947 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ private UploadAssessmentModel CopyForExport(int assessmentId)

foreach (var f in item.FINDING)
{
model.jFINDING.Add(TinyMapper.Map<FINDING,jFINDING>(f));
var obs = TinyMapper.Map<FINDING, jFINDING>(f);
model.jFINDING.Add(obs);

foreach (var fc in f.FINDING_CONTACT)
{
model.jFINDING_CONTACT.Add(TinyMapper.Map<FINDING_CONTACT,jFINDING_CONTACT>(fc));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,6 @@ public Importer(UploadAssessmentModel model,
{
config.Ignore(x => x.Finding_Id);
});
//copy the incoming information to an intermediary
//then copy from the intermediary to destination
//and permit updates.

// RKW 22-MAR-19 - this was crashing with a StackOverflowException.
//TinyMapper.Bind<INFORMATION, INFORMATION>(config =>
//{
// config.Ignore(x => x.Id);
// config.Ignore(x => x.IdNavigation);
// config.Ignore(x => x.ASSESSMENT);
//});
}


Expand Down
166 changes: 0 additions & 166 deletions CSETWebApi/CSETWeb_Api/CSETWebCore.Business/Findings/FindingData.cs

This file was deleted.

Loading

0 comments on commit 5f30608

Please sign in to comment.