Custom fields introduction

Sean McAfee etzwane at schwag.org
Thu Dec 23 22:51:55 UTC 2004


Hi, folks--

I've attached a tar file with some materials that give an introduction to my
implementation of custom fields.  These files are enclosed:

simplified-schema.sql
duplicate-data.sql
Bugzilla/CustomFields.pm
Bugzilla/Query.pm

To create the schema, feed simplified-schema.sql to the mysql client.

duplicate-data.sql is a SQL script that creates twenty custom fields which
are duplicates of standard bug attributes.  It also copies the data from
those standard attributes into the new custom fields.  The fields have the
same names as the columns of the BUGS table, but with "cf_" prepended.
(For example, "op_sys" becomes "cf_op_sys".)

Bugzilla::CustomFields is a module that provides an interface to custom
fields.  It's strictly read-only; I've removed all the code from my
production version except that which implements the basic
get_custom_fields() function.

Bugzilla::Query is a module for searching for bugs.

Both modules are thoroughly documented with POD.  Use "perldoc" or your
favorite editor to read it.

If you have an interest in custom fields, kindly take some time to evaluate
these files and let me know your thoughts.  Thanks.


--Sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: customfields.tar.gz
Type: application/octet-stream
Size: 22233 bytes
Desc: not available
URL: <http://lists.bugzilla.org/pipermail/developers/attachments/20041223/e8e9692b/attachment.obj>


More information about the developers mailing list