]> git.ipfire.org Git - thirdparty/bugzilla.git/commit
Bug 1471044 - Allow some model classes to have dynamic column names with class metho...
authorDylan William Hardison <dylan@hardison.net>
Mon, 25 Jun 2018 21:28:13 +0000 (17:28 -0400)
committerGitHub <noreply@github.com>
Mon, 25 Jun 2018 21:28:13 +0000 (17:28 -0400)
commit7094db8e78304f4f76d48ba230f07fab5c9d0daf
treee9a0466731955c2b74e1ac1d1743e86e264b1b74
parente83b95790d29393e9711aedeccfd63353bbc3cde
Bug 1471044 - Allow some model classes to have dynamic column names  with class method DYNAMIC_COLUMNS

When working on bug 1253535 I kept encountering the fragility of our model system.

This fragility involves two things:

1) Extensions adding new columns to model objects
2) The use of those model objects in checksetup.

In particular, the SecureMail extension causes this problem because (at checksetup-time) we need to lookup certain Group objects.

Thus I propose to

1) allow model classes to take their list of columns from the informations schema (exposed via `bz_table_columns_real`)
2) Have Bugzilla::Group do this when being used in a commandline (e.g. checksetup) context.
Bugzilla/Group.pm
Bugzilla/Object.pm