Homec4science

Move repository URIs to a dedicated index

Authored by epriestley <git@epriestley.com> on Jan 12 2016, 15:45.

Description

Move repository URIs to a dedicated index

Summary:
Ref T4705 (there are also some other adjacent related tasks dealing with URIs).

Currently, we issue a "get repositories matching URIs: ..." query by loading every possible repository and then checking their URIs in PHP.

Instead, put URIs in a separate table. I plan for each repository to potentially have multiple URIs soon, so this prepares for that.

Test Plan:

  • Ran migrations.
  • Looked at index table, made sure it appeared sensible.
  • Ran some queries by uri to find repositories, found the repositories I expected.
  • Updated the remote URI of a repository, saw queries / index update appropriately.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4705

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

Details

Committed
epriestley <git@epriestley.com>Jan 13 2016, 18:34
Pushed
aubortJan 31 2017, 17:16
Parents
rPHd57c1d6ce2f5: Make hashtags at the end of bolded text render properly
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH1eab16c395e3: Move repository URIs to a dedicated index (authored by epriestley <git@epriestley.com>).Jan 13 2016, 18:34