mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 13:00:56 +01:00
b1243e549c
Summary: Fixes T4379. Several changes: - Migrate all project members into subscribers. - When members are added or removed, subscribe or unsubscribe them. - Show sub/unsub in the UI. - Determine mailable membership of projects by querying subscribers. Test Plan: - As `duck`, joined a project. - Added the project as a reviewer to a revision. - Commented on the revision. - Observed `duck` receive mail. - Unsubscribed as `duck`. - Observed no mail. - Resubscribed as `duck`. - Mail again. - Joined/left project, checked sub/unsub status. - Ran migration, looked at database. Reviewers: btrahan Reviewed By: btrahan CC: aran, asherkin Maniphest Tasks: T4379 Differential Revision: https://secure.phabricator.com/D8189
8 lines
348 B
SQL
8 lines
348 B
SQL
/* These are here so `grep` will find them if we ever change things: */
|
|
|
|
/* PhabricatorEdgeConfig::TYPE_PROJ_MEMBER = 13 */
|
|
/* PhabricatorEdgeConfig::TYPE_OBJECT_HAS_SUBSCRIBER = 21 */
|
|
|
|
INSERT IGNORE INTO {$NAMESPACE}_project.edge (src, type, dst, dateCreated)
|
|
SELECT src, 21, dst, dateCreated FROM {$NAMESPACE}_project.edge
|
|
WHERE type = 13;
|