Page MenuHomePhabricator

CalendarEvent implements PhabricatorTokenReceiverInterface
ClosedPublic

Authored by lpriestley on Apr 28 2015, 9:56 PM.
Tags
None
Referenced Files
F13968289: D12600.id30258.diff
Wed, Oct 16, 7:52 PM
Unknown Object (File)
Oct 7 2024, 4:47 AM
Unknown Object (File)
Sep 17 2024, 8:08 AM
Unknown Object (File)
Sep 15 2024, 11:33 AM
Unknown Object (File)
Sep 12 2024, 1:52 PM
Unknown Object (File)
Sep 12 2024, 1:51 PM
Unknown Object (File)
Sep 12 2024, 1:50 PM
Unknown Object (File)
Sep 12 2024, 1:50 PM
Subscribers

Details

Summary

Closes T7946, CalenderEvent implement PhabricatorTokenReceiverInterface.

Test Plan

Create or open a calendar event, award a token, rescind the token, see the full timeline under the event details, open Feed, only token award action should have surfaced.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lpriestley retitled this revision from to CalendarEvent implements PhabricatorTokenReceiverInterface.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/calendar/storage/PhabricatorCalendarEvent.php
243–247

It's sufficient to just return array($this->getUserPHID()).

array_unique() removes duplicates, but the list only has one item so it certainly can't contain duplicates.

array_filter() removes empty/null values. It's possible that an event might not have a userPHID if someone has messed up the database, but it should never normally happen. It's OK to return questionable data in weird edge cases if someone messed with the database.

This revision is now accepted and ready to land.Apr 28 2015, 9:58 PM
lpriestley edited edge metadata.

Simplifying token award receiver. Removing array filtering.

This revision was automatically updated to reflect the committed changes.