Commit 6ae49b88 authored by drumm's avatar drumm
Browse files

Add listing of SAs credited to someone

parent 64c8c90e
......@@ -1886,7 +1886,7 @@ function drupalorg_user_views_default_views() {
$handler->display->display_options['fields']['nid']['group_type'] = 'count_distinct';
$handler->display->display_options['fields']['nid']['label'] = '';
$handler->display->display_options['fields']['nid']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['nid']['alter']['path'] = 'u/%1/issue-credits/[nid_1]';
$handler->display->display_options['fields']['nid']['alter']['path'] = 'u/%1/sa-credits';
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nid']['separator'] = '';
$handler->display->display_options['fields']['nid']['format_plural'] = TRUE;
......@@ -1929,6 +1929,174 @@ function drupalorg_user_views_default_views() {
$handler->display->display_options['filters']['status_1']['relationship'] = 'field_issue_credit_target_id';
$handler->display->display_options['filters']['status_1']['value'] = '1';
$handler->display->display_options['filters']['status_1']['group'] = 1;
/* Display: User SA credit page */
$handler = $view->new_display('page', 'User SA credit page', 'page_2');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['style_options']['grouping'] = array(
0 => array(
'field' => 'field_project_machine_name',
'rendered' => 0,
'rendered_strip' => 0,
),
);
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
$handler->display->display_options['style_options']['wrapper_class'] = '';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'title' => 'title',
'changed' => 'changed',
);
$handler->display->display_options['row_options']['separator'] = 'updated';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['header'] = FALSE;
/* Header: Global: Text area */
$handler->display->display_options['header']['area']['id'] = 'area';
$handler->display->display_options['header']['area']['table'] = 'views';
$handler->display->display_options['header']['area']['field'] = 'area';
$handler->display->display_options['header']['area']['content'] = '◀︎ [uid]';
$handler->display->display_options['header']['area']['format'] = '1';
$handler->display->display_options['header']['area']['tokenize'] = TRUE;
/* Header: Global: Result summary */
$handler->display->display_options['header']['result']['id'] = 'result';
$handler->display->display_options['header']['result']['table'] = 'views';
$handler->display->display_options['header']['result']['field'] = 'result';
$handler->display->display_options['defaults']['relationships'] = FALSE;
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['field_issue_credit_target_id']['id'] = 'field_issue_credit_target_id';
$handler->display->display_options['relationships']['field_issue_credit_target_id']['table'] = 'field_data_field_issue_credit';
$handler->display->display_options['relationships']['field_issue_credit_target_id']['field'] = 'field_issue_credit_target_id';
$handler->display->display_options['relationships']['field_issue_credit_target_id']['required'] = TRUE;
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['field_project_target_id']['id'] = 'field_project_target_id';
$handler->display->display_options['relationships']['field_project_target_id']['table'] = 'field_data_field_project';
$handler->display->display_options['relationships']['field_project_target_id']['field'] = 'field_project_target_id';
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: Updated date */
$handler->display->display_options['fields']['changed']['id'] = 'changed';
$handler->display->display_options['fields']['changed']['table'] = 'node';
$handler->display->display_options['fields']['changed']['field'] = 'changed';
$handler->display->display_options['fields']['changed']['label'] = '';
$handler->display->display_options['fields']['changed']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['changed']['date_format'] = 'today time ago';
$handler->display->display_options['fields']['changed']['second_date_format'] = 'medium';
/* Field: Comment: Author uid */
$handler->display->display_options['fields']['uid']['id'] = 'uid';
$handler->display->display_options['fields']['uid']['table'] = 'comment';
$handler->display->display_options['fields']['uid']['field'] = 'uid';
$handler->display->display_options['fields']['uid']['relationship'] = 'field_issue_credit_target_id';
$handler->display->display_options['fields']['uid']['label'] = '';
$handler->display->display_options['fields']['uid']['exclude'] = TRUE;
$handler->display->display_options['fields']['uid']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['uid']['alter']['text'] = 'Back to %1’s profile';
$handler->display->display_options['fields']['uid']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['uid']['alter']['path'] = 'user/[uid]';
$handler->display->display_options['fields']['uid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['uid']['link_to_user'] = FALSE;
/* Field: Content: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['relationship'] = 'field_project_target_id';
$handler->display->display_options['fields']['nid']['label'] = '';
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
/* Field: Content: Project subtitle */
$handler->display->display_options['fields']['drupalorg_project_subtitle']['id'] = 'drupalorg_project_subtitle';
$handler->display->display_options['fields']['drupalorg_project_subtitle']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['drupalorg_project_subtitle']['field'] = 'drupalorg_project_subtitle';
$handler->display->display_options['fields']['drupalorg_project_subtitle']['relationship'] = 'field_project_target_id';
$handler->display->display_options['fields']['drupalorg_project_subtitle']['label'] = '';
$handler->display->display_options['fields']['drupalorg_project_subtitle']['exclude'] = TRUE;
$handler->display->display_options['fields']['drupalorg_project_subtitle']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['drupalorg_project_subtitle']['alter']['text'] = '<small>[drupalorg_project_subtitle]</small>';
$handler->display->display_options['fields']['drupalorg_project_subtitle']['element_label_colon'] = FALSE;
/* Field: Content: Short name */
$handler->display->display_options['fields']['field_project_machine_name']['id'] = 'field_project_machine_name';
$handler->display->display_options['fields']['field_project_machine_name']['table'] = 'field_data_field_project_machine_name';
$handler->display->display_options['fields']['field_project_machine_name']['field'] = 'field_project_machine_name';
$handler->display->display_options['fields']['field_project_machine_name']['relationship'] = 'field_project_target_id';
$handler->display->display_options['fields']['field_project_machine_name']['label'] = '';
$handler->display->display_options['fields']['field_project_machine_name']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_project_machine_name']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['field_project_machine_name']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_project_machine_name']['alter']['path'] = 'node/[nid]';
$handler->display->display_options['fields']['field_project_machine_name']['alter']['suffix'] = ' [drupalorg_project_subtitle]';
$handler->display->display_options['fields']['field_project_machine_name']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_project_machine_name']['group_columns'] = array(
'value' => 'value',
);
$handler->display->display_options['defaults']['sorts'] = FALSE;
/* Sort criterion: Content: Short name (field_project_machine_name) */
$handler->display->display_options['sorts']['field_project_machine_name_value']['id'] = 'field_project_machine_name_value';
$handler->display->display_options['sorts']['field_project_machine_name_value']['table'] = 'field_data_field_project_machine_name';
$handler->display->display_options['sorts']['field_project_machine_name_value']['field'] = 'field_project_machine_name_value';
$handler->display->display_options['sorts']['field_project_machine_name_value']['relationship'] = 'field_project_target_id';
/* Sort criterion: MAX(Content: Last status change (field_issue_last_status_change)) */
$handler->display->display_options['sorts']['field_issue_last_status_change_value']['id'] = 'field_issue_last_status_change_value';
$handler->display->display_options['sorts']['field_issue_last_status_change_value']['table'] = 'field_data_field_issue_last_status_change';
$handler->display->display_options['sorts']['field_issue_last_status_change_value']['field'] = 'field_issue_last_status_change_value';
$handler->display->display_options['sorts']['field_issue_last_status_change_value']['group_type'] = 'max';
$handler->display->display_options['sorts']['field_issue_last_status_change_value']['order'] = 'DESC';
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Comment: Author uid */
$handler->display->display_options['arguments']['uid']['id'] = 'uid';
$handler->display->display_options['arguments']['uid']['table'] = 'comment';
$handler->display->display_options['arguments']['uid']['field'] = 'uid';
$handler->display->display_options['arguments']['uid']['relationship'] = 'field_issue_credit_target_id';
$handler->display->display_options['arguments']['uid']['default_action'] = 'not found';
$handler->display->display_options['arguments']['uid']['exception']['value'] = '';
$handler->display->display_options['arguments']['uid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['uid']['specify_validation'] = TRUE;
$handler->display->display_options['arguments']['uid']['validate']['type'] = 'user';
$handler->display->display_options['arguments']['uid']['validate_options']['type'] = 'name';
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'sa' => 'sa',
);
$handler->display->display_options['filters']['type']['group'] = 1;
/* Filter criterion: Comment: Approved */
$handler->display->display_options['filters']['status_1']['id'] = 'status_1';
$handler->display->display_options['filters']['status_1']['table'] = 'comment';
$handler->display->display_options['filters']['status_1']['field'] = 'status';
$handler->display->display_options['filters']['status_1']['relationship'] = 'field_issue_credit_target_id';
$handler->display->display_options['filters']['status_1']['value'] = '1';
$handler->display->display_options['filters']['status_1']['group'] = 1;
/* Filter criterion: Content: Status (field_issue_status) */
$handler->display->display_options['filters']['field_issue_status_value']['id'] = 'field_issue_status_value';
$handler->display->display_options['filters']['field_issue_status_value']['table'] = 'field_data_field_issue_status';
$handler->display->display_options['filters']['field_issue_status_value']['field'] = 'field_issue_status_value';
$handler->display->display_options['filters']['field_issue_status_value']['value'] = array(
2 => '2',
7 => '7',
);
$handler->display->display_options['filters']['field_issue_status_value']['group'] = 1;
$handler->display->display_options['path'] = 'u/%/sa-credits';
$translatables['issue_credit'] = array(
t('Master'),
t('more'),
......@@ -1974,6 +2142,7 @@ function drupalorg_user_views_default_views() {
t('Organization sa credit page'),
t('Security advisories credited to %1'),
t('User SA'),
t('User SA credit page'),
);
$export['issue_credit'] = $view;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment