Page MenuHomePhabricator

Support crediting Phacility installs for downtime
Closed, ResolvedPublic

Description

If we have a service interruption, there should be an easy way to credit installs for the downtime.

I roughly imagine just a table like:

<creditForInstancePHID, creditStartEpoch, creditEndEpoch, creditedByPHID, creditDescriptionEtc>

The creditForInstancePHID could be null to indicate that the credit applies to all instances (e.g., sitewide downtime) or non-null to indicate that credit applies to a specific instance.

When billing instances, we'd reduce the cost of each user by the fraction of billable time which was credited.

Revisions and Commits

Restricted Differential Revision

Event Timeline

epriestley raised the priority of this task from to Needs Triage.
epriestley updated the task description. (Show Details)
epriestley added a project: Phacility.
epriestley moved this task to v1 Open Beta on the Phacility board.
epriestley added a subscriber: epriestley.

Not sure if that plan sounds reasonable, but 90% of this is just building a UI for it. Vaguely, something like:

  • Shove a UI in Instances somewhere, available to users with InstancesManageCapability::CAPABILITY.
  • Workflow lets you create a new credit by specifying start time, end time, and instances (or leaving it blank to credit all instances).
  • I can do the actual payments integration later.
btrahan triaged this task as High priority.Feb 11 2015, 8:51 PM
btrahan added a revision: Restricted Differential Revision.Feb 12 2015, 12:40 AM
btrahan closed this task as Resolved by committing Restricted Diffusion Commit.Feb 12 2015, 7:20 PM
btrahan added a commit: Restricted Diffusion Commit.