www.fgks.org   »   [go: up one dir, main page]

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

Fix broken graph on /admin/imports #5666

Merged
merged 3 commits into from
Sep 22, 2021

Conversation

jimchamp
Copy link
Collaborator
@jimchamp jimchamp commented Sep 17, 2021

Fixes broken import graph found in the admin imports dashboard.

Technical

Testing

While logged in as an admin:

  1. Navigate to https://testing.openlibrary.org/admin/imports
  2. Ensure that the graph is present.

Screenshot

Screenshot from 2021-09-17 18-25-49

Stakeholders

@mekarpeles

@jimchamp jimchamp added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Sep 17, 2021
@@ -226,7 +227,7 @@ export function loadGraph(id, options = {}, tooltip_message = '', color = null)
if (tooltip_message) {
return plot_tooltip_graph($(node), data, tooltip_message, color);
} else {
return $.plot($(node), data, options);
return $.plot($(node), [{data: data}], options);
Copy link
Collaborator Author
@jimchamp jimchamp Sep 17, 2021

Choose a reason for hiding this comment

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

The books-added-per-day graph appears to be the only graph that reaches this else block of code. Related file:

loadGraphIfExists('books-added-per-day', options.booksAdded);

@jimchamp jimchamp changed the title WIP: Fix broken graph on /admin/imports Fix broken graph on /admin/imports Sep 17, 2021
@jimchamp jimchamp marked this pull request as ready for review September 17, 2021 22:39
@cdrini cdrini self-assigned this Sep 20, 2021
Copy link
Collaborator
@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Lgtm! Confirmed import chart now displays, and charts on homepage, subjects, and /stats still display 👍

@cdrini cdrini merged commit 84d6c0d into internetarchive:master Sep 22, 2021
@jimchamp jimchamp deleted the bug/fix-daily-import-graph branch September 29, 2021 20:29
@jimchamp jimchamp removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 2, 2024
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.

None yet

2 participants