Skip to content

Commit

Permalink
enable summarize capabilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
jas-valgotar committed Dec 18, 2024
1 parent abc6e9e commit f61e73d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public abstract class TableDelegationInfo
// Used to indicate whether this table has selectable columns
public SelectionRestrictions SelectionRestriction { get; init; }

public SummarizeRestrictions SummarizeRestriction { get; init; }
public SummarizeCapabilities SummarizeCapabilities { get; init; }

// Defines ungroupable columns
public GroupRestrictions GroupRestriction { get; init; }
Expand Down Expand Up @@ -264,16 +264,19 @@ public SelectionRestrictions()
}
}

public sealed class SummarizeRestrictions
public class SummarizeCapabilities
{
/// <summary>
/// List of properties that can not be summarized.
/// </summary>
public ICollection<string> NonSummarizableProperties { get; init; }

public ICollection<SummarizeMethod> NotSupportedSummarizeMethods { get; init; }

public SummarizeRestrictions()
public virtual bool IsSummarizableProperty(string propertyName)
{
return false;
}

public virtual bool IsSummarizableMethod(SummarizeMethod method)
{
return false;
}

public SummarizeCapabilities()
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public enum DelegationParameterFeatures
// $apply
Apply = 1 << 4,

// $apply = groupby((field1, ..), fileld with sum as TotoalSum)
ApplyGroupBy = 1 << 5,

/*
To be implemented later when needed
Expand Down

0 comments on commit f61e73d

Please sign in to comment.