mantisbt:alternative_custom_field_display_requirements
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
mantisbt:alternative_custom_field_display_requirements [2008/02/04 17:57] – daryn | mantisbt:alternative_custom_field_display_requirements [2008/02/04 18:13] – daryn | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Custom Rules Requirements (Alternative to Custom Field Display Requirements) ====== | ||
- | * **Author**: Daryn Warriner (daryn) | ||
- | * **Status**: Work in progress, Draft | ||
- | * **Associated Issue**: [[http:// | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ===== Introduction ===== | ||
- | |||
- | ==== Current Approach ==== | ||
- | Mantis allows for creation of custom field definitions for bugs. Currently, Mantis allows users to configure when each custom field is displayed and when it is required. The current implementation allows the user to specify the display/ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ==== Proposed Approach ==== | ||
- | This feature will allow advanced configuration of custom fields by providing the ability to define complex custom rules using not only any status but also any standard field in scope, any custom field, or any configuration option. | ||
- | |||
- | The feature also allows administrators to set custom permission levels depending on the page the field is on. | ||
- | |||
- | For example, management wants a custom field to be required when opening a bug. However, once the bug is opened, | ||
- | that field should only be editable by a manager. | ||
- | bug_report_advanced page is that all users have write permissions to the field and the field is required. | ||
- | for the field on all other update pages is all users have read permissions but only management users have write permissions. | ||
- | |||
- | Standard permissions rules should be applied as the default. | ||
- | |||
- | ===== Implementation Notes ===== | ||
- | |||
- | * Some notes | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ==== Database Changes ==== | ||
- | |||
- | * Create Table mantis_config_actions_table | ||
- | * id int(11) primary key, with auto_increment flag | ||
- | * action varchar(32) NOT NULL unique key | ||
- | * description varchar(256) | ||
- | * Create Table mantis_config_pages_table | ||
- | * id int(11) primary key, with auto_increment flag | ||
- | * name varchar(30) NOT NULL | ||
- | * page_type enum(' | ||
- | * access_type enum(' | ||
- | * UNIQUE KEY `name` (`name`, | ||
- | * Create Table mantis_field_rule_config_table | ||
- | * id int(11) | ||
- | * config_type enum(' | ||
- | * config_object_type enum(' | ||
- | * field_name varchar(75) NOT NULL, | ||
- | * field_type enum(' | ||
- | * Create Table mantis_field_rule_definition_table | ||
- | * id int(11) | ||
- | * rule_config_id int(11) NOT NULL, | ||
- | * comparison_operator enum(' | ||
- | * comparison_value varchar(75) NOT NULL, | ||
- | * Create Table mantis_field_rule_link_table | ||
- | * id int(11) | ||
- | * page_id int(11) NOT NULL, | ||
- | * field_id int(11) NOT NULL default ' | ||
- | * field_name varchar(64) NOT NULL, | ||
- | * access_level_r smallint(6) NOT NULL, | ||
- | * access_level_rw smallint(6) NOT NULL, | ||
- | * UNIQUE KEY `page_id` (`page_id`, | ||
- | * Create Table mantis_field_ruleset_action_table | ||
- | * rule_link_id int(11) NOT NULL | ||
- | * action_id int(11) NOT NULL | ||
- | * ruleset_id int(11) NOT NULL default ' | ||
- | * UNIQUE KEY `rule_link_id` (`rule_link_id`, | ||
- | * Create Table mantis_field_ruleset_operators_table | ||
- | * id int(11) | ||
- | * operator enum('&&',' | ||
- | * Create Table mantis_field_ruleset_table | ||
- | * ruleset_id` int(11) NOT NULL | ||
- | * id int(11) NOT NULL COMMENT | ||
- | * type enum(' | ||
- | * PRIMARY KEY (`ruleset_id`, | ||
- | |||
- | ==== Configuration ==== | ||
- | |||
- | * '' | ||
- | |||
- | |||
- | ==== Implementation Log ==== | ||
- | |||
- | |||
- | ===== Other Changes ===== | ||
- | |||
- | |||
- | ===== Feedback ===== | ||
- | * Please provide feedback |
mantisbt/alternative_custom_field_display_requirements.txt · Last modified: 2008/10/29 04:25 by 127.0.0.1