feat(network): enrich network tree with package leg scores and update Protobuf definitions
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 12m47s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 12m47s
- Added logic to enrich the network tree with the latest left/right leg totals for gold and silver packages in GetNetworkTreeQueryHandler. - Introduced new properties in NetworkTreeDto for GoldLeftLegTotal, GoldRightLegTotal, SilverLeftLegTotal, and SilverRightLegTotal. - Updated Protobuf definitions to include new fields for leg scores in NetworkTreeNodeModel. - Enhanced mapping in NetworkMembershipProfile and NetworkMembershipService to accommodate new leg score properties. - Bumped Protobuf project version to reflect the addition of new features.
This commit is contained in:
@@ -95,7 +95,11 @@ public class NetworkMembershipProfile : IRegister
|
||||
IsActivatedInTargetWeek = node.IsActivatedInTargetWeek,
|
||||
PackageName = node.PackageName ?? string.Empty,
|
||||
PackageId = node.PackageId.HasValue ? node.PackageId.Value : null,
|
||||
IsNewActivation = node.IsNewActivation.HasValue ? node.IsNewActivation.Value : null
|
||||
IsNewActivation = node.IsNewActivation.HasValue ? node.IsNewActivation.Value : null,
|
||||
GoldLeftLegTotal = node.GoldLeftLegTotal,
|
||||
GoldRightLegTotal = node.GoldRightLegTotal,
|
||||
SilverLeftLegTotal = node.SilverLeftLegTotal,
|
||||
SilverRightLegTotal = node.SilverRightLegTotal
|
||||
};
|
||||
|
||||
if (parentId.HasValue)
|
||||
|
||||
@@ -185,6 +185,11 @@ public class NetworkMembershipService : NetworkMembershipContract.NetworkMembers
|
||||
node.PackageId = dto.PackageId.Value;
|
||||
}
|
||||
|
||||
node.GoldLeftLegTotal = dto.GoldLeftLegTotal;
|
||||
node.GoldRightLegTotal = dto.GoldRightLegTotal;
|
||||
node.SilverLeftLegTotal = dto.SilverLeftLegTotal;
|
||||
node.SilverRightLegTotal = dto.SilverRightLegTotal;
|
||||
|
||||
if (dto.IsNewActivation.HasValue)
|
||||
{
|
||||
node.IsNewActivation = dto.IsNewActivation.Value;
|
||||
|
||||
Reference in New Issue
Block a user