Page MenuHomePhabricator

Diffusion - make projects work properly with commits
ClosedPublic

Authored by btrahan on Nov 19 2014, 10:20 PM.
Referenced Files
F14012511: D10877.id26127.diff
Fri, Nov 1, 1:53 PM
F14007406: D10877.diff
Tue, Oct 29, 5:15 AM
F13994154: D10877.id26128.diff
Wed, Oct 23, 4:16 AM
F13991277: D10877.id26127.diff
Tue, Oct 22, 9:47 AM
F13989249: D10877.id26123.diff
Mon, Oct 21, 7:14 PM
F13988147: D10877.id26127.diff
Mon, Oct 21, 1:29 PM
F13988145: D10877.id26125.diff
Mon, Oct 21, 1:28 PM
F13988144: D10877.id26128.diff
Mon, Oct 21, 1:28 PM
Subscribers
Tokens
"Grey Medal" token, awarded by epriestley.

Details

Summary

Fixes T3189. Now if you say Projects in a commit message they will associate nicely with the commit. Also we record transactions about all this project editing fun.

Test Plan

tested migration by associating some projects with commits and verifying they still showed up post migration. tested adding / removing projects by doing so from the UI, noting transactions written nicely as well

Diff Detail

Repository
rP Phabricator
Branch
T3189
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 3099
Build 3105: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

btrahan retitled this revision from to Diffusion - make projects work properly with commits.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
btrahan added a project: Projects.
epriestley edited edge metadata.

Can we remove the edge constants completely?

I think the bit in PhabricatorRepositoryCommitSearchIndexer which reads them can be safely removed (should be automatic with PhabricatorProjectInterface, or we should make it automatic if it isn't).

This revision is now accepted and ready to land.Nov 19 2014, 10:28 PM
btrahan edited edge metadata.
  • nuke edge constants
  • make all objects of type PhabricatorProjectInterface index their project relationships
    • remove extra code manually doing this in Maniphest as well as here in Diffusion

exclude the now removed types from legacy type instantiation. wordy but true.

This revision was automatically updated to reflect the committed changes.