ros-infrastructure / rosindex

The source code for generating index.ros.org
https://index.ros.org
GNU General Public License v3.0
13 stars 24 forks source link

Combined search/list deps page #449

Open rkent opened 5 days ago

rkent commented 5 days ago

This adds a tabulator-based combined list and search page for system dependencies. Much of this is a copy of what we did with the package list page. This does not show this new page in the UI (like with package list), to view it you need to enter /search_deps/

It adds additional fields to deps, allow searching by upstream package name, platform, ROS package dependant, in addition to dep name and description. I'm not sure system dependency search needs all of this, but it was not difficult to add.

This removes the sharding from the search data for deps, which also affects the existing search page. The size still seems managable. It will eventually be smaller once we remove the old search pages, as there is a lot of extraneous information in the data and index that was used by the old search page, but is not needed by the new one.

Although largely copied from the new package search page, there are two new features here that I also intend to add to the package search: initial sort by search score, and an extensive help page.

Our power is out which affects my build farm, so I am unable to run a non-development build with this for demo, but I will do that as soon as the power is restored.

rkent commented 5 days ago

Sorry for the revision, I discovered some unneeded code to remove.

rkent commented 5 days ago

Oops, sorry again for the redo, had to remove some spaces from blank lines.