Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions src/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const makeDetailRecord = (detail) => {
browser,
taxonomy
} = detail;
const { file, line, column } = location;
const { file, line, column } = location ?? {};
Comment thread
cenesdeveloper marked this conversation as resolved.
const { timeout } = configuration ?? config ?? {};
const { codeowners } = github ?? {};
const { type, tool } = taxonomy ?? {};
Expand All @@ -175,10 +175,13 @@ const makeDetailRecord = (detail) => {
{ Name: 'status', Value: status, Type: VARCHAR }
];
const dimensions = [
{ Name: 'name', Value: name },
{ Name: 'location_file', Value: file }
{ Name: 'name', Value: name }
];

if (file) {
dimensions.push({ Name: 'location_file', Value: file });
}

if (timeout) {
// kept for backwards compat. Once all dashboards are updated will be removed
dimensions.push({ Name: 'timeout', Value: timeout.toString() });
Expand Down