1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-12 08:36:13 +01:00
phorge-phorge/src/applications/owners/storage
epriestley 8fab8d8a18 Prepare owners package audit rules to become more flexible
Summary:
Ref T13244. See PHI1055. (Earlier, see D20091 and PHI1047.) Previously, we expanded the Owners package autoreview rules from "Yes/No" to several "Review (Blocking) If Non-Owner Author Not Subscribed via Package" kinds of rules. The sky didn't fall and this feature didn't turn into "Herald-in-Owners", so I'm comfortable doing something similar to the "Audit" rules.

PHI1055 is a request for a way to configure slightly different audit behavior, and expanding the options seems like a good approach to satisfy the use case.

Prepare to add more options by moving everything into a class that defines all the behavior of different states, and converting the "0/1" boolean column to a text column.

Test Plan:
  - Created several packages, some with and some without auditing.
  - Inspected database for: package state; and associated transactions.
  - Ran the migrations.
  - Inspected database to confirm that state and transactions migrated correctly.
  - Reviewed transaction logs.
  - Created and edited packages and audit state.
  - Viewed the "Package List" element in Diffusion.
  - Pulled package information with `owners.search`, got sensible results.
  - Edited package audit status with `owners.edit`.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13244

Differential Revision: https://secure.phabricator.com/D20124
2019-02-07 15:38:12 -08:00
..
__tests__ Fix spelling 2017-10-09 10:48:04 -07:00
PhabricatorOwnersCustomFieldNumericIndex.php Add CustomField support to Owners 2015-09-10 13:32:31 -07:00
PhabricatorOwnersCustomFieldStorage.php Add CustomField support to Owners 2015-09-10 13:32:31 -07:00
PhabricatorOwnersCustomFieldStringIndex.php Add CustomField support to Owners 2015-09-10 13:32:31 -07:00
PhabricatorOwnersDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhabricatorOwnersOwner.php Fix expansion of projects into lists of user PHIDs 2016-05-24 06:38:37 -07:00
PhabricatorOwnersPackage.php Prepare owners package audit rules to become more flexible 2019-02-07 15:38:12 -08:00
PhabricatorOwnersPackageNameNgrams.php Implement basic ngram search for Owners Package names 2015-12-22 08:00:33 -08:00
PhabricatorOwnersPackageTransaction.php Make the default behavior of getApplicationTransactionCommentObject() "return null" instead of "throw" 2019-02-07 14:56:38 -08:00
PhabricatorOwnersPath.php Use "pathIndex" in some owners package queries to improve query plans 2018-03-06 20:33:18 -08:00
PhabricatorOwnersSchemaSpec.php Fix file PHID extraction in Owners and Differential 2015-11-17 08:36:50 -08:00