-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates, fixes, and performance improvements #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small questions, otherwise LGTM
@@ -77,15 +82,20 @@ export default { | |||
server <span class="deepRed--text font-weight-medium">start</span> | |||
</div> | |||
</div> | |||
<div class="text-body-1 mt-2"> | |||
This command has many options to customize your deployment - run it with | |||
the <kbd>-h</kbd> flag to see the documentation! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, really like this addition
@@ -1,11 +1,11 @@ | |||
query Errors( | |||
$heartbeat: timestamptz_comparison_exp | |||
$updated: timestamptz_comparison_exp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhhhh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha yea! I only noticed it because I was on a particular page that was showing really old ERRORs
src/pages/Dashboard/Errors-Tile.vue
Outdated
} | ||
return 0 | ||
return failures.sort((taskRunA, taskRunB) => { | ||
if (taskRunA.updated < taskRunB.updated) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't checked this, but does it updated
return a number or a string? That'll be important for the comparison here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it returns a timestamp string like "2020-03-20T04:37:06.271147+00:00"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok I thought it might; in which case we'll want to compare the strings like this:
new Date(taskRunA.updated) < new Date(taskRunB.updated)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool cool - will update
This PR:
Note that many of these improvements are largely driven by correctly filtering by timestamp (this wasn't always occurring previously)
cc: @jlowin / @znicholasbrown