Page MenuHomePhabricator

Clean up some rough Macro transaction edges
ClosedPublic

Authored by chad on May 8 2017, 8:36 PM.
Tags
None
Referenced Files
F17952812: D17848.id42941.diff
Fri, Aug 1, 2:23 AM
F17942247: D17848.diff
Thu, Jul 31, 6:33 AM
F17930903: D17848.id.diff
Wed, Jul 30, 6:21 PM
F17926503: D17848.id42929.diff
Wed, Jul 30, 1:14 PM
F17925471: D17848.id42928.diff
Wed, Jul 30, 11:35 AM
F17915638: D17848.diff
Tue, Jul 29, 8:53 PM
F17756119: D17848.id42942.diff
Tue, Jul 22, 1:41 PM
Unknown Object (File)
Jun 2 2025, 11:46 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
Branch
macro-xaction-3 (branched from master)
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/macro/xaction/PhabricatorMacroFileTransaction.php:65XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 16854
Build 22502: Run Core Tests
Build 22501: arc lint + arc unit

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.