-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CDMS-200 initial version of decision refactoring #27
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Btms.Model.Auditing; | ||
|
||
public interface IAuditContext | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated from a template. | ||
// | ||
// Manual changes to this file may cause unexpected behavior in your application. | ||
// Manual changes to this file will be overwritten if the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
#nullable enable | ||
|
||
using JsonApiDotNetCore.Resources.Annotations; | ||
using System.Text.Json.Serialization; | ||
using System.Dynamic; | ||
using Btms.Model.Auditing; | ||
|
||
|
||
namespace Btms.Model.Cds; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public partial class AlvsDecisionItem | ||
{ | ||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public int ItemNumber { get; set; } | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public required string CheckCode { get; set; } | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public required string AlvsDecisionCode { get; set; } | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public string? BtmsDecisionCode { get; set; } | ||
} | ||
|
||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public partial class DecisionContext : IAuditContext // | ||
{ | ||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public int AlvsDecisionNumber { get; set; } = default; | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public int BtmsDecisionNumber { get; set; } = default; | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public int EntryVersionNumber { get; set; } = default; | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public bool Paired { get; set; } = default; | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public string? PairStatus { get; set; } | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public bool AlvsAllNoMatch { get; set; } = default; | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public bool AlvsAnyNoMatch { get; set; } = default; | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public bool DecisionMatched { get; set; } = default; | ||
// | ||
// [Attr] | ||
// [System.ComponentModel.Description("")] | ||
// public required List<AlvsDecisionItem> Checks { get; set; } | ||
|
||
} | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public partial class AlvsDecision // | ||
{ | ||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public required CdsClearanceRequest Decision { get; set; } | ||
|
||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public required DecisionContext Context { get; set; } | ||
|
||
// TODO - should we put this into context, and so into audit log? | ||
[Attr] | ||
[System.ComponentModel.Description("")] | ||
public required List<AlvsDecisionItem> Checks { get; set; } | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
using System.Dynamic; | ||
|
||
|
||
namespace Btms.Model.Alvs; | ||
namespace Btms.Model.Cds; | ||
|
||
/// <summary> | ||
/// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
using System.Dynamic; | ||
|
||
|
||
namespace Btms.Model.Alvs; | ||
namespace Btms.Model.Cds; | ||
|
||
/// <summary> | ||
/// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
using System.Dynamic; | ||
|
||
|
||
namespace Btms.Model.Alvs; | ||
namespace Btms.Model.Cds; | ||
|
||
/// <summary> | ||
/// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
#nullable enable | ||
|
||
|
||
namespace Btms.Model.Alvs; | ||
namespace Btms.Model.Cds; | ||
|
||
/// <summary> | ||
/// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
using System.Dynamic; | ||
|
||
|
||
namespace Btms.Model.Alvs; | ||
namespace Btms.Model.Cds; | ||
|
||
/// <summary> | ||
/// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
using System.Dynamic; | ||
|
||
|
||
namespace Btms.Model.Alvs; | ||
namespace Btms.Model.Cds; | ||
|
||
/// <summary> | ||
/// | ||
|
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If its a BSON error, then if you put BsonKnownTypes on the interface, i think that fixes it (it auto adds a _t field with the type name so it knows the concrete type to deserialise back into)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attribute 'MongoDB.Bson.Serialization.Attributes.BsonKnownTypesAttribute' is not valid on this declaration type. It is valid on 'Class, Struct' declarations only.
So not valid on either an interface or property :(