Core update + config for auth user being able to see own cases & debriefs

This commit is contained in:
2022-01-20 14:54:38 +00:00
parent 315ea3d580
commit 673aa6bd8d
21 changed files with 2090 additions and 2089 deletions

View File

@ -7,7 +7,8 @@ dependencies:
- field.storage.oc_case.field_total_fee
- opencase_cases.oc_case_type.project
- system.menu.opencase
- user.role.authenticated
- user.role.administrator
- user.role.gno_admin_user
module:
- datetime
- opencase_cases
@ -21,59 +22,12 @@ base_table: oc_case_field_data
base_field: id
display:
default:
display_plugin: default
id: default
display_title: Master
display_plugin: default
position: 0
display_options:
access:
type: role
options:
role:
authenticated: authenticated
cache:
type: tag
options: { }
query:
type: views_query
options:
disable_sql_rewrite: false
distinct: false
replica: false
query_comment: ''
query_tags: { }
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
pager:
type: mini
options:
items_per_page: 50
offset: 0
id: 0
total_pages: null
tags:
previous:
next:
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
style:
type: table
row:
type: fields
title: Projects
fields:
name:
id: name
@ -82,6 +36,9 @@ display:
relationship: none
group_type: group
admin_label: ''
entity_type: null
entity_field: name
plugin_id: field
label: Title
exclude: false
alter:
@ -137,9 +94,6 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: null
entity_field: name
plugin_id: field
client:
id: client
table: oc_case_field_data
@ -147,6 +101,9 @@ display:
relationship: none
group_type: group
admin_label: ''
entity_type: oc_case
entity_field: client
plugin_id: field
label: Client
exclude: false
alter:
@ -202,9 +159,6 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: oc_case
entity_field: client
plugin_id: field
field_contract_signed_date:
id: field_contract_signed_date
table: oc_case__field_contract_signed_date
@ -212,6 +166,7 @@ display:
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: 'Contract signed date'
exclude: false
alter:
@ -268,7 +223,6 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
field_total_fee:
id: field_total_fee
table: oc_case__field_total_fee
@ -276,6 +230,7 @@ display:
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: 'Total fee'
exclude: false
alter:
@ -321,9 +276,9 @@ display:
type: number_decimal
settings:
thousand_separator: ''
prefix_suffix: true
decimal_separator: .
scale: 2
prefix_suffix: true
group_column: value
group_columns: { }
group_rows: true
@ -334,27 +289,74 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
pager:
type: mini
options:
offset: 0
items_per_page: 50
total_pages: null
id: 0
tags:
next:
previous:
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
access:
type: role
options:
role:
administrator: administrator
gno_admin_user: gno_admin_user
cache:
type: tag
options: { }
empty: { }
sorts: { }
arguments: { }
filters:
type:
id: type
table: oc_case_field_data
field: type
value:
project: project
entity_type: oc_case
entity_field: type
plugin_id: bundle
value:
project: project
expose:
operator_limit_selection: false
operator_list: { }
sorts: { }
title: Projects
style:
type: table
row:
type: fields
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
replica: false
query_tags: { }
relationships: { }
header: { }
footer: { }
empty: { }
relationships: { }
arguments: { }
display_extenders: { }
cache_metadata:
max-age: -1
@ -367,67 +369,11 @@ display:
- 'config:field.storage.oc_case.field_contract_signed_date'
- 'config:field.storage.oc_case.field_total_fee'
block_1:
display_plugin: block
id: block_1
display_title: Block
display_plugin: block
position: 2
display_options:
display_extenders: { }
arguments:
client:
id: client
table: oc_case_field_data
field: client
relationship: none
group_type: group
admin_label: ''
default_action: default
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: raw
default_argument_options:
index: 2
use_alias: false
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
not: false
entity_type: oc_case
entity_field: client
plugin_id: numeric
defaults:
arguments: false
footer: false
fields: false
footer:
area_text_custom:
id: area_text_custom
table: views
field: area_text_custom
relationship: none
group_type: group
admin_label: ''
empty: true
tokenize: true
content: '<a class="button" href="/opencase/oc_case/add/project?client_id={{ raw_arguments.client }}&destination=/opencase/oc_organisation/{{ raw_arguments.client }}">Add project</a><br /><br />'
plugin_id: text_custom
fields:
name:
id: name
@ -436,6 +382,9 @@ display:
relationship: none
group_type: group
admin_label: ''
entity_type: null
entity_field: name
plugin_id: field
label: Title
exclude: false
alter:
@ -491,9 +440,6 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: null
entity_field: name
plugin_id: field
field_contract_signed_date:
id: field_contract_signed_date
table: oc_case__field_contract_signed_date
@ -501,6 +447,7 @@ display:
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: 'Contract signed date'
exclude: false
alter:
@ -557,7 +504,6 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
field_total_fee:
id: field_total_fee
table: oc_case__field_total_fee
@ -565,6 +511,7 @@ display:
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: 'Total fee'
exclude: false
alter:
@ -610,9 +557,9 @@ display:
type: number_decimal
settings:
thousand_separator: ''
prefix_suffix: true
decimal_separator: .
scale: 2
prefix_suffix: true
group_column: value
group_columns: { }
group_rows: true
@ -623,7 +570,62 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
arguments:
client:
id: client
table: oc_case_field_data
field: client
relationship: none
group_type: group
admin_label: ''
entity_type: oc_case
entity_field: client
plugin_id: numeric
default_action: default
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: raw
default_argument_options:
index: 2
use_alias: false
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
not: false
defaults:
fields: false
arguments: false
footer: false
footer:
area_text_custom:
id: area_text_custom
table: views
field: area_text_custom
relationship: none
group_type: group
admin_label: ''
plugin_id: text_custom
empty: true
content: '<a class="button" href="/opencase/oc_case/add/project?client_id={{ raw_arguments.client }}&destination=/opencase/oc_organisation/{{ raw_arguments.client }}">Add project</a><br /><br />'
tokenize: true
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
@ -636,12 +638,11 @@ display:
- 'config:field.storage.oc_case.field_contract_signed_date'
- 'config:field.storage.oc_case.field_total_fee'
entity_reference_1:
display_plugin: entity_reference
id: entity_reference_1
display_title: 'Entity Reference'
display_plugin: entity_reference
position: 3
display_options:
display_extenders: { }
fields:
name:
id: name
@ -650,6 +651,9 @@ display:
relationship: none
group_type: group
admin_label: ''
entity_type: null
entity_field: name
plugin_id: field
label: ''
exclude: false
alter:
@ -705,28 +709,16 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: null
entity_field: name
plugin_id: field
defaults:
fields: false
filters: false
filter_groups: false
style:
type: entity_reference
options:
search_fields:
name: name
filters:
type:
id: type
table: oc_case_field_data
field: type
value:
project: project
entity_type: oc_case
entity_field: type
plugin_id: bundle
value:
project: project
expose:
operator_limit_selection: false
operator_list: { }
@ -737,6 +729,9 @@ display:
relationship: none
group_type: group
admin_label: ''
entity_type: oc_case
entity_field: status
plugin_id: boolean
operator: '='
value: '1'
group: 1
@ -767,13 +762,20 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
entity_type: oc_case
entity_field: status
plugin_id: boolean
filter_groups:
operator: AND
groups:
1: AND
style:
type: entity_reference
options:
search_fields:
name: name
defaults:
fields: false
filters: false
filter_groups: false
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
@ -782,25 +784,25 @@ display:
- user.roles
tags: { }
page_1:
display_plugin: page
id: page_1
display_title: Page
display_plugin: page
position: 1
display_options:
display_extenders: { }
path: opencase/projects
footer: { }
defaults:
footer: false
footer: { }
display_extenders: { }
path: opencase/projects
menu:
type: normal
title: Projects
description: ''
expanded: false
parent: opencase.see_all
weight: 10
context: '0'
expanded: false
menu_name: opencase
parent: opencase.see_all
context: '0'
cache_metadata:
max-age: -1
contexts: