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

Fixes #37827 - Bring back sync status progress bars on initial page load #11156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeremylenz
Copy link
Member

What are the changes introduced in this pull request?

Seems the code in app/assets/javascripts/katello/sync_management/sync_management.js to populate the sync status progress bars was running prematurely, before app/views/katello/sync_management/index.html.erb had a chance to populate the data. I moved it into a function and now run it right when we need it. The effect should be that the progress bars return to the page, even on initial page load. The second effect is that the "Active only" checkbox becomes useful again, because its function is to show you only the rows that have those progress bars.

Considerations taken when implementing this change?

I barely understand any of this ancient code so please tell me if I did something wrong lol

What are the testing steps for this pull request?

Get some really big, slow-syncing repos
Go to the sync_management page
Hit Select All (and optionally Expand All, if you want to see what you've selected)
Click Synchronize Now and immediately refresh the browser page

On page load, you should now see the progress bars (before you'd just see the task status - "Running" etc.)
Also, the "Active only" checkbox should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant