Hmm, not really sure
When I did the changes the second time - after “complaining” about the Not yet published messages the only difference I saw was on file app/controllers/katello/api/v2/content_views_controller.rb which I reverted.
All the other files already looked correct.
We’re already using the patch - manually applied, for some time now.
As I said here it solves the slowness issues.
The only downside is that on the list on the Content Views on the Last version column we get the message Not yet published for all the non composite CVs. But we can live with that
I think @Bernhard_Suttner is right, I was still using an older patch…
So, i just rollback everything - dnf reinstall rubygem-katello-4.11.0-1.el8.noarch, and applied the changes on this pull request:
After this, listing content views with hammer timeout after 4 minutes and using the interface it takes almost 6 minutes to finish loading the page. The listing includes the correct latest version.
So it’s slow again… I’ll have to find out which change made this fast and applied it again.
No i did not know about the patch url, that will come in handy
To ensure i properly applied the patch I reverted everything and applied it using that command.
I still got the timeout using hammer and the usual slowness on the web interface - but the latest version has proper info.
I tried to find out which changes made everything really fast but they are no longer available - probably some git rebase is to blame.
Just applied this patch, listing CVs now take less than 5 seconds using hammer and less than 10 seconds using the web interface.
Thank you all for the effort in restoring the performance.