HomePhabricator

Index all repository URIs, not just the "primary" repository URI

Description

Index all repository URIs, not just the "primary" repository URI

Summary:
Ref T10923. When regenerating the URI index for a repository, index every URI.

  • Also, make the index slightly stricter (domain + path instead of just path). Excluding the domain made more sense when we were generating only first-party URIs.
  • Make the index smarter about /diffusion/123/ URIs.
  • Show normalized URIs in diffusion.repository.search results.

Test Plan:

  • Ran migration.
  • Verified sensible-looking results in database.
  • Searched for a repository URI by first-party clone URI.
  • Searched for a repository URI by mirror URI.
  • Used diffusion.repository.search to get information about repository URIs.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10923

Differential Revision: https://secure.phabricator.com/D15876

Details

Provenance
epriestleyAuthored on May 10 2016, 1:20 PM
epriestleyPushed on May 11 2016, 1:36 PM
Reviewer
chad
Differential Revision
D15876: Index all repository URIs, not just the "primary" repository URI
Parents
rPf05fce44aabb: Provide more UI guidance when creating repositories
Branches
Unknown
Tags
Unknown
Tasks
T10923: Diffusion API/URI Errata
Build Status
Buildable 12133
Build 15304: Run Core Tests