Page MenuHomePhabricator

Prepare owners package audit rules to become more flexible
ClosedPublic

Authored by epriestley on Feb 7 2019, 4:19 PM.
Tags
None
Referenced Files
F13245263: D20124.diff
Thu, May 23, 5:53 AM
F13219084: D20124.id.diff
Sat, May 18, 3:12 PM
F13195523: D20124.diff
Sun, May 12, 10:27 PM
F13181593: D20124.id48042.diff
Thu, May 9, 1:27 PM
F13179572: D20124.diff
Wed, May 8, 9:17 PM
F13173397: D20124.diff
Tue, May 7, 7:30 PM
Unknown Object (File)
Mon, May 6, 10:41 AM
Unknown Object (File)
Mon, May 6, 1:25 AM
Subscribers
Restricted Owners Package

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable