2011-03-03 03:58:21 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright 2011 Facebook, Inc.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
final class PhabricatorPHIDConstants {
|
|
|
|
|
|
|
|
const PHID_TYPE_USER = 'USER';
|
|
|
|
const PHID_TYPE_MLST = 'MLST';
|
|
|
|
const PHID_TYPE_DREV = 'DREV';
|
|
|
|
const PHID_TYPE_TASK = 'TASK';
|
|
|
|
const PHID_TYPE_FILE = 'FILE';
|
|
|
|
const PHID_TYPE_PROJ = 'PROJ';
|
|
|
|
const PHID_TYPE_UNKNOWN = '????';
|
|
|
|
const PHID_TYPE_MAGIC = '!!!!';
|
2011-03-07 07:29:22 +01:00
|
|
|
const PHID_TYPE_REPO = 'REPO';
|
|
|
|
const PHID_TYPE_CMIT = 'CMIT';
|
2011-04-04 07:23:31 +02:00
|
|
|
const PHID_TYPE_OPKG = 'OPKG';
|
2011-06-10 08:53:53 +02:00
|
|
|
const PHID_TYPE_PSTE = 'PSTE';
|
2011-07-05 17:35:18 +02:00
|
|
|
const PHID_TYPE_STRY = 'STRY';
|
2011-07-08 20:13:11 +02:00
|
|
|
const PHID_TYPE_POLL = 'POLL';
|
2011-07-11 17:54:22 +02:00
|
|
|
const PHID_TYPE_WIKI = 'WIKI';
|
2011-07-17 03:44:48 +02:00
|
|
|
const PHID_TYPE_APRJ = 'APRJ';
|
Add Basic Auditing Functionalities
Summary:
add basic auditing functionalities. For the related commits for a
package, we detect the following conditions which might be suspicious to the
owners of the package:
* no revision specified
* revision not found
* author not match
* reviewedby not match
* owners not involved
* commit author not recognized
The owners of the package can change the status of the audit entries by
accepting it or specify concern.
The owner can turn on/off the auditing for a package.
Test Plan:
* verified that non-owner cannot see the details of the audit and cannot modify
it
* verified that all the audit reasons can be detected
* tested dropdown filtering and package search
* verified really normal change not detected
* verified accept/concern a commit
* tested enable/disable a package for auditing
* verified one audit applies to all <commit, packages> to the packages the
auditor owns
* verified that re-parsing a commit won't have effect if there exists a
relationship for <commit, package> already
Reviewers: epriestley, nh
Reviewed By: epriestley
CC: aran, benmathews, btrahan, mpodobnik, prithvi, TomL, epriestley
Differential Revision: 1242
2011-12-18 00:52:54 +01:00
|
|
|
const PHID_TYPE_ACMT = 'ACMT';
|
2011-03-03 03:58:21 +01:00
|
|
|
|
|
|
|
}
|