Skip to content
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

Merged
merged 7 commits into from
Aug 5, 2020

Conversation

cicdw
Copy link
Member

@cicdw cicdw commented Aug 5, 2020

This PR:

  • touches up the Getting Started homepage
  • improves the Flow page ERRORS tile to only show the last 10 errors
  • improves the task / task run activity timeline to only show activity in the last hour
  • makes links from the Failed Task dashboard Tile link out to task run pages to minimize clicks-to-debug (note the task run linked to is somewhat "random")

Note that many of these improvements are largely driven by correctly filtering by timestamp (this wasn't always occurring previously)

cc: @jlowin / @znicholasbrown

znicholasbrown
znicholasbrown previously approved these changes Aug 5, 2020
Copy link
Contributor

@znicholasbrown znicholasbrown left a 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!
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhhhh.

Copy link
Member Author

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

}
return 0
return failures.sort((taskRunA, taskRunB) => {
if (taskRunA.updated < taskRunB.updated) {
Copy link
Contributor

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.

Copy link
Member Author

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"

Copy link
Contributor

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)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool cool - will update

@znicholasbrown znicholasbrown merged commit dadacf1 into master Aug 5, 2020
@znicholasbrown znicholasbrown deleted the random-updates branch August 5, 2020 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants