Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Amsterdam 752b566c48 internal/frontend: recognize "golang.org" prefix
When creating sections for imported-by, recognize paths
beginning with "golang.org".

Change-Id: I8809caceaf4b8a465a9ff24748c9dbb2d9e7a505
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/539669
Reviewed-by: Julie Qiu <julieqiu@google.com>
2020-03-27 16:46:42 -04:00
Jonathan Amsterdam c76866da88 internal/frontend: group imported-by paths
Instead of displaying the paths imported by a module as a flat list,
use <details> elements to display a tree.

Make tree nodes for (roughly) "account" and "repo", so that
"github.com/google" is one level of the tree, and
"github.com/google/somerepo" is the next level. Don't group beyond
that on the assumption that users would want to see all the importing
packages in a repo as a flat list.

Also, get rid of pagination on the query. Instead use a large limit,
and only display paths up to that limit.

Fixes b/139411420.

Change-Id: I55e030e5f901dacf854f2e7f585a444d089f6ea1
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/537581
Reviewed-by: Julie Qiu <julieqiu@google.com>
2020-03-27 16:46:42 -04:00