Page MenuHomePhabricator

Allow moving task on the workboard to kick off both TYPE_MANIPHEST_WILLEDITTASK and TYPE_MANIPHEST_DIDEDITTASK events.
Needs RevisionPublic

Authored by locutus on Aug 20 2014, 11:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 7:16 PM
Unknown Object (File)
Mon, Dec 2, 12:30 AM
Unknown Object (File)
Wed, Nov 27, 8:56 PM
Unknown Object (File)
Sat, Nov 23, 6:36 PM
Unknown Object (File)
Oct 17 2024, 4:56 PM
Unknown Object (File)
Oct 16 2024, 10:07 AM
Unknown Object (File)
Oct 16 2024, 4:37 AM
Unknown Object (File)
Oct 14 2024, 6:51 AM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

I noticed that moving a task on the workboard didn't cause an event to trigger that could be listened to. This will allow the transactions to be monitored via event listeners.

Test Plan
  • Make sure that all movements can still happen on the workboards.
  • Make sure it triggers events.

Diff Detail

Repository
rP Phabricator
Branch
workboard-move-event
Lint
Lint Passed
Unit
Tests Skipped
Build Status
Buildable 2294
Build 2298: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

locutus retitled this revision from to Allow moving task on the workboard to kick off both TYPE_MANIPHEST_WILLEDITTASK and TYPE_MANIPHEST_DIDEDITTASK events..
locutus updated this object.
locutus edited the test plan for this revision. (Show Details)

We'd generally like to move away from event listeners. Can you walk me through why you want this? Would T5474 cover your use case?

We want to have emails sent out when tasks are moved from one column to another. but Herald doesn't have a hook for Column moves. We were going to write our own listener to get that.

Can you walk me through your use case in more detail? What sort of column moves do you want to generate email? All of them? Moves to specific columns?

With T5474, "send an email to..." could conceivably be a column trigger action.

T5474 should cover our use cases, this diff was something we did in the meantime so that we can do things when things move to certain columns until T5474 happens.

epriestley added a reviewer: epriestley.

This will be obsoleted by T5474 and isn't something we're interested in upstreaming in advance of that.

This revision now requires changes to proceed.May 17 2015, 2:10 PM