Page MenuHomePhabricator

Diffusion - make projects work properly with commits
ClosedPublic

Authored by btrahan on Nov 19 2014, 10:20 PM.
Referenced Files
Unknown Object (File)
Thu, Dec 19, 1:47 PM
Unknown Object (File)
Thu, Dec 19, 1:47 PM
Unknown Object (File)
Thu, Dec 19, 1:47 PM
Unknown Object (File)
Thu, Dec 19, 1:47 PM
Unknown Object (File)
Thu, Dec 19, 1:47 PM
Unknown Object (File)
Thu, Dec 19, 1:47 PM
Unknown Object (File)
Wed, Dec 11, 5:43 PM
Unknown Object (File)
Fri, Dec 6, 4:10 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.