added user_history module

This commit is contained in:
Bachir Soussi Chiadmi 2022-09-23 10:19:39 +02:00
parent 895be04b6b
commit 7f0c254d9e
19 changed files with 3165 additions and 8 deletions

View File

@ -167,6 +167,7 @@
"drupal/url_to_video_filter": "^2.0", "drupal/url_to_video_filter": "^2.0",
"drupal/user_csv_import": "^2.0", "drupal/user_csv_import": "^2.0",
"drupal/user_email_verification": "^1.x-dev@dev", "drupal/user_email_verification": "^1.x-dev@dev",
"drupal/user_history": "^1.0",
"drupal/vde_drush": "^2.0", "drupal/vde_drush": "^2.0",
"drupal/views_conditional": "^1.x-dev", "drupal/views_conditional": "^1.x-dev",
"drupal/views_data_export": "^1.1", "drupal/views_data_export": "^1.1",

51
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "28136bda07374425cb204c254898f8ac", "content-hash": "2892c8ceeb10a15850316a83cb5709fb",
"packages": [ "packages": [
{ {
"name": "alchemy/zippy", "name": "alchemy/zippy",
@ -14321,6 +14321,55 @@
"source": "https://git.drupalcode.org/project/user_email_verification" "source": "https://git.drupalcode.org/project/user_email_verification"
} }
}, },
{
"name": "drupal/user_history",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/user_history.git",
"reference": "8.x-1.0"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/user_history-8.x-1.0.zip",
"reference": "8.x-1.0",
"shasum": "773049f4a4ccbc8a32f324c55c3f46f4c497c71e"
},
"require": {
"drupal/core": "^8.8 || ^9 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-1.0",
"datestamp": "1662466152",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "gabrielu",
"homepage": "https://www.drupal.org/user/279352"
},
{
"name": "jlscott",
"homepage": "https://www.drupal.org/user/213325"
}
],
"description": "Track changes to user records by recording details in a custom user_history entity.",
"homepage": "https://www.drupal.org/project/user_history",
"support": {
"source": "https://git.drupalcode.org/project/user_history",
"issues": "https://www.drupal.org/project/issues/user_history"
}
},
{ {
"name": "drupal/vde_drush", "name": "drupal/vde_drush",
"version": "2.0.0", "version": "2.0.0",

View File

@ -0,0 +1,14 @@
uuid: 82cfb3bb-2c59-4e94-87c2-7ed3fef7d903
langcode: en
status: true
dependencies:
module:
- user_history
_core:
default_config_hash: t3pk9G7B-islTarIf5Vn3hst8iT4ymFv2xZC3Pk8s3I
id: user_history.user_history.default
targetEntityType: user_history
bundle: user_history
mode: default
content: { }
hidden: { }

View File

@ -0,0 +1,198 @@
uuid: 6159fee5-dea5-4c37-877e-f1d81222e4ef
langcode: en
status: true
dependencies:
module:
- user_history
_core:
default_config_hash: rLJ2KvmgjOrIys0VR2ZOuqVSmnAVAyUM4XfjaFEOBNg
id: user_history.user_history.default
targetEntityType: user_history
bundle: user_history
mode: default
content:
action:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 2
region: content
created:
type: timestamp
label: inline
settings:
date_format: medium
custom_date_format: ''
timezone: ''
third_party_settings: { }
weight: 1
region: content
difference:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 20
region: content
label:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
modified_by:
type: entity_reference_label
label: inline
settings:
link: true
third_party_settings: { }
weight: 3
region: content
user_access:
type: timestamp
label: inline
settings:
date_format: medium
custom_date_format: ''
timezone: ''
third_party_settings: { }
weight: 14
region: content
user_changed:
type: timestamp
label: inline
settings:
date_format: medium
custom_date_format: ''
timezone: ''
third_party_settings: { }
weight: 13
region: content
user_created:
type: timestamp
label: inline
settings:
date_format: medium
custom_date_format: ''
timezone: ''
third_party_settings: { }
weight: 12
region: content
user_deleted:
type: boolean
label: inline
settings:
format: yes-no
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 4
region: content
user_id:
type: entity_reference_entity_id
label: inline
settings: { }
third_party_settings: { }
weight: 5
region: content
user_init:
type: basic_string
label: inline
settings: { }
third_party_settings: { }
weight: 16
region: content
user_langcode:
type: language
label: inline
settings:
link_to_entity: false
native_language: false
third_party_settings: { }
weight: 17
region: content
user_login:
type: timestamp
label: inline
settings:
date_format: medium
custom_date_format: ''
timezone: ''
third_party_settings: { }
weight: 15
region: content
user_mail:
type: basic_string
label: inline
settings: { }
third_party_settings: { }
weight: 8
region: content
user_name:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 6
region: content
user_pass:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 7
region: content
user_preferred_admin_langcode:
type: language
label: inline
settings:
link_to_entity: false
native_language: false
third_party_settings: { }
weight: 19
region: content
user_preferred_langcode:
type: language
label: inline
settings:
link_to_entity: false
native_language: false
third_party_settings: { }
weight: 18
region: content
user_roles:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 11
region: content
user_status:
type: boolean
label: inline
settings:
format: custom
format_custom_false: Blocked
format_custom_true: Active
third_party_settings: { }
weight: 10
region: content
user_timezone:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 9
region: content
hidden:
search_api_excerpt: true
synonyms: true

View File

@ -0,0 +1,121 @@
uuid: 91bdd6bf-d214-41c1-9731-f4c5972062a6
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.user_history.tab
module:
- user_history
_core:
default_config_hash: 9xmWD-ipJmTwO8v1QpZ37pO4vsMRUJAhpdiMYtViG5c
id: user_history.user_history.tab
targetEntityType: user_history
bundle: user_history
mode: tab
content:
action:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 3
region: content
created:
type: timestamp
label: inline
settings:
date_format: medium
custom_date_format: ''
timezone: ''
third_party_settings: { }
weight: 1
region: content
difference:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 20
region: content
label:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
modified_by:
type: entity_reference_label
label: inline
settings:
link: true
third_party_settings: { }
weight: 2
region: content
user_login:
type: timestamp
label: inline
settings:
date_format: medium
custom_date_format: ''
timezone: ''
third_party_settings: { }
weight: 9
region: content
user_mail:
type: basic_string
label: inline
settings: { }
third_party_settings: { }
weight: 5
region: content
user_name:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 4
region: content
user_roles:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 8
region: content
user_status:
type: boolean
label: inline
settings:
format: custom
format_custom_false: Blocked
format_custom_true: Active
third_party_settings: { }
weight: 7
region: content
user_timezone:
type: string
label: inline
settings:
link_to_entity: false
third_party_settings: { }
weight: 6
region: content
hidden:
search_api_excerpt: true
synonyms: true
user_access: true
user_changed: true
user_created: true
user_deleted: true
user_id: true
user_init: true
user_langcode: true
user_pass: true
user_preferred_admin_langcode: true
user_preferred_langcode: true

View File

@ -0,0 +1,12 @@
uuid: 1a23be2d-497b-4722-a873-8d33fbd3954e
langcode: en
status: true
dependencies:
module:
- user_history
_core:
default_config_hash: ggnLfDKZKWq9-z6LNunoyDsOtcsUSIo0imn2QXKJIbw
id: user_history.tab
label: 'User profile tab'
targetEntityType: user_history
cache: true

View File

@ -220,6 +220,7 @@ module:
user: 0 user: 0
user_csv_import: 0 user_csv_import: 0
user_email_verification: 0 user_email_verification: 0
user_history: 0
vde_drush: 0 vde_drush: 0
video_embed_field: 0 video_embed_field: 0
video_embed_wysiwyg: 0 video_embed_wysiwyg: 0

View File

@ -0,0 +1,5 @@
content:
user_status:
settings:
format_custom_false: Bloqué
format_custom_true: Actif

View File

@ -0,0 +1,5 @@
content:
user_status:
settings:
format_custom_false: Bloqué
format_custom_true: Actif

View File

@ -0,0 +1,82 @@
display:
default:
display_title: Maître
display_options:
exposed_form:
options:
submit_button: Appliquer
reset_button_label: Réinitialiser
exposed_sorts_label: 'Trier par'
sort_asc_label: Asc
sort_desc_label: Desc
pager:
options:
tags:
previous:
next:
expose:
items_per_page_label: 'Éléments par page'
items_per_page_options_all_label: '- Tout -'
offset_label: Décalage
fields:
action:
label: Action
separator: ', '
user_changed:
label: Modifié
separator: ', '
user_created:
label: Créé
separator: ', '
created:
label: Créé
separator: ', '
user_mail:
label: Courriel
separator: ', '
id:
label: 'Identifiant (ID)'
separator: ', '
user_init:
label: Init
separator: ', '
user_langcode:
label: 'Code de la langue'
separator: ', '
user_access:
label: 'Dernier accès'
separator: ', '
user_login:
separator: ', '
modified_by:
separator: ', '
user_name:
label: Nom
separator: ', '
user_pass:
label: 'Mot de passe'
separator: ', '
user_preferred_admin_langcode:
separator: ', '
user_preferred_langcode:
separator: ', '
user_roles_target_id:
label: Rôles
separator: ', '
user_timezone:
label: 'Fuseau horaire'
separator: ', '
user_deleted:
separator: ', '
user_id:
label: 'Identifiant (ID) utilisateur'
separator: ', '
user_status:
label: 'Statut de l''utilisateur'
separator: ', '
arguments:
user_id:
exception:
title: Tout
page_1:
display_title: Page

View File

@ -0,0 +1,57 @@
display:
default:
display_title: Maître
display_options:
exposed_form:
options:
submit_button: Appliquer
reset_button_label: Réinitialiser
exposed_sorts_label: 'Trier par'
sort_asc_label: Asc
sort_desc_label: Desc
pager:
options:
expose:
items_per_page_label: 'Éléments par page'
items_per_page_options_all_label: '- Tout -'
offset_label: Décalage
tags:
previous:
next:
fields:
label:
separator: ', '
modified_by:
separator: ', '
created:
separator: ', '
user_id:
separator: ', '
user_name:
label: 'Nom d''utilisateur'
separator: ', '
user_mail:
separator: ', '
user_roles:
label: 'Rôles de l''utilisateur'
separator: ', '
user_status:
label: 'Statut de l''utilisateur'
settings:
format_custom_true: Actif
format_custom_false: Bloqué
separator: ', '
user_deleted:
separator: ', '
user_login:
label: 'Dernière connexion'
separator: ', '
filters:
user_name:
expose:
label: 'Nom d''utilisateur'
user_roles:
expose:
label: 'Rôles de l''utilisateur'
page_1:
display_title: Page

View File

@ -0,0 +1,17 @@
uuid: 75c4fa38-9c56-488a-b071-fddb06766178
langcode: en
status: true
dependencies:
module:
- user_history
title: 'Default cron handler'
id: user_history_cron
weight: 0
module: user_history
callback: user_history_cron
scheduler:
id: simple
launcher:
id: serial
logger:
id: database

View File

@ -6,7 +6,6 @@ dependencies:
- node.type.note - node.type.note
module: module:
- commerce_license - commerce_license
- commerce_order
- eu_cookie_compliance - eu_cookie_compliance
- field_permissions - field_permissions
- flag_lists - flag_lists
@ -46,4 +45,3 @@ permissions:
- 'view own flag lists' - 'view own flag lists'
- 'view own member profile' - 'view own member profile'
- 'view printer friendly versions' - 'view printer friendly versions'
- 'view recurring commerce_order'

View File

@ -51,6 +51,7 @@ dependencies:
- system - system
- taxonomy - taxonomy
- toolbar - toolbar
- user_history
- workflow - workflow
_core: _core:
default_config_hash: oPv8PkAuHYeKKe1c48A3-O9VsF3Nl1XBsMKrgqxo8vs default_config_hash: oPv8PkAuHYeKKe1c48A3-O9VsF3Nl1XBsMKrgqxo8vs
@ -101,7 +102,6 @@ permissions:
- 'create commerce_subscription' - 'create commerce_subscription'
- 'create content translations' - 'create content translations'
- 'create customer profile' - 'create customer profile'
- 'create default commerce_order'
- 'create field_attachments' - 'create field_attachments'
- 'create field_company' - 'create field_company'
- 'create field_distributor' - 'create field_distributor'
@ -122,6 +122,7 @@ permissions:
- 'create field_video' - 'create field_video'
- 'create field_workflow' - 'create field_workflow'
- 'create materiau content' - 'create materiau content'
- 'create materio_order_type commerce_order'
- 'create migration workflow_transition' - 'create migration workflow_transition'
- 'create note content' - 'create note content'
- 'create simplenews_issue content' - 'create simplenews_issue content'
@ -134,7 +135,6 @@ permissions:
- 'create workflow workflow_transition' - 'create workflow workflow_transition'
- 'delete all revisions' - 'delete all revisions'
- 'delete any simplenews_issue content' - 'delete any simplenews_issue content'
- 'delete default commerce_order'
- 'delete terms in assisted_research' - 'delete terms in assisted_research'
- 'delete terms in company' - 'delete terms in company'
- 'delete terms in showroom' - 'delete terms in showroom'
@ -214,6 +214,7 @@ permissions:
- 'execute views_bulk_edit all' - 'execute views_bulk_edit all'
- 'execute workflow_node_given_state_action node' - 'execute workflow_node_given_state_action node'
- 'execute workflow_node_next_state_action node' - 'execute workflow_node_next_state_action node'
- 'manage materio_order_item_type commerce_order_item'
- materio_samples_edit_any_sample - materio_samples_edit_any_sample
- materio_samples_edit_materiaux_titles - materio_samples_edit_materiaux_titles
- 'revert all revisions' - 'revert all revisions'
@ -248,7 +249,6 @@ permissions:
- 'update any member profile' - 'update any member profile'
- 'update any online commerce_store' - 'update any online commerce_store'
- 'update content translations' - 'update content translations'
- 'update default commerce_order'
- 'use text format full_html' - 'use text format full_html'
- 'use text format wysiwyg' - 'use text format wysiwyg'
- 'view all login histories' - 'view all login histories'
@ -310,7 +310,9 @@ permissions:
- 'view own profile' - 'view own profile'
- 'view own unpublished content' - 'view own unpublished content'
- 'view printer friendly versions' - 'view printer friendly versions'
- 'view recurring commerce_order'
- 'view simplenews_issue revisions' - 'view simplenews_issue revisions'
- 'view static revisions' - 'view static revisions'
- 'view the administration theme' - 'view the administration theme'
- 'view thematique revisions' - 'view thematique revisions'
- 'view user_history entities'

View File

@ -6,7 +6,6 @@ dependencies:
- node.type.note - node.type.note
module: module:
- commerce_license - commerce_license
- commerce_order
- eu_cookie_compliance - eu_cookie_compliance
- field_permissions - field_permissions
- flag_lists - flag_lists
@ -46,4 +45,3 @@ permissions:
- 'view own flag lists' - 'view own flag lists'
- 'view own member profile' - 'view own member profile'
- 'view printer friendly versions' - 'view printer friendly versions'
- 'view recurring commerce_order'

View File

@ -22,6 +22,7 @@ dependencies:
- simplenews - simplenews
- synonyms_autocomplete - synonyms_autocomplete
- system - system
- user_history
- workflow - workflow
_core: _core:
default_config_hash: NlAJ1uthbRfNcM-M7UCYixmpTNgZnkuQKQymrXPv7UY default_config_hash: NlAJ1uthbRfNcM-M7UCYixmpTNgZnkuQKQymrXPv7UY
@ -33,6 +34,7 @@ permissions:
- 'access checkout' - 'access checkout'
- 'access content' - 'access content'
- 'access synonyms entity autocomplete' - 'access synonyms entity autocomplete'
- 'add user_history entities'
- 'create workflow workflow_transition' - 'create workflow workflow_transition'
- 'display eu cookie compliance popup' - 'display eu cookie compliance popup'
- 'execute materio arbitrary graphql requests' - 'execute materio arbitrary graphql requests'

View File

@ -0,0 +1,33 @@
_core:
default_config_hash: yGCsRJxhYIIfNycJr9z_9QeZXOPIZjI0Qn_3Mvp2Blk
no_change:
ignore: true
delete: ''
base_fields:
uid: true
name: true
pass: true
mail: true
timezone: true
status: true
roles: true
created: true
changed: true
access: true
login: true
init: true
langcode: true
preferred_langcode: true
preferred_admin_langcode: true
attached_fields:
changed: 1
path: 0
commerce_remote_id: 0
field_company: 1
field_member_type: 1
field_memo: 1
field_showroom: 1
archive:
directory: user-history/archive/
filename: user-history-archive
max_cardinality: 3

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff