bug_tracker::search::patch::datasource (private)
bug_tracker::search::patch::datasource patch_id
Defined in packages/bug-tracker/tcl/bug-search-procs.tcl
returns a datasource for the search package this is the content that will be indexed by the full text search engine.
- Parameters:
- patch_id (required)
- Author:
- Jeff Davis davis@xarg.net
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: db_1row patch { select bt_patches.patch_id, bt_patches.patch_number, bt_patches.project_id, bt_patches.component_id, bt_patches.summary, bt_patches.content, bt_patches.generated_from_version, bt_patches.apply_to_version, bt_patches.applied_to_version, bt_patches.status, bt_components.component_name, acs_objects.creation_user as submitter_user_id, submitter.first_names as submitter_first_names, submitter.last_name as submitter_last_name, submitter.email as submitter_email, acs_objects.creation_date, to_char(acs_objects.creation_date, 'YYYY-MM-DD HH24:MI:SS') as creation_date_pretty, to_char(now(), 'YYYY-MM-DD HH24:MI:SS') as now_pretty from bt_patches, acs_objects, cc_users submitter, bt_components where bt_patches.patch_id = :patch_id and bt_patches.patch_id = acs_objects.object_id and bt_patches.component_id = bt_components.component_id and submitter.user_id = acs_objects.creation_user } -column_array patch set title "Patch $patch(patch_number) - $patch(summary) \[$patch(component_name)\]" set content "Patch $patch(patch_number) - $patch(summary) \[$patch(component_name)\] submitted by $patch(submitter_first_names) $patch(submitter_last_name) $patch(submitter_email) Created $patch(creation_date_pretty) Applies to $patch(generated_from_version) - $patch(apply_to_version) Status $patch(status) " # Description/Actions/History db_foreach actions { select bt_patch_actions.action_id, bt_patch_actions.action, bt_patch_actions.actor as actor_user_id, actor.first_names as actor_first_names, actor.last_name as actor_last_name, actor.email as actor_email, bt_patch_actions.action_date, to_char(bt_patch_actions.action_date, 'YYYY-MM-DD HH24:MI:SS') as action_date_pretty, bt_patch_actions.comment_text, bt_patch_actions.comment_format from bt_patch_actions, cc_users actor where bt_patch_actions.patch_id = :patch_id and actor.user_id = bt_patch_actions.actor order by action_date } { append content "$action_date_pretty [bug_tracker::patch_action_pretty $action] by $actor_first_names $actor_last_name [bug_tracker::bug_convert_comment_to_text -comment $comment_text -format $comment_format]\n" } append content "PATCH CONTENT:\n\n$patch(content)\n" return [list object_id $patch_id title $title content $content keywords $patch(component_name) storage_type text mime text/plain ]XQL Not present: Generic, PostgreSQL, Oracle