Page MenuHomePhorge

phurl: Allow setting default edit policy for URLs
Open, Needs TriagePublic

Description

I want to be able to specify a default edit policy on newly created Phurl URLs. This could be done by adding a default view policy to the application policy configuration, or by making it possible to edit the Phurl creation form to set a default value there.

CurrentProposed
BEFORE.png (701×504 px, 36 KB)
AFTER.png (701×504 px, 43 KB)

Event Timeline

taavi created this object in space S1 Public.
valerio.bozzolan subscribed.

Thanks. I see, from this page is not possible:

https://we.phorge.it/applications/view/PhabricatorPhurlApplication/

Phurl application only has:

  • Can Use Application
  • Can Configure Application
  • Can Create Phurl URLs

Instead, Diffusion app has good "defaults":

  • Can Use Application
  • Can Configure Application
  • Default View Policy (but "view" is probably not relevant for Phurl since are supposed to be all public?)
  • Default Edit Policy
  • Default Push Policy
  • Can Create Repositories
  • Can Edit and View Identities

Patch welcome \o/

Tips to contribute:

1. compare getCustomCapabilities() 🌈

https://we.phorge.it/source/phorge/browse/master/src/applications/diffusion/application/PhabricatorDiffusionApplication.php

And extend this file:

https://we.phorge.it/source/phorge/browse/master/src/applications/phurl/application/PhabricatorPhurlApplication.php

2. look at capability ✨

From:

https://we.phorge.it/source/phorge/browse/master/src/applications/diffusion/capability/

to:

https://we.phorge.it/source/phorge/browse/master/src/applications/phurl/capability/

3. don't know but have fun lol