[meta] Index all of contrib modules at api.drupal.org

Migrated issue

Reported by: boris mann

Problem/Motivation

From threads such as this: http://drupal.org/node/152852

Currently, api.drupal.org indexes Drupal Core and a few contrib projects. It would be desirable to have it index all of contrib.

Proposed resolution

a) Make it easy/maintainable for api.drupal.org to index all contributed projects (modules, themes, and distributions).

b) Turn this functionality on.

Remaining tasks

Over the 10 years since this issue was proposed, considerable work has been done to make this possible, and you can now have multiple projects/branches on the site and it will work fine. The main blocker right now would be to automate the process, so that we wouldn't need to manually enter all the projects and branches to add them to the site. Also, figuring out how to handle searching (across projects? within projects?) would also be useful.

There are several outstanding issues related to making this happen:

#686312: Grab project list and packages from Drupal database or XML
Definitely need this -- to automate adding projects/branches
#1611896: Download and parse tgz files as a data source
Maybe need this... we currently index code from a file system / Git. This issue would propose instead downloading TGZ zips and somehow figuring out if anything has changed. However, especially with Drupal 8, this seems problematic, because besides using Git, we also get the vendor files using Composer, and also the D8 code base is so large we probably cannot index a large changed chunk of it in one go (there is a queue for parsing files, so updates can be indexed over multiple queue/cron runs).
#1788240: Advanced search
Definitely need some way to specify searches. Right now search is just within a project/branch, plus a full-text search that probably no one even notices is on the site
#1908726: More flexible "N functions call this" and other references pages
Maybe need this -- might allow the N functions call this pages to be within or across projects

User interface changes

api.drupal.org will have all of contrib on it.

API changes

Probably not.

Data model changes

Probably not at this point. The data model was already changed in the past to accomodate having multiple projects/branches.

Related issue: Issue #669910

Related issue: Issue #686312

Related issue: Issue #990108

Related issue: Issue #1450478

Related issue: Issue #1500294

Related issue: Issue #1526504

Related issue: Issue #1618232

Related issue: Issue #1611896

Related issue: Issue #1788218

Related issue: Issue #1788240

Related issue: Issue #1908726

Related issue: Issue #2008540

Related issue: Issue #2012658

Related issue: Issue #2199907

Edited by drupalbot