1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00
phorge-phorge/src/applications/repository
epriestley 0c51885cf7 Survive importing Git commits with no commit message and/or no author
Summary:
Ref T13538. See PHI1739. Synthetic Git commits with no author and/or no commit message currently extract `null` and then fail to parse.

Ideally, we would carefully distinguish between `null` and empty string. In practice, that requires significant schema changes (these columns are non-nullable and have indexing requirements) and these cases are degenerate. These commits are challenging to build and can not normally be constructed with `git commit`.

At least for now, merge the `null` cases into the empty string cases so we can survive import.

Test Plan:
  - Constructed a commit with no author and no commit message using the approach described in T13538; pushed and parsed it.
  - Before: fatals during identity selection and storing the commit message (both roughly NULL inserts into non-null columns).
  - After: clean import.

This produces a less-than-ideal UI in Diffusion, but it doesn't break anything:

{F7492094}

Maniphest Tasks: T13538

Differential Revision: https://secure.phabricator.com/D21266
2020-05-18 20:02:21 -07:00
..
codex When destorying a repository, print a notification about removing the working copy 2017-08-01 08:57:39 -07:00
conduit Update Diffusion conduit text 2017-07-02 14:25:10 +00:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
constants Simplify Create Repository page 2017-08-15 11:05:50 -07:00
customfield Move various other callsites away from callsigns 2016-01-04 06:54:42 -08:00
daemon Update some Phabricator behaviors for changes to Futures 2020-04-03 12:28:16 -07:00
data In the repository URI index, store Phabricator's own URIs as tokens 2019-10-28 14:44:06 -07:00
editor Modularize Repository transactions 2018-11-28 14:29:18 -08:00
engine Improve performance when marking commits as unreachable after multiple ref deletions 2020-04-03 13:28:42 -07:00
graphcache Bail out of PhabricatorRepositoryGraphCache more aggressively after cache fills 2017-10-06 14:12:58 -07:00
mail Build separate mail for each recipient, honoring recipient access levels 2015-06-03 18:59:31 -07:00
management Add a "--dry-run" flag to "bin/repository rebuild-identities" 2019-11-19 12:38:20 -08:00
phid Remove "State Icons" from handles 2019-10-31 12:04:43 -07:00
query Add additional flags to "bin/repository rebuild-identities" to improve flexibility 2019-11-19 09:39:48 -08:00
response Accept and route VCS HTTP requests 2013-10-29 15:32:40 -07:00
search Add controllers/search/edit engine functionality to RepositoryIdentity 2018-05-31 07:03:25 -07:00
storage Distinguish between "Assigned" and "Effective" identity PHIDs more clearly and consistently 2019-11-19 09:37:44 -08:00
worker Survive importing Git commits with no commit message and/or no author 2020-05-18 20:02:21 -07:00
xaction Provide a simple read-only maintenance mode for repositories 2019-08-29 15:23:10 -07:00