Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions src/Exceptionless.Core/Models/EventSummaryModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ public record EventSummaryModel : SummaryData
{
public DateTimeOffset Date { get; set; }
public string? Type { get; set; }
public string? Version { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface EventSummaryModel<T extends SummaryTemplateKeys> extends Summar
/** @format date-time */
date: string;
type?: string;
version?: string;
}

export interface StackErrorSummaryData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export const defaultEventColumnVisibility: ColumnVisibilityState = {
message: false,
name: false,
source: false,
type: false
type: false,
version: false
};

export function getColumns<TSummaryModel extends SummaryModel<SummaryTemplateKeys>>(
Expand Down Expand Up @@ -102,6 +103,16 @@ export function getColumns<TSummaryModel extends SummaryModel<SummaryTemplateKey
class: 'w-28'
}
},
{
accessorKey: nameof<EventSummaryModel<SummaryTemplateKeys>>('version'),
cell: (prop) => formatTextColumn(prop.getValue()),
enableSorting: false,
header: 'Version',
id: 'version',
meta: {
class: 'w-32'
}
},
{
accessorFn: (row) => getSummaryDataValue(row, 'Type'),
cell: (prop) => formatTextColumn(prop.getValue()),
Expand Down
1 change: 1 addition & 0 deletions src/Exceptionless.Web/Controllers/EventController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ private async Task<ActionResult<ICollection<PersistentEvent>>> GetInternalAsync(
TemplateKey = summaryData.TemplateKey,
Date = e.Date,
Type = e.Type,
Version = e.GetVersion(),
Data = summaryData.Data
};
}).ToList(), events.HasMore && !NextPageExceedsSkipLimit(page, limit), page, includeTotal ? events.Total : null, events.Hits.FirstOrDefault()?.GetSortToken(_serializer), events.Hits.LastOrDefault()?.GetSortToken(_serializer));
Expand Down
Loading