Making WordPress.org

Opened 8 years ago

Closed 5 years ago

Last modified 5 years ago

#2717 closed enhancement (fixed)

Plugin Directory Admin: Consider an audit log for plugin changes

Reported by: dd32's profile dd32 Owned by: dd32's profile dd32
Milestone: Plugin Directory v3 - Future Priority: normal
Component: Plugin Directory Keywords: needs-patch
Cc:

Description

Currently the plugin directory has very little logging of changes which occur to plugins, adding an audit logging plugin or functionality could potentially greatly ease the review of plugins in the future, answering questions such as

  • When was this first published?
  • When was this closed, and why
  • When did OtherUser get added to this plugin as a committer?
  • Who marked this plugin as approved, or reviewed and ready for approval? (For future when we have multiple reviewers)

Many of these questions can be determined already by looking at raw data, but not much of it is reflected in the UI and available to reviewers.

Actions which could be logged include

  • Plugin Submitted, by whom & when
  • Plugin Approved, by whom & when
  • Plugin Committer added/removed, by whom & when
  • Plugin Closed, by whom, when and for what reason (Replacing internal comments to a degree)
  • General free-text comment on the plugin (Replacing internal comments all together)

A general use-case for where this would be useful - I just performed a bunch of automated actions on plugins, and a new plugin suddenly came up in the list. It took me a few minutes to determine if someone had approved it, or I'd mixed up a conditional and accidentally approved a plugin. Turned out that the author had just made their first commit and the plugin had moved from approved to publish.

Change History (11)

#1 follow-up: @ocean90
8 years ago

Assuming that each log entry is a post of a new CPT, we might want to use this also for the internal notes stuff to be able to remove some of the hacks we had and still have to implement.

#2 in reply to: ↑ 1 @dd32
8 years ago

Replying to ocean90:

Assuming that each log entry is a post of a new CPT, we might want to use this also for the internal notes stuff to be able to remove some of the hacks we had and still have to implement.

That's my idea - the internal notes is really still only cobbled together and needs a bunch of work.
I'd suggest we use something off-the-shelf instead of writing our own though, if it's stored as a CPT great, if it's a custom table, that's fine too. https://wordpress.org/plugins/search/audit%20log has a few plugins which look promising.

#3 @Ipstenu
8 years ago

#2663 was marked as a duplicate.

#4 @Ipstenu
8 years ago

  • Summary changed from Consider an audit log for plugin changes to Plugin Directory Admin: Consider an audit log for plugin changes

Closed #2663 so we only have one ticket :) Original post:

It would make a mod's life easier if we had audit logs. Not for everything but for things like this:

  • Approved by X on DATE
  • Closed by X on DATE

That way we'd know who did what and could go ask what was going on :)

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.


8 years ago

This ticket was mentioned in Slack in #meta by ipstenu. View the logs.


7 years ago

#7 @Ipstenu
7 years ago

List of what needs tracking. These should record userID and timestamp.

Admin Tasks

  • Approval
  • Pended
  • Rejected
  • Closure/Disabled (and why - based on the dropdown)
  • Reopened
  • Changed Owner

Plugin Dev Tasks

  • Add/Remove committer

Some of this could be made 'public' and shown on the plugin's advanced page. I'm going to finish up and post on make/plugins my idea for a plugin admin dashboard...

#8 @tellyworth
7 years ago

  • Keywords needs-patch added

#9 @Ipstenu
6 years ago

All of these are now automated in the plugin internal comments:

  • Plugin Submitted, by whom & when
  • Plugin Approved, by whom & when
  • Plugin Closed, by whom, when and for what reason (Replacing internal comments to a degree)
  • General free-text comment on the plugin (Replacing internal comments all together)

Also we have:

  • Plugin owner changed, by whom & when

Do we need a different way to track those?

This is not logged at the moment:

  • Plugin Committer added/removed, by whom & when

#10 @dd32
5 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 9682:

Plugin Directory: Add audit log entries for plugin committer/support reps addition/removal.

Fixes #2717.

#11 @dd32
5 years ago

In 9684:

Plugin Directory: Change over final audit_log() that was missed in [9682]

See #2717.

Note: See TracTickets for help on using tickets.