Bug #14613
openContent View Version Publication POSTs to api continuously
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1326851
Description of problem: When publishing a ContentView (CV), the following request is made continuously, even when the user navigates away from the content view page:
POST /foreman_tasks/api/tasks/bulk_search
Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"89a5c160-c5b5-430b-9499-ecb840986a41", "search_id"=>"1"}, {"type"=>"task", "task_id"=>"feaf0972-16e1-4acf-a1b2-55bee7b59334", "search_id"=>"2"}], "task"=>{}}
Version-Release number of selected component (if applicable): upstream
How reproducible:
Steps to Reproduce:
1. Create a CV
2. Publish the CV through the web UI
3. Note the server logs; look for continuous POST requests
4. Navigate to Puppet Modules tab
5. Note the server logs; look for continuous POST requests
Actual results:
The POST requests continue to hit the server, even when the UI element is hidden.
Expected results:
When the UI element shown in the screenshot attached is hidden by navigating to another tab, it should cease refreshing. Refreshing should commence again when the user navigates back to the Versions tab.
Additional info: