Bug #18096
closedClicking on refresh manifest twice should warn about errors
Description
If you click on refresh manifest once, it creates a task to refresh it. This normally takes a long time. If you click twice, or happen to click several times (because you don't get any feedback about this task, it's not shown), the logs for foreman say:
2017-01-16T17:13:30 6b890d82 [app] [E] ForemanTasks::Lock::LockConflict: Required lock is already taken by other running tasks. | Please inspect their state, fix their errors and resume them. | | Required lock: read | Conflicts with tasks: | - http://mandy-rheaves.sat.lab.tlv.redhat.com/foreman_tasks/tasks/99253eb6-a6dc-47ff-9725-7c2e2e1f9e9b
(or similar)
The page should give better feedback about what's going on, as users may wonder why they click on refresh but nothing happens (the error can only be seen on the logs).