1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications/differential
epriestley 0aa913805d Add an alternate "modern" hunk datastore
Summary:
Ref T4045. Ref T5179. Hunk storage has two major issues:

  - It's utf8, but actual diffs are binary.
  - It's huge and can't be compressed or archived.

This introduces a second datastore which solves these problems: by recording hunk encoding, supporting compression, and supporting alternate storage. There's no actual compression or storage support yet, but there's space in the table for them.

Since nothing actually uses hunk IDs, it's fine to have these tables exist at the same time and use the same IDs. We can migrate data between the tables gradually without requiring downtime or disrupting installs.

Test Plan:
  - There are no writes to the new table yet.
  - The only effect this has is making us issue one extra query when looking for hunks.
  - Observed the query issue, but everything else continue working fine.
  - Created a new diff.
  - Ran unit tests.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4045, T5179

Differential Revision: https://secure.phabricator.com/D9290
2014-06-03 18:01:22 -07:00
..
__tests__ Require a viewer for Remarkup rendering 2013-03-04 12:33:05 -08:00
application (Redesign) Clean up older "Tile" code 2014-06-03 15:47:27 -07:00
capability Allow "Default View" policies to be set to Public 2013-10-09 15:06:18 -07:00
conduit Move more hunk loads into DifferentialHunkQuery 2014-06-03 18:01:19 -07:00
config Expose "Abandon Revision" to non-authors with a config flag. 2014-06-02 16:58:48 -07:00
constants Add CCs -> Add Subscribers 2014-06-03 15:53:53 -07:00
controller Introduce DifferentialChangesetQuery and remove loadHunks() 2014-06-03 18:01:21 -07:00
customfield Fix typo: behvaior->behavior 2014-05-27 17:24:34 -07:00
doorkeeper Normalize the definition of "closed" revision statuses 2013-11-25 17:39:24 -08:00
editor Introduce DifferentialChangesetQuery and remove loadHunks() 2014-06-03 18:01:21 -07:00
event Replace Sprite-Icons with FontAwesome 2014-05-12 10:08:32 -07:00
exception Clean up various pieces of dead/obsolete Differential code 2014-03-11 13:02:19 -07:00
garbagecollector Complete modularization of the GC daemon 2014-01-15 10:02:31 -08:00
landing Found some missing icons 2014-05-13 07:45:39 -07:00
lipsum Use DifferentialRevisionEditor in lipsum 2014-03-11 13:02:00 -07:00
mail Fix insufficient loading for processing Differential mail 2014-04-24 13:47:57 -07:00
parser Add an alternate "modern" hunk datastore 2014-06-03 18:01:22 -07:00
phid Don't show document types in search for uninstalled applications 2014-04-29 15:01:50 -07:00
query Add an alternate "modern" hunk datastore 2014-06-03 18:01:22 -07:00
remarkup Require a viewer for Remarkup rendering 2013-03-04 12:33:05 -08:00
render Move more hunk loads into DifferentialHunkQuery 2014-06-03 18:01:19 -07:00
search Use ApplicationTransactions/CustomField to power Differential global search 2014-02-26 11:18:06 -08:00
storage Add an alternate "modern" hunk datastore 2014-06-03 18:01:22 -07:00
view Consolidate changeset rendering logic 2014-06-03 18:01:18 -07:00
DifferentialGetWorkingCopy.php Semi-fix git cloning for non-bare repos for landing 2013-12-30 15:22:32 -08:00