Page MenuHomePhabricator

Modularize Almanac Binding transactions
ClosedPublic

Authored by epriestley on Apr 10 2018, 12:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 9:04 AM
Unknown Object (File)
Sat, Nov 9, 3:08 PM
Unknown Object (File)
Thu, Oct 31, 10:33 PM
Unknown Object (File)
Sun, Oct 27, 8:53 PM
Unknown Object (File)
Oct 3 2024, 1:37 PM
Unknown Object (File)
Sep 6 2024, 3:04 AM
Unknown Object (File)
Sep 4 2024, 5:21 AM
Unknown Object (File)
Sep 2 2024, 7:27 PM
Subscribers
None

Details

Summary

Depends on D19320. Ref T13120. Ref T12414. Move transactions for Almanac Bindings to ModularTransactions.

Test Plan
  • Created a new binding.
  • Tried to create a duplicate binding, got an error.
  • Edited a binding to rebind it to a different device.
  • Disabled and enabled bindings.
  • Grepped for AlmanacBindingTransaction:: constants.

When a binding is created, it currently renders a bad "changed the interface from ??? to X" transaction. This is because creation isn't currently using EditEngine. I plan to swap it shortly, which will turn this into a real "Create" transaction and fix the issue.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Note that, for now, Bindings have the same issue as Services in D19317: editing properties works correctly, but doesn't render the right transaction stories in the timeline. Since this is just a display issue, I plan to deal with it after converting everything.

amckinley added inline comments.
src/applications/almanac/xaction/AlmanacBindingInterfaceTransaction.php
62–63

renderOldValue()/renderNewValue()?

This revision is now accepted and ready to land.Apr 10 2018, 3:51 PM
src/applications/almanac/xaction/AlmanacBindingInterfaceTransaction.php
62–63

This one's right -- since the old and new values are PHIDs, this renders nice named links for them.

This revision was automatically updated to reflect the committed changes.