gcode-mirror / google-highly-open-participation-drupal

Automatically exported from code.google.com/p/google-highly-open-participation-drupal
0 stars 0 forks source link

Write a workflow-ng logging module #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Workflow-ng is a rule-based event driven action evaluation system to
customize Drupal's built-in workflows in a very flexible way. Currently one
can use workflow-ng to log to drupal's logging system. As this fits for
logging system messages for administrators, it doesn't fit for logging
information for certain entites like content or users.
So this task is about a new small module "workflow_ng_log" - a content and
user oriented logging system. Logging messages can be created with the help
of a workflow-ng action. Views integration allows building customized
interfaces for message listings.
This makes a lot of things possible, e.g. logging content updates or even
user's activity. Each event supported by workflow-ng could be logged.

Your issue:
http://drupal.org/node/209212

First you need to install and familiarize yourself with Workflow-ng for
Drupal 5.6.
http://drupal.org/project/workflow_ng

The Token module may be useful as a reference since some of the functions
in workflow-ng depend on Token.
http://drupal.org/project/token
http://drupal.org/node/156288

The module should provide a token enabled action for logging messages for a
given entity. The action configuration should allow one to set
 * a message type (textfield)
 * a category (textfield)
 * the actual logging message (textarea)
Furthermore the content action takes an argument, which may be either
content or a user. You can do this by allowing both "nodes" and "users" for
the same argument ('#entity' => array('user', 'node')).
The module has to create two database tables for storing the user/content
log messages. It should also store the actual time. The necessary database
fields are (nid/uid, type, category, message, time).

You need NOT do the views integration. The scope of this task is only to
create the module without the views integration. If this task is done,
another task for adding the views integration will be created.

Try to share as much code as possible for both cases (user log / content
log). Add the module to workflow-ng. Create a patch for workflow-ng 2.x as
currently new features are added in 2.x and post it here:
http://drupal.org/node/209212. Your task is completed, when the patch is
set to RTBC.

contact: fago (http://drupal.org/user/16747)

Original issue reported on code.google.com by nup...@gmail.com on 12 Jan 2008 at 3:52

GoogleCodeExporter commented 9 years ago
I claim this task.

Original comment by cor...@gmail.com on 18 Jan 2008 at 7:49

GoogleCodeExporter commented 9 years ago
Ok corsix, it's yours.  Remember that you only have a few more days to claim 
another
task after this one, if that's your plan.

Original comment by acli...@gmail.com on 18 Jan 2008 at 12:07

GoogleCodeExporter commented 9 years ago
Indeed, it is. The d.o issue is also marked for review.

Original comment by cor...@gmail.com on 18 Jan 2008 at 4:33

GoogleCodeExporter commented 9 years ago

Original comment by acli...@gmail.com on 18 Jan 2008 at 4:45

GoogleCodeExporter commented 9 years ago
Mirroring final patch here.

Original comment by cor...@gmail.com on 18 Jan 2008 at 7:12

Attachments:

GoogleCodeExporter commented 9 years ago
Break out the blindfold!  Let's see you finish another task in under 12 hours.

Nice work.

Original comment by acli...@gmail.com on 18 Jan 2008 at 7:18

GoogleCodeExporter commented 9 years ago

Original comment by acli...@gmail.com on 21 Jan 2008 at 3:52