• Publicity: Public Only All

bug-procs.tcl

Bug Tracker Bug Library Procedures that deal with a single bug

Location:
packages/bug-tracker/tcl/bug-procs.tcl
Created:
2003-01-10
Author:
Lars Pind
CVS Identification:
$Id$

Procedures in this file

Detailed information

bug_tracker::bug::cache_flush (public)

 bug_tracker::bug::cache_flush -bug_id bug_id

Flush all list builder instances and other appropriate things for the given bug-tracker package instance.

Switches:
-bug_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::delete bug_tracker::bug::delete (public) bug_tracker::bug::cache_flush bug_tracker::bug::cache_flush bug_tracker::bug::delete->bug_tracker::bug::cache_flush bug_tracker::bug::insert bug_tracker::bug::insert (public) bug_tracker::bug::insert->bug_tracker::bug::cache_flush bug_tracker::bug::update bug_tracker::bug::update (public) bug_tracker::bug::update->bug_tracker::bug::cache_flush db_string db_string (public) bug_tracker::bug::cache_flush->db_string template::cache template::cache (public) bug_tracker::bug::cache_flush->template::cache util_memoize_flush_regexp util_memoize_flush_regexp (public) bug_tracker::bug::cache_flush->util_memoize_flush_regexp

Testcases:
No testcase defined.

bug_tracker::bug::delete (public)

 bug_tracker::bug::delete bug_id

Delete a Bug Tracker bug. This should only ever be run when un-instantiating a project!

Parameters:
bug_id (required)
Author:
Mark Aufflick

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::project_delete bug_tracker::project_delete (public) bug_tracker::bug::delete bug_tracker::bug::delete bug_tracker::project_delete->bug_tracker::bug::delete bug_tracker::bug::cache_flush bug_tracker::bug::cache_flush (public) bug_tracker::bug::delete->bug_tracker::bug::cache_flush content::item::delete content::item::delete (public) bug_tracker::bug::delete->content::item::delete db_exec_plsql db_exec_plsql (public) bug_tracker::bug::delete->db_exec_plsql db_string db_string (public) bug_tracker::bug::delete->db_string

Testcases:
No testcase defined.

bug_tracker::bug::edit (public)

 bug_tracker::bug::edit -bug_id bug_id \
    -enabled_action_id enabled_action_id [ -user_id user_id ] \
    [ -creation_ip creation_ip ] -description description \
    -desc_format desc_format -array array [ -entry_id entry_id ]

Edit a bug, then send out notifications, etc. Calls bug_tracker::bug::update.

Switches:
-bug_id (required)
-enabled_action_id (required)
-user_id (optional)
-creation_ip (optional)
-description (required)
-desc_format (required)
-array (required)
-entry_id (optional)
Returns:
bug_id The same bug_id passed in, just for convenience.
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::workflow_create bug_tracker::bug::workflow_create (private) bug_tracker::bug::edit bug_tracker::bug::edit bug_tracker::bug::workflow_create->bug_tracker::bug::edit bug_tracker::scheduled::close_bugs bug_tracker::scheduled::close_bugs (public) bug_tracker::scheduled::close_bugs->bug_tracker::bug::edit packages/acs-tcl/lib/page-error.tcl packages/acs-tcl/ lib/page-error.tcl packages/acs-tcl/lib/page-error.tcl->bug_tracker::bug::edit packages/bug-tracker/www/bug.tcl packages/bug-tracker/ www/bug.tcl packages/bug-tracker/www/bug.tcl->bug_tracker::bug::edit packages/bug-tracker/www/bulk-update-op.tcl packages/bug-tracker/ www/bulk-update-op.tcl packages/bug-tracker/www/bulk-update-op.tcl->bug_tracker::bug::edit bug_tracker::bug::workflow_short_name bug_tracker::bug::workflow_short_name (public) bug_tracker::bug::edit->bug_tracker::bug::workflow_short_name bug_tracker::category_types bug_tracker::category_types (public) bug_tracker::bug::edit->bug_tracker::category_types content::keyword::item_assign content::keyword::item_assign (public) bug_tracker::bug::edit->content::keyword::item_assign db_transaction db_transaction (public) bug_tracker::bug::edit->db_transaction workflow::case::action::execute workflow::case::action::execute (public) bug_tracker::bug::edit->workflow::case::action::execute

Testcases:
No testcase defined.

bug_tracker::bug::get (public)

 bug_tracker::bug::get -bug_id bug_id -array array \
    [ -enabled_action_id enabled_action_id ]

Get the fields for a bug

Switches:
-bug_id (required)
-array (required)
-enabled_action_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::notification_info::get_notification_info bug_tracker::bug::notification_info::get_notification_info (private) bug_tracker::bug::get bug_tracker::bug::get bug_tracker::bug::notification_info::get_notification_info->bug_tracker::bug::get bug_tracker::bug::update bug_tracker::bug::update (public) bug_tracker::bug::update->bug_tracker::bug::get bug_tracker::search::bug::datasource bug_tracker::search::bug::datasource (private) bug_tracker::search::bug::datasource->bug_tracker::bug::get bug_tracker::security_violation bug_tracker::security_violation (public) bug_tracker::security_violation->bug_tracker::bug::get packages/acs-tcl/lib/page-error.tcl packages/acs-tcl/ lib/page-error.tcl packages/acs-tcl/lib/page-error.tcl->bug_tracker::bug::get bug_tracker::bug::workflow_short_name bug_tracker::bug::workflow_short_name (public) bug_tracker::bug::get->bug_tracker::bug::workflow_short_name bug_tracker::component_get_name bug_tracker::component_get_name (public) bug_tracker::bug::get->bug_tracker::component_get_name bug_tracker::resolution_pretty bug_tracker::resolution_pretty (public) bug_tracker::bug::get->bug_tracker::resolution_pretty bug_tracker::version_get_name bug_tracker::version_get_name (public) bug_tracker::bug::get->bug_tracker::version_get_name db_1row db_1row (public) bug_tracker::bug::get->db_1row

Testcases:
No testcase defined.

bug_tracker::bug::get_bug_numbers (public)

 bug_tracker::bug::get_bug_numbers

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bug-tracker/www/bug.tcl packages/bug-tracker/ www/bug.tcl bug_tracker::bug::get_bug_numbers bug_tracker::bug::get_bug_numbers packages/bug-tracker/www/bug.tcl->bug_tracker::bug::get_bug_numbers bug_tracker::bug::get_list bug_tracker::bug::get_list (public) bug_tracker::bug::get_bug_numbers->bug_tracker::bug::get_list bug_tracker::bug::get_multirow bug_tracker::bug::get_multirow (public) bug_tracker::bug::get_bug_numbers->bug_tracker::bug::get_multirow template::multirow template::multirow (public) bug_tracker::bug::get_bug_numbers->template::multirow

Testcases:
No testcase defined.

bug_tracker::bug::get_instance_workflow_id (public)

 bug_tracker::bug::get_instance_workflow_id [ -package_id package_id ]

Return the workflow_id for the package (not instance) workflow

Switches:
-package_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::get_list bug_tracker::bug::get_list (public) bug_tracker::bug::get_instance_workflow_id bug_tracker::bug::get_instance_workflow_id bug_tracker::bug::get_list->bug_tracker::bug::get_instance_workflow_id bug_tracker::bug::get_multirow bug_tracker::bug::get_multirow (public) bug_tracker::bug::get_multirow->bug_tracker::bug::get_instance_workflow_id bug_tracker::bug::instance_workflow_delete bug_tracker::bug::instance_workflow_delete (private) bug_tracker::bug::instance_workflow_delete->bug_tracker::bug::get_instance_workflow_id bug_tracker::get_export_variables bug_tracker::get_export_variables (public) bug_tracker::get_export_variables->bug_tracker::bug::get_instance_workflow_id bug_tracker::get_mapped_bugs bug_tracker::get_mapped_bugs (public) bug_tracker::get_mapped_bugs->bug_tracker::bug::get_instance_workflow_id ad_conn ad_conn (public) bug_tracker::bug::get_instance_workflow_id->ad_conn db_string db_string (public) bug_tracker::bug::get_instance_workflow_id->db_string

Testcases:
No testcase defined.

bug_tracker::bug::get_list (public)

 bug_tracker::bug::get_list [ -ulevel ulevel ] \
    [ -package_id package_id ] [ -user_id user_id ] \
    [ -no_bulk_actions ]
Switches:
-ulevel (optional, defaults to "1")
-package_id (optional)
-user_id (optional)
-no_bulk_actions (optional, boolean)

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::get_bug_numbers bug_tracker::bug::get_bug_numbers (public) bug_tracker::bug::get_list bug_tracker::bug::get_list bug_tracker::bug::get_bug_numbers->bug_tracker::bug::get_list packages/bug-tracker/www/core.tcl packages/bug-tracker/ www/core.tcl packages/bug-tracker/www/core.tcl->bug_tracker::bug::get_list packages/bug-tracker/www/index.tcl packages/bug-tracker/ www/index.tcl packages/bug-tracker/www/index.tcl->bug_tracker::bug::get_list _ _ (public) bug_tracker::bug::get_list->_ ad_conn ad_conn (public) bug_tracker::bug::get_list->ad_conn ad_return_url ad_return_url (public) bug_tracker::bug::get_list->ad_return_url bug_tracker::assignee_get_filter_data bug_tracker::assignee_get_filter_data (public) bug_tracker::bug::get_list->bug_tracker::assignee_get_filter_data bug_tracker::bug::get_instance_workflow_id bug_tracker::bug::get_instance_workflow_id (public) bug_tracker::bug::get_list->bug_tracker::bug::get_instance_workflow_id

Testcases:
No testcase defined.

bug_tracker::bug::get_multirow (public)

 bug_tracker::bug::get_multirow [ -package_id package_id ] \
    [ -user_id user_id ] [ -truncate_len truncate_len ] \
    [ -query_name query_name ]
Switches:
-package_id (optional)
-user_id (optional)
-truncate_len (optional)
-query_name (optional, defaults to "bugs")

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::get_bug_numbers bug_tracker::bug::get_bug_numbers (public) bug_tracker::bug::get_multirow bug_tracker::bug::get_multirow bug_tracker::bug::get_bug_numbers->bug_tracker::bug::get_multirow packages/bug-tracker/www/core.tcl packages/bug-tracker/ www/core.tcl packages/bug-tracker/www/core.tcl->bug_tracker::bug::get_multirow packages/bug-tracker/www/index.tcl packages/bug-tracker/ www/index.tcl packages/bug-tracker/www/index.tcl->bug_tracker::bug::get_multirow acs_community_member_url acs_community_member_url (public) bug_tracker::bug::get_multirow->acs_community_member_url ad_conn ad_conn (public) bug_tracker::bug::get_multirow->ad_conn ad_string_truncate ad_string_truncate (public) bug_tracker::bug::get_multirow->ad_string_truncate bug_tracker::bug::get_instance_workflow_id bug_tracker::bug::get_instance_workflow_id (public) bug_tracker::bug::get_multirow->bug_tracker::bug::get_instance_workflow_id bug_tracker::bug::get_query bug_tracker::bug::get_query (public) bug_tracker::bug::get_multirow->bug_tracker::bug::get_query

Testcases:
No testcase defined.

bug_tracker::bug::get_package_workflow_id (public)

 bug_tracker::bug::get_package_workflow_id

Return the workflow_id for the package (not instance) workflow

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::instance_workflow_create bug_tracker::bug::instance_workflow_create (private) bug_tracker::bug::get_package_workflow_id bug_tracker::bug::get_package_workflow_id bug_tracker::bug::instance_workflow_create->bug_tracker::bug::get_package_workflow_id bug_tracker::bug::workflow_delete bug_tracker::bug::workflow_delete (private) bug_tracker::bug::workflow_delete->bug_tracker::bug::get_package_workflow_id bug_tracker::bug::workflow_short_name bug_tracker::bug::workflow_short_name (public) bug_tracker::bug::get_package_workflow_id->bug_tracker::bug::workflow_short_name workflow::get_id workflow::get_id (public) bug_tracker::bug::get_package_workflow_id->workflow::get_id

Testcases:
No testcase defined.

bug_tracker::bug::get_query (public)

 bug_tracker::bug::get_query [ -query_name query_name ]
Switches:
-query_name (optional, defaults to "bugs")
Returns:
The query

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::get_list bug_tracker::bug::get_list (public) bug_tracker::bug::get_query bug_tracker::bug::get_query bug_tracker::bug::get_list->bug_tracker::bug::get_query bug_tracker::bug::get_multirow bug_tracker::bug::get_multirow (public) bug_tracker::bug::get_multirow->bug_tracker::bug::get_query ad_conn ad_conn (public) bug_tracker::bug::get_query->ad_conn db_map db_map (public) bug_tracker::bug::get_query->db_map template::adp_level template::adp_level (public) bug_tracker::bug::get_query->template::adp_level

Testcases:
No testcase defined.

bug_tracker::bug::get_watch_link (public)

 bug_tracker::bug::get_watch_link -bug_id bug_id

Get link for watching a bug.

Switches:
-bug_id (required)
Returns:
3-tuple of url, label and title.

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bug-tracker/www/bug.tcl packages/bug-tracker/ www/bug.tcl bug_tracker::bug::get_watch_link bug_tracker::bug::get_watch_link packages/bug-tracker/www/bug.tcl->bug_tracker::bug::get_watch_link _ _ (public) bug_tracker::bug::get_watch_link->_ ad_conn ad_conn (public) bug_tracker::bug::get_watch_link->ad_conn ad_return_url ad_return_url (public) bug_tracker::bug::get_watch_link->ad_return_url bug_tracker::conn bug_tracker::conn (public) bug_tracker::bug::get_watch_link->bug_tracker::conn notification::display::subscribe_url notification::display::subscribe_url (public) bug_tracker::bug::get_watch_link->notification::display::subscribe_url

Testcases:
No testcase defined.

bug_tracker::bug::insert (public)

 bug_tracker::bug::insert -bug_id bug_id -package_id package_id \
    -component_id component_id -found_in_version found_in_version \
    -summary summary -description description -desc_format desc_format \
    [ -user_agent user_agent ] [ -user_id user_id ] \
    [ -ip_address ip_address ] [ -item_subtype item_subtype ] \
    [ -content_type content_type ] \
    [ -fix_for_version fix_for_version ] [ -assign_to assign_to ]

Inserts a new bug into the content repository. You probably don't want to run this yourself - to create a new bug, use bug_tracker::bug::new and let it do the hard work for you.

Switches:
-bug_id (required)
-package_id (required)
-component_id (required)
-found_in_version (required)
-summary (required)
-description (required)
-desc_format (required)
-user_agent (optional)
-user_id (optional)
-ip_address (optional)
-item_subtype (optional, defaults to "bt_bug")
-content_type (optional, defaults to "bt_bug_revision")
-fix_for_version (optional)
-assign_to (optional)
Returns:
bug_id The same bug_id passed in, just for convenience.
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::new bug_tracker::bug::new (public) bug_tracker::bug::insert bug_tracker::bug::insert bug_tracker::bug::new->bug_tracker::bug::insert ad_conn ad_conn (public) bug_tracker::bug::insert->ad_conn bug_tracker::bug::cache_flush bug_tracker::bug::cache_flush (public) bug_tracker::bug::insert->bug_tracker::bug::cache_flush db_string db_string (public) bug_tracker::bug::insert->db_string oacs_util::vars_to_ns_set oacs_util::vars_to_ns_set (public, deprecated) bug_tracker::bug::insert->oacs_util::vars_to_ns_set package_instantiate_object package_instantiate_object (public) bug_tracker::bug::insert->package_instantiate_object

Testcases:
No testcase defined.

bug_tracker::bug::new (public)

 bug_tracker::bug::new -bug_id bug_id -package_id package_id \
    -component_id component_id -found_in_version found_in_version \
    -summary summary -description description -desc_format desc_format \
    [ -user_agent user_agent ] [ -user_id user_id ] \
    [ -ip_address ip_address ] [ -item_subtype item_subtype ] \
    [ -content_type content_type ] [ -keyword_ids keyword_ids ] \
    [ -fix_for_version fix_for_version ] [ -assign_to assign_to ]

Create a new bug, then send out notifications, starts workflow, etc. Calls bug_tracker::bug::insert.

Switches:
-bug_id (required)
-package_id (required)
-component_id (required)
-found_in_version (required)
-summary (required)
-description (required)
-desc_format (required)
-user_agent (optional)
-user_id (optional)
-ip_address (optional)
-item_subtype (optional, defaults to "bt_bug")
-content_type (optional, defaults to "bt_bug_revision")
-keyword_ids (optional)
-fix_for_version (optional)
-assign_to (optional)
Returns:
bug_id The same bug_id passed in, just for convenience.
See Also:
  • bug_tracker::bug::insert.

Partial Call Graph (max 5 caller/called nodes):
%3 callback::acs_mail_lite::incoming_email::impl::bug-tracker callback::acs_mail_lite::incoming_email::impl::bug-tracker (private) bug_tracker::bug::new bug_tracker::bug::new callback::acs_mail_lite::incoming_email::impl::bug-tracker->bug_tracker::bug::new packages/acs-tcl/lib/page-error.tcl packages/acs-tcl/ lib/page-error.tcl packages/acs-tcl/lib/page-error.tcl->bug_tracker::bug::new packages/bug-tracker/www/bug-add.tcl packages/bug-tracker/ www/bug-add.tcl packages/bug-tracker/www/bug-add.tcl->bug_tracker::bug::new bug_tracker::access_policy bug_tracker::access_policy (public) bug_tracker::bug::new->bug_tracker::access_policy bug_tracker::bug::insert bug_tracker::bug::insert (public) bug_tracker::bug::new->bug_tracker::bug::insert bug_tracker::bug::workflow_short_name bug_tracker::bug::workflow_short_name (public) bug_tracker::bug::new->bug_tracker::bug::workflow_short_name bug_tracker::grant_direct_read_permission bug_tracker::grant_direct_read_permission (private) bug_tracker::bug::new->bug_tracker::grant_direct_read_permission content::keyword::item_assign content::keyword::item_assign (public) bug_tracker::bug::new->content::keyword::item_assign

Testcases:
No testcase defined.

bug_tracker::bug::object_type (public)

 bug_tracker::bug::object_type

Get the short name of the workflow for bugs

Partial Call Graph (max 5 caller/called nodes):
%3 AcsSc.workflow_action_sideeffect.getobjecttype.captureresolutioncode AcsSc.workflow_action_sideeffect.getobjecttype.captureresolutioncode (private) bug_tracker::bug::object_type bug_tracker::bug::object_type AcsSc.workflow_action_sideeffect.getobjecttype.captureresolutioncode->bug_tracker::bug::object_type AcsSc.workflow_activitylog_formattitle.getobjecttype.formatlogtitle AcsSc.workflow_activitylog_formattitle.getobjecttype.formatlogtitle (private) AcsSc.workflow_activitylog_formattitle.getobjecttype.formatlogtitle->bug_tracker::bug::object_type AcsSc.workflow_notificationinfo.getobjecttype.bugnotificationinfo AcsSc.workflow_notificationinfo.getobjecttype.bugnotificationinfo (private) AcsSc.workflow_notificationinfo.getobjecttype.bugnotificationinfo->bug_tracker::bug::object_type AcsSc.workflow_role_defaultassignees.getobjecttype.componentmaintainer AcsSc.workflow_role_defaultassignees.getobjecttype.componentmaintainer (private) AcsSc.workflow_role_defaultassignees.getobjecttype.componentmaintainer->bug_tracker::bug::object_type AcsSc.workflow_role_defaultassignees.getobjecttype.projectmaintainer AcsSc.workflow_role_defaultassignees.getobjecttype.projectmaintainer (private) AcsSc.workflow_role_defaultassignees.getobjecttype.projectmaintainer->bug_tracker::bug::object_type

Testcases:
No testcase defined.

bug_tracker::bug::update (public)

 bug_tracker::bug::update -bug_id bug_id [ -user_id user_id ] \
    [ -creation_ip creation_ip ] -array array

Update a bug in the DB. Usually, you'll want to use bug_tracker::bug::edit because that one sends out notifications, etc.

Switches:
-bug_id (required)
-user_id (optional)
-creation_ip (optional)
-array (required)
Returns:
bug_id The same bug_id passed in, just for convenience.
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 ad_conn ad_conn (public) bug_tracker::bug::cache_flush bug_tracker::bug::cache_flush (public) bug_tracker::bug::get bug_tracker::bug::get (public) db_exec_plsql db_exec_plsql (public) bug_tracker::bug::update bug_tracker::bug::update bug_tracker::bug::update->ad_conn bug_tracker::bug::update->bug_tracker::bug::cache_flush bug_tracker::bug::update->bug_tracker::bug::get bug_tracker::bug::update->db_exec_plsql

Testcases:
No testcase defined.

bug_tracker::bug::workflow_short_name (public)

 bug_tracker::bug::workflow_short_name

Get the short name of the workflow for bugs

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::edit bug_tracker::bug::edit (public) bug_tracker::bug::workflow_short_name bug_tracker::bug::workflow_short_name bug_tracker::bug::edit->bug_tracker::bug::workflow_short_name bug_tracker::bug::get bug_tracker::bug::get (public) bug_tracker::bug::get->bug_tracker::bug::workflow_short_name bug_tracker::bug::get_package_workflow_id bug_tracker::bug::get_package_workflow_id (public) bug_tracker::bug::get_package_workflow_id->bug_tracker::bug::workflow_short_name bug_tracker::bug::new bug_tracker::bug::new (public) bug_tracker::bug::new->bug_tracker::bug::workflow_short_name bug_tracker::scheduled::close_bugs bug_tracker::scheduled::close_bugs (public) bug_tracker::scheduled::close_bugs->bug_tracker::bug::workflow_short_name

Testcases:
No testcase defined.
[ show source ]