Page MenuHomePhabricator

Clean up some rough Macro transaction edges
ClosedPublic

Authored by chad on May 8 2017, 8:36 PM.
Tags
None
Referenced Files
F18861842: D17848.id.diff
Sun, Nov 2, 4:43 PM
F18858066: D17848.diff
Sat, Nov 1, 8:38 PM
F18826902: D17848.id42942.diff
Fri, Oct 24, 6:23 AM
F18773958: D17848.id.diff
Oct 9 2025, 1:59 PM
F18769746: D17848.id42942.diff
Oct 8 2025, 8:58 AM
F18757684: D17848.id42928.diff
Oct 5 2025, 6:57 PM
F18750702: D17848.id42929.diff
Oct 4 2025, 8:43 AM
F18750699: D17848.id42941.diff
Oct 4 2025, 8:43 AM
Subscribers

Details

Summary

Ref T12685, cleans up various macro issues, remove subscribers, fix feed stories, etc.

Test Plan

Create a new macro, see no subscribers, edit various macros.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • fix edit with no macro?

One inline I'm not sure about, looks good otherwise.

src/applications/macro/editor/PhabricatorMacroEditEngine.php
75–76

GREAT comment A+++

src/applications/macro/xaction/PhabricatorMacroFileTransaction.php
13–14

What's this one for?

src/applications/macro/xaction/PhabricatorMacroFileTransaction.php
13–14

Editing a macro without changing the file generates an empty transaction instead of no transaction.

13–14

Specifically, it tries to set null, and the column isn't nullable.

Let me see if I can make FileEditField or whatever it is a little smarter about things.

If you put this on top of D17853, I think you can delete that if ($value) { bit and everything will just work better (not perfectly, but better).

This revision is now accepted and ready to land.May 8 2017, 11:28 PM
This revision was automatically updated to reflect the committed changes.