HomePhorge

Countdown: add a capability to decide who can Create
Concern Raised7ed35123a347

Description

Countdown: add a capability to decide who can Create

Summary:
This change adds the countdown.create capability to
allow to limit countdown creation.

This change comes from the Wikimedia Phabricator and
was originally proposed by v.bozzolan and implemented
by the kind user 20after4.

https://phabricator.wikimedia.org/T258599

Closes T15208
Ref T15081

Test Plan:

  • go to the page /applications/view/PhabricatorCountdownApplication/
  • play a bit with the "Can Create Countdowns" option
  • note that it is respected

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: speck, tobiaswiese, Matthew, Cigaryno

Tags: #countdown, Policy (archived)

Maniphest Tasks: T15208, T15081

Differential Revision: https://we.phorge.it/D25101

Event Timeline

valerio.bozzolan raised a concern with this commit.
valerio.bozzolan subscribed.

Just to mention that this change probably forgot arc liberate.

And it would be nice to understand why unit/lint tests didn't highlight this problem.

D25133: Countdown: fix PhutilMissingSymbolException

Having said it honestly worked on my computer too.

This commit now has outstanding concerns.Apr 25 2023, 10:31

OK green light. The missing map has probably nothing to do with some reported issues.

All concerns with this commit have now been addressed.Apr 25 2023, 11:06
valerio.bozzolan raised a concern with this commit.EditedApr 25 2023, 11:11

OK red light again. This specific commit now causes to me a PhutilMissingSymbolException when loading the home of Phorge.

Failed to load symbol "PhabricatorCountdownCreateCapability" (of type "class or interface").

I absolutely have no idea about why during the local test of the patch I hadn't had any issue at all, why the unit tests were OK, why the lints were OK, etc., but now we have definitely a clear problem here and the fix is: D25133: Countdown: fix PhutilMissingSymbolException

This commit now has outstanding concerns.Apr 25 2023, 11:11