sajha
October 23, 2024, 3:55pm
21
It should show you synced if the CV was successfully synced. That shouldn’t be impacted by the content count job. The contents under the CV may show empty cause those are the counts that we get from the task.
Does running the refresh from under the kebab menu actions next to environment help?
We are also making some improvements to the flow here and it should make it to the upcoming release :
Katello:master
← sjha4:granular_content_counting
opened 08:55PM - 08 Oct 24 UTC
#### What are the changes introduced in this pull request?
The PR introduces pa… rameters to control granularity of the smart proxy content counting method.
#### Considerations taken when implementing this change?
I had to acquire a lock on the proxy record because parallel sync tasks run for individual environments when a CV version is promoted to them. And each individual sync task triggers it's own content counting leading to a race condition where the last task that saves content_counts overwrites changes by other tasks.
#### What are the testing steps for this pull request?
To test:
1. Test global content counting still works by running a capsule sync.
2. To test granular content counting, turn the automatic counting off, make some changes isolated to one CV, publish, promote etc and ensure the content counts remain stale.
3. Turn the automatic counting setting on and then promote a different CV to an env tied to a proxy.
4. On this branch, post the sync and content count task, only the specific CV version repo counts will get updated. You can verify that in JSON value on proxy or on the UI for easy testing.