feature: user details are individually exported; shared export field renderer

This commit is contained in:
Gary Sharp
2025-02-26 13:23:24 +11:00
parent 539503133a
commit a9687b5f25
65 changed files with 1559 additions and 2743 deletions
+4 -2
View File
@@ -139,10 +139,10 @@ namespace Disco.Services.Exporting
var member = ((MemberExpression)optionAccessor.Body).Member;
var attribute = (DisplayAttribute)member.GetCustomAttributes(typeof(DisplayAttribute), false).Single();
if (metadata.IgnoreShortNames.Contains(attribute.ShortName))
if (metadata.IgnoreGroupNames.Contains(attribute.GroupName))
columnName = attribute.Name;
else
columnName = $"{attribute.ShortName} {attribute.Name}";
columnName = $"{attribute.GroupName} {attribute.Name}";
}
metadata.Add(columnName, valueAccessor, csvValueEncoder);
@@ -190,6 +190,8 @@ namespace Disco.Services.Exporting
{ typeof(ushort?), ToStringEncoder },
{ typeof(bool), ToStringEncoder },
{ typeof(bool?), ToStringEncoder },
{ typeof(Guid), ToStringEncoder },
{ typeof(Guid?), ToStringEncoder },
{ typeof(DateTime), DateTimeEncoder },
{ typeof(DateTime?), NullableDateTimeEncoder },
};