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

Show task history link in visualizer when recording. #2759

Merged
merged 2 commits into from
Aug 20, 2019

Conversation

riga
Copy link
Contributor

@riga riga commented Aug 10, 2019

Description

This PR adds a link to the task history page (/history) when record_task_history is enabled:

history link

To achieve that I

  • added a new rpc method to Scheduler that returns the record_task_history setting,
  • added a template for top navigation items,
  • added the link to the top navigation after an initial check using the rpc method.

Motivation and Context

In some projects, easy browsing of the task history might be an important feature, so having a link in the top navigation bar seems like a good thing.

Tests

I added two simple tests that invoke the added rpc method and expect either True or False, depending on the record_task_history setting.

@dlstadther
Copy link
Collaborator

I'm not sure i'm totally following the appearance of the change. Could you fix the link to the image? (I'm getting 401)

Glad to see new tests which are passing!

@riga
Copy link
Contributor Author

riga commented Aug 12, 2019

@dlstadther I fixed the image link.

Copy link
Contributor

@Tarrasch Tarrasch left a comment

Choose a reason for hiding this comment

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

Looks okay. :)

@dlstadther dlstadther merged commit 7f67fbc into spotify:master Aug 20, 2019
GoodDok pushed a commit to GoodDok/luigi that referenced this pull request Aug 23, 2019
* Show task history link in visualizer when recording.

* Fix test.
GoodDok pushed a commit to GoodDok/luigi that referenced this pull request Aug 23, 2019
* Show task history link in visualizer when recording.

* Fix test.
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.

3 participants