Skip to content
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

Jtikekar/reverting nullables #353

Merged
merged 50 commits into from
Nov 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
bd9177f
Revert nullables,
juileetikekar Aug 23, 2024
8019df6
Upgrading to API version 3.0.2
juileetikekar Aug 30, 2024
7903985
Remove child elements from MetadataDTOs (3.0.2)
juileetikekar Sep 3, 2024
82968b6
Support for Metadata as per 3.0.2
juileetikekar Sep 4, 2024
afcd792
Support for /submodel-elements and Get + $path
juileetikekar Sep 10, 2024
b1047e9
Fix for ExceptionHandling
juileetikekar Sep 10, 2024
970cc96
Support for $Path
juileetikekar Sep 11, 2024
6eb3b40
Support for Level in case of Operation Element
juileetikekar Sep 26, 2024
eb02564
Rebasing and resoling conflicts
juileetikekar Aug 23, 2024
d0e2e7c
rebase and resolve conflicts
juileetikekar Aug 30, 2024
6294e63
Remove child elements from MetadataDTOs (3.0.2)
juileetikekar Sep 3, 2024
72cb493
Resolve conflicts
juileetikekar Sep 4, 2024
a27d37e
Resolve conflicts
juileetikekar Sep 10, 2024
679483b
Fix for ExceptionHandling
juileetikekar Sep 10, 2024
e4b29fb
Resolve conflicts
juileetikekar Sep 11, 2024
3652758
Support for Level in case of Operation Element
juileetikekar Sep 26, 2024
537acf7
Resolve conflicts
juileetikekar Sep 26, 2024
6522200
Resolve issues after rebase
juileetikekar Sep 26, 2024
384ba1a
Headers added
martafullen Sep 29, 2024
9bbbd20
Remove null check on DataSpecRef
juileetikekar Oct 15, 2024
86dd10c
Merge branch 'jtikekar/revertingNullables' of https://github.com/admi…
juileetikekar Oct 15, 2024
7058fe9
Support for encoded AssetId in GetAllShells
juileetikekar Oct 16, 2024
2890023
Upgrade to 3.0.3,
juileetikekar Oct 21, 2024
1897991
Upgrade to BugFix version 3.0.3
juileetikekar Oct 28, 2024
0e3bacc
Update to BugFix Version 3.0.3
juileetikekar Oct 30, 2024
a5bc270
Fix bugs w.r.t., Path and submodel service
juileetikekar Oct 31, 2024
1b820ad
Upgrade CD APIs to 3.0.3
juileetikekar Oct 31, 2024
ad136e6
Fix tests
juileetikekar Oct 31, 2024
5eb7d44
Removing support of Path on AnnotatedRelationshipElement
juileetikekar Nov 4, 2024
3ad1ea8
Support for API Versioning
juileetikekar Nov 5, 2024
58c3465
Resolove conflicts with main
juileetikekar Aug 23, 2024
186e732
Resolve conflicts with main
juileetikekar Aug 30, 2024
fda39c7
resolve conflicts with main
juileetikekar Sep 3, 2024
ff8d934
Resolve conflicts with main
juileetikekar Sep 4, 2024
6c15c5d
Resolve conflicts with main
juileetikekar Sep 10, 2024
0f61bdf
Resolve conflicts with main
juileetikekar Sep 11, 2024
8602797
Support for Level in case of Operation Element
juileetikekar Sep 26, 2024
6946eed
Remove null check on DataSpecRef
juileetikekar Oct 15, 2024
ca45b6f
Headers added
martafullen Sep 29, 2024
ad5204a
Support for encoded AssetId in GetAllShells
juileetikekar Oct 16, 2024
0dd86cd
Upgrade to 3.0.3,
juileetikekar Oct 21, 2024
8732300
Upgrade to BugFix version 3.0.3
juileetikekar Oct 28, 2024
1ca0668
Update to BugFix Version 3.0.3
juileetikekar Oct 30, 2024
0c8b7ef
Fix bugs w.r.t., Path and submodel service
juileetikekar Oct 31, 2024
050ed8c
Upgrade CD APIs to 3.0.3
juileetikekar Oct 31, 2024
6a881e0
Fix tests
juileetikekar Oct 31, 2024
e92ee14
Removing support of Path on AnnotatedRelationshipElement
juileetikekar Nov 4, 2024
bf0b061
Support for API Versioning
juileetikekar Nov 5, 2024
933c76a
Merge branch 'jtikekar/revertingNullables' of https://github.com/admi…
juileetikekar Nov 6, 2024
de30a84
Correct errors after rebase
juileetikekar Nov 6, 2024
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
Prev Previous commit
Next Next commit
Support for Level in case of Operation Element
juileetikekar committed Sep 26, 2024
commit 6eb3b40561aed272ab0635b3db0ade43eec9337c
Original file line number Diff line number Diff line change
@@ -255,70 +255,47 @@ public override IClass TransformMultiLanguageProperty(IMultiLanguageProperty tha

public override IClass TransformOperation(IOperation that, LevelExtentModifierContext context)
{
if (context.IsRoot && !context.IsGetAllSmes)
{
if (context.Extent == ExtentEnum.WithBlobValue)
{
throw new InvalidSerializationModifierException("Extent", that.GetType().Name);
}
if (context.Level == LevelEnum.Core)
{
throw new InvalidSerializationModifierException("Level", that.GetType().Name);
}
}

var output = Copying.Deep(that);

if (output != null)
{
context.IsRoot = false;
if (context.Level == LevelEnum.Core)
if (that.InputVariables != null)
{
if (that.InputVariables != null)
output.InputVariables = new List<IOperationVariable>();
foreach (var child in that.InputVariables)
{
output.InputVariables = new List<IOperationVariable>();
foreach (var child in that.InputVariables)
{
context.IncludeChildren = false;
output.InputVariables.Add((IOperationVariable)Transform(child, context));
}
}

if (that.OutputVariables != null)
{
output.OutputVariables = new List<IOperationVariable>();
foreach (var child in that.OutputVariables)
{
context.IncludeChildren = false;
output.OutputVariables.Add((IOperationVariable)Transform(child, context));
}
}

if (that.InoutputVariables != null)
{
output.InoutputVariables = new List<IOperationVariable>();
foreach (var child in that.InoutputVariables)
{
context.IncludeChildren = false;
output.OutputVariables.Add((IOperationVariable)Transform(child, context));
}
output.InputVariables.Add((IOperationVariable)Transform(child, context));
}
}
else
{
if (that.InputVariables != null)
{
output.InputVariables = new List<IOperationVariable>();
foreach (var child in that.InputVariables)
{
output.InputVariables.Add((IOperationVariable)Transform(child, context));
}
}

if (that.OutputVariables != null)
if (that.OutputVariables != null)
{
output.OutputVariables = new List<IOperationVariable>();
foreach (var child in that.OutputVariables)
{
output.OutputVariables = new List<IOperationVariable>();
foreach (var child in that.OutputVariables)
{
output.OutputVariables.Add((IOperationVariable)Transform(child, context));
}
output.OutputVariables.Add((IOperationVariable)Transform(child, context));
}
}

if (that.InoutputVariables != null)
if (that.InoutputVariables != null)
{
output.InoutputVariables = new List<IOperationVariable>();
foreach (var child in that.InoutputVariables)
{
output.InoutputVariables = new List<IOperationVariable>();
foreach (var child in that.InoutputVariables)
{
output.OutputVariables.Add((IOperationVariable)Transform(child, context));
}
output.OutputVariables.Add((IOperationVariable)Transform(child, context));
}
}
}