Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
bdbf8775
Commit
bdbf8775
authored
Jan 12, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 715902: Do not log personal common activities in audit_log
r=dkl a=LpSolit
parent
fe2a998b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
3 deletions
+23
-3
Attachment.pm
Bugzilla/Attachment.pm
+1
-0
Bug.pm
Bugzilla/Bug.pm
+1
-0
BugUrl.pm
Bugzilla/BugUrl.pm
+4
-0
Comment.pm
Bugzilla/Comment.pm
+3
-1
Flag.pm
Bugzilla/Flag.pm
+2
-0
Object.pm
Bugzilla/Object.pm
+4
-2
Recent.pm
Bugzilla/Search/Recent.pm
+4
-0
Saved.pm
Bugzilla/Search/Saved.pm
+4
-0
No files found.
Bugzilla/Attachment.pm
View file @
bdbf8775
...
...
@@ -55,6 +55,7 @@ use constant DB_TABLE => 'attachments';
use
constant
ID_FIELD
=>
'attach_id'
;
use
constant
LIST_ORDER
=>
ID_FIELD
;
# Attachments are tracked in bugs_activity.
use
constant
AUDIT_CREATES
=>
0
;
use
constant
AUDIT_UPDATES
=>
0
;
sub
DB_COLUMNS
{
...
...
Bugzilla/Bug.pm
View file @
bdbf8775
...
...
@@ -51,6 +51,7 @@ use constant ID_FIELD => 'bug_id';
use
constant
NAME_FIELD
=>
'alias'
;
use
constant
LIST_ORDER
=>
ID_FIELD
;
# Bugs have their own auditing table, bugs_activity.
use
constant
AUDIT_CREATES
=>
0
;
use
constant
AUDIT_UPDATES
=>
0
;
# This is a sub because it needs to call other subroutines.
...
...
Bugzilla/BugUrl.pm
View file @
bdbf8775
...
...
@@ -22,6 +22,10 @@ use URI::QueryParam;
use
constant
DB_TABLE
=>
'bug_see_also'
;
use
constant
NAME_FIELD
=>
'value'
;
use
constant
LIST_ORDER
=>
'id'
;
# See Also is tracked in bugs_activity.
use
constant
AUDIT_CREATES
=>
0
;
use
constant
AUDIT_UPDATES
=>
0
;
use
constant
AUDIT_REMOVES
=>
0
;
use
constant
DB_COLUMNS
=>
qw(
id
...
...
Bugzilla/Comment.pm
View file @
bdbf8775
...
...
@@ -23,7 +23,9 @@ use Scalar::Util qw(blessed);
#### Initialization ####
###############################
# Updates of comments are audited in bugs_activity instead of audit_log.
# Creation and updating of comments are audited in longdescs
# and bugs_activity respectively instead of audit_log.
use
constant
AUDIT_CREATES
=>
0
;
use
constant
AUDIT_UPDATES
=>
0
;
use
constant
DB_COLUMNS
=>
qw(
...
...
Bugzilla/Flag.pm
View file @
bdbf8775
...
...
@@ -59,7 +59,9 @@ use base qw(Bugzilla::Object Exporter);
use
constant
DB_TABLE
=>
'flags'
;
use
constant
LIST_ORDER
=>
'id'
;
# Flags are tracked in bugs_activity.
use
constant
AUDIT_CREATES
=>
0
;
use
constant
AUDIT_UPDATES
=>
0
;
use
constant
AUDIT_REMOVES
=>
0
;
use
constant
SKIP_REQUESTEE_ON_ERROR
=>
1
;
...
...
Bugzilla/Object.pm
View file @
bdbf8775
...
...
@@ -29,7 +29,9 @@ use constant VALIDATOR_DEPENDENCIES => {};
# XXX At some point, this will be joined with FIELD_MAP.
use
constant
REQUIRED_FIELD_MAP
=>
{};
use
constant
EXTRA_REQUIRED_FIELDS
=>
();
use
constant
AUDIT_CREATES
=>
1
;
use
constant
AUDIT_UPDATES
=>
1
;
use
constant
AUDIT_REMOVES
=>
1
;
# This allows the JSON-RPC interface to return Bugzilla::Object instances
# as though they were hashes. In the future, this may be modified to return
...
...
@@ -397,7 +399,7 @@ sub remove_from_db {
my
$id_field
=
$self
->
ID_FIELD
;
my
$dbh
=
Bugzilla
->
dbh
;
$dbh
->
bz_start_transaction
();
$self
->
audit_log
(
AUDIT_REMOVE
);
$self
->
audit_log
(
AUDIT_REMOVE
)
if
$self
->
AUDIT_REMOVES
;
$dbh
->
do
(
"DELETE FROM $table WHERE $id_field = ?"
,
undef
,
$self
->
id
);
$dbh
->
bz_commit_transaction
();
undef
$self
;
...
...
@@ -545,7 +547,7 @@ sub insert_create_data {
Bugzilla::Hook::
process
(
'object_end_of_create'
,
{
class
=>
$class
,
object
=>
$object
});
$object
->
audit_log
(
AUDIT_CREATE
);
$object
->
audit_log
(
AUDIT_CREATE
)
if
$object
->
AUDIT_CREATES
;
return
$object
;
}
...
...
Bugzilla/Search/Recent.pm
View file @
bdbf8775
...
...
@@ -19,6 +19,10 @@ use Bugzilla::Util;
use
constant
DB_TABLE
=>
'profile_search'
;
use
constant
LIST_ORDER
=>
'id DESC'
;
# Do not track buglists viewed by users.
use
constant
AUDIT_CREATES
=>
0
;
use
constant
AUDIT_UPDATES
=>
0
;
use
constant
AUDIT_REMOVES
=>
0
;
use
constant
DB_COLUMNS
=>
qw(
id
...
...
Bugzilla/Search/Saved.pm
View file @
bdbf8775
...
...
@@ -26,6 +26,10 @@ use Scalar::Util qw(blessed);
#############
use
constant
DB_TABLE
=>
'namedqueries'
;
# Do not track buglists saved by users.
use
constant
AUDIT_CREATES
=>
0
;
use
constant
AUDIT_UPDATES
=>
0
;
use
constant
AUDIT_REMOVES
=>
0
;
use
constant
DB_COLUMNS
=>
qw(
id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment