ansible / galaxy

Legacy Galaxy still available as read-only on https://old-galaxy.ansible.com - looking for the new galaxy -> https://github.com/ansible/galaxy_ng
Apache License 2.0
854 stars 328 forks source link

Lots of deprecated collections appear on Galaxy search results landing page #2294

Closed geerlingguy closed 4 years ago

geerlingguy commented 4 years ago

When I go to Galaxy and click on one of the categories (e.g. "System", "Playbook Bundles", or any of them, really), I end up seeing a lot of deprecated collections on the first page of results:

Screen Shot 2020-03-13 at 10 37 55 AM

This doesn't inspire a lot of confidence, seeing that at least half of the content listed is deprecated.

I think we should make sure that 'Deprecated' content (roles or collections) is always listed at the end of any results. Otherwise, search ordering still seems quite arbitrary in general, but there's already a separate issue for the general ordering for 'relevancy': https://github.com/ansible/galaxy/issues/1994

Steps to reproduce

  1. Visit https://galaxy.ansible.com
  2. Click on one of the 'Most Popular' links (e.g. "System" or "Playbook Bundles")
  3. Observe the results.

Expected Result

Actual Result

chouseknecht commented 4 years ago

That's not actually true. When you first access the Search page, the deprecated=false filter is in place, and thus no deprecated Collections appear. If you click Clear Filters at any point that filter goes away, and all the deprecated Collections appear.

geerlingguy commented 4 years ago

@chouseknecht

When I go to Galaxy and click on one of the categories

galaxy-deprecated

chouseknecht commented 4 years ago

Ah. That's different. That seems like a simple bug.

geerlingguy commented 4 years ago

That seems like a simple bug.

Good!

Not sure about priority/low, however—this is one of the CTAs on the home page of Galaxy, and it makes for a pretty jarring user experience when someone is excited to start using Ansible, and the first thing they do is click a category, and see a bunch of Deprecated stuff.

geerlingguy commented 4 years ago

PR here: https://github.com/ansible/galaxy/pull/2309

In action:

galaxy-deprecated-fix