Page MenuHomePhabricator

Modularize Dashboard Panel transactionns
ClosedPublic

Authored by epriestley on Apr 2 2019, 5:00 PM.
Tags
None
Referenced Files
F13052601: D20370.id48636.diff
Fri, Apr 19, 10:04 AM
F13050698: D20370.diff
Fri, Apr 19, 3:08 AM
Unknown Object (File)
Thu, Apr 18, 9:23 AM
Unknown Object (File)
Wed, Apr 17, 3:06 PM
Unknown Object (File)
Sat, Apr 13, 6:34 AM
Unknown Object (File)
Thu, Apr 11, 7:16 AM
Unknown Object (File)
Sun, Apr 7, 11:47 PM
Unknown Object (File)
Jan 31 2024, 6:24 PM
Subscribers
None

Details

Summary

Depends on D20369. Ref T13272. Move toward a world where we can edit panels with just one controller, instead of separate "Edit" and "Editpro" controllers.

Test Plan

Created and edited panels. This will get vetted more thoroughly after additional changes.

Diff Detail

Repository
rP Phabricator
Branch
portal17
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 22469
Build 30761: Run Core Tests
Build 30760: arc lint + arc unit

Event Timeline

amckinley added inline comments.
src/applications/dashboard/xaction/panel/PhabricatorDashboardPanelNameTransaction.php
63–68

Isn't this the default implementation for ModularTransactions?

This revision is now accepted and ready to land.Apr 3 2019, 6:53 PM
src/applications/dashboard/xaction/panel/PhabricatorDashboardPanelNameTransaction.php
63–68

By default, we don't expose anything to Conduit.

Some transactions have complex/weird/sensitive/not-good-for-API-users details, and if we exposed them by default we might end up in trouble (maybe users trying to use them and complaining that they're impossible to work with; maybe users complaining that we broke compatibility if we then fix it; maybe actual security problems), so we err on the side of caution and require each transaction have an explicit implementation.

In this case (and other simple cases) there's an obviously reasonable way to represent the transaction, but I just delete / don't implement these methods a lot of the time if there's any ambiguity.

Usually, this only impacts webhooks trying to do something with the event.

This revision was automatically updated to reflect the committed changes.