Page MenuHomePhabricator

Diffusion - make projects work properly with commits
ClosedPublic

Authored by btrahan on Nov 19 2014, 10:20 PM.
Referenced Files
F13173783: D10877.diff
Tue, May 7, 8:59 PM
Unknown Object (File)
Mon, Apr 29, 4:34 PM
Unknown Object (File)
Sun, Apr 28, 8:52 AM
Unknown Object (File)
Fri, Apr 26, 5:03 PM
Unknown Object (File)
Thu, Apr 25, 12:12 AM
Unknown Object (File)
Sun, Apr 21, 7:13 PM
Unknown Object (File)
Thu, Apr 11, 8:29 AM
Unknown Object (File)
Apr 8 2024, 4:12 AM
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.