From e2bd7c2d0bd81fbd652a2d01085aa8efff34a4d1 Mon Sep 17 00:00:00 2001 From: Carmen Huidobro Date: Mon, 7 Oct 2024 13:32:28 +0200 Subject: [PATCH 1/8] Writeup activity log page --- content/4.auth/8.activity-log.md | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 content/4.auth/8.activity-log.md diff --git a/content/4.auth/8.activity-log.md b/content/4.auth/8.activity-log.md new file mode 100644 index 00000000..265002e6 --- /dev/null +++ b/content/4.auth/8.activity-log.md @@ -0,0 +1,54 @@ +--- +description: Learn to audit user activity and enforce accountability using the activity log. +--- + +# Activity Log + + + +The activity log module provides a collective timeline of all data-changing actions taken within your project. It is accessed via the notifications tray of the sidebar. The Activity Log page shares the filtering and search with the [Collection Page](/data-modeling/collections). + +::callout{type="warning" url="/auth/creating-users" title="External Changes"} + +Read more about creating users. + +The platform can only track the events which actually pass through it. Therefore, any changes made to the database +directly are not tracked. + +:: + +## View an Activity Log Item + + + +Click on any item in the activity log and a side drawer will open, displaying its logged details. The following information +is stored for each item. + +- **User** — The user that performed the action. +- **Action** — The specific action taken (e.g., Create, Update, Delete, Comment, or Login). +- **TimeStamp** — The timestamp of when the action was performed. +- **IP Address** — The IP address of the device from which the action was performed. +- **User Agent** — The description of the browser that was used to perform the action. +- **Collection** — The Collection affected by the action. +- **Item** — The ID of the item affected. +- **Comment** — The comment left by the user (when applicable). + +## Filter by Activity + + + +In addition to the filter and display functionality inherited from the +[Collection Page](/data-modeling/collections), you can also filter items by activity from the +navigation bar. + +## Modify an Activity + + + +To ensure proper accountability, system collections are read only by design. However, users with an Admin role have +the ability to reopen, view, and modify an item's values in activities from non-system collections (where the name does +not begin with `directus_`). From 291862faafb138bfd8a9cb6d2aee1597748056bb Mon Sep 17 00:00:00 2001 From: Carmen Huidobro Date: Mon, 7 Oct 2024 13:33:02 +0200 Subject: [PATCH 2/8] Tweak wording --- content/4.auth/8.activity-log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/4.auth/8.activity-log.md b/content/4.auth/8.activity-log.md index 265002e6..55eccf3a 100644 --- a/content/4.auth/8.activity-log.md +++ b/content/4.auth/8.activity-log.md @@ -6,7 +6,7 @@ description: Learn to audit user activity and enforce accountability using the a -The activity log module provides a collective timeline of all data-changing actions taken within your project. It is accessed via the notifications tray of the sidebar. The Activity Log page shares the filtering and search with the [Collection Page](/data-modeling/collections). +The activity log module provides a collective timeline of all data-changing actions taken within your project. It is accessed via the notifications tray of the sidebar. The page shares the filtering and search with the [Collection Page](/data-modeling/collections). ::callout{type="warning" url="/auth/creating-users" title="External Changes"} From 0ea38fddf5db4357ba4b1e03c7d1950fbd5a429d Mon Sep 17 00:00:00 2001 From: Carmen Huidobro Date: Mon, 7 Oct 2024 13:33:47 +0200 Subject: [PATCH 3/8] Tweak wording --- content/4.auth/8.activity-log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/4.auth/8.activity-log.md b/content/4.auth/8.activity-log.md index 55eccf3a..bcbcf9ea 100644 --- a/content/4.auth/8.activity-log.md +++ b/content/4.auth/8.activity-log.md @@ -12,7 +12,7 @@ The activity log module provides a collective timeline of all data-changing acti Read more about creating users. -The platform can only track the events which actually pass through it. Therefore, any changes made to the database +Directus can only track the events which actually pass through its platform. Therefore, any changes made to the database directly are not tracked. :: From bede393da938e28e8b472f1624ed46b20ba82daf Mon Sep 17 00:00:00 2001 From: Carmen Huidobro Date: Mon, 7 Oct 2024 13:34:09 +0200 Subject: [PATCH 4/8] Replace char --- content/4.auth/8.activity-log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/4.auth/8.activity-log.md b/content/4.auth/8.activity-log.md index bcbcf9ea..16ddbc37 100644 --- a/content/4.auth/8.activity-log.md +++ b/content/4.auth/8.activity-log.md @@ -22,7 +22,7 @@ directly are not tracked. Click on any item in the activity log and a side drawer will open, displaying its logged details. The following information -is stored for each item. +is stored for each item: - **User** — The user that performed the action. - **Action** — The specific action taken (e.g., Create, Update, Delete, Comment, or Login). From fba1681fa741f01c0defdb233e520a8a211c7002 Mon Sep 17 00:00:00 2001 From: Carmen Huidobro Date: Tue, 8 Oct 2024 16:35:21 +0200 Subject: [PATCH 5/8] Tweak wording --- content/4.auth/8.activity-log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/4.auth/8.activity-log.md b/content/4.auth/8.activity-log.md index 16ddbc37..a5e2b7de 100644 --- a/content/4.auth/8.activity-log.md +++ b/content/4.auth/8.activity-log.md @@ -6,7 +6,7 @@ description: Learn to audit user activity and enforce accountability using the a -The activity log module provides a collective timeline of all data-changing actions taken within your project. It is accessed via the notifications tray of the sidebar. The page shares the filtering and search with the [Collection Page](/data-modeling/collections). +The activity log module provides a collective timeline of all data-changing actions taken within your project. It is accessed via the notifications tray of the sidebar, and has the same filtering and search features as the [Collection Page](/data-modeling/collections). ::callout{type="warning" url="/auth/creating-users" title="External Changes"} From 98b7a8f14e187a96c792a5b1b458b6c55a93c782 Mon Sep 17 00:00:00 2001 From: Carmen Huidobro Date: Tue, 8 Oct 2024 16:37:16 +0200 Subject: [PATCH 6/8] Fix wording and spelling --- content/4.auth/8.activity-log.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/4.auth/8.activity-log.md b/content/4.auth/8.activity-log.md index a5e2b7de..01307d33 100644 --- a/content/4.auth/8.activity-log.md +++ b/content/4.auth/8.activity-log.md @@ -12,8 +12,7 @@ The activity log module provides a collective timeline of all data-changing acti Read more about creating users. -Directus can only track the events which actually pass through its platform. Therefore, any changes made to the database -directly are not tracked. +Directus can only track the events which actually pass through its platform. Therefore, any changes directly made to the database are not tracked in the activity log. :: @@ -26,7 +25,7 @@ is stored for each item: - **User** — The user that performed the action. - **Action** — The specific action taken (e.g., Create, Update, Delete, Comment, or Login). -- **TimeStamp** — The timestamp of when the action was performed. +- **Timestamp** — The timestamp of when the action was performed. - **IP Address** — The IP address of the device from which the action was performed. - **User Agent** — The description of the browser that was used to perform the action. - **Collection** — The Collection affected by the action. From e8e0b8995b68c2a9b5490d60ef6dd6567b3c80d0 Mon Sep 17 00:00:00 2001 From: Carmen Huidobro Date: Wed, 9 Oct 2024 09:28:14 +0200 Subject: [PATCH 7/8] Rename page --- content/4.auth/{8.activity-log.md => 8.accountability.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename content/4.auth/{8.activity-log.md => 8.accountability.md} (99%) diff --git a/content/4.auth/8.activity-log.md b/content/4.auth/8.accountability.md similarity index 99% rename from content/4.auth/8.activity-log.md rename to content/4.auth/8.accountability.md index 01307d33..f711f893 100644 --- a/content/4.auth/8.activity-log.md +++ b/content/4.auth/8.accountability.md @@ -2,7 +2,7 @@ description: Learn to audit user activity and enforce accountability using the activity log. --- -# Activity Log +# Accountability From b61c355e17d18c15d7743d8e04cf3784d29f4368 Mon Sep 17 00:00:00 2001 From: Carmen Huidobro Date: Wed, 9 Oct 2024 13:09:01 +0200 Subject: [PATCH 8/8] Remove mixed url and content --- content/4.auth/8.accountability.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/4.auth/8.accountability.md b/content/4.auth/8.accountability.md index f711f893..13be5395 100644 --- a/content/4.auth/8.accountability.md +++ b/content/4.auth/8.accountability.md @@ -8,9 +8,7 @@ description: Learn to audit user activity and enforce accountability using the a The activity log module provides a collective timeline of all data-changing actions taken within your project. It is accessed via the notifications tray of the sidebar, and has the same filtering and search features as the [Collection Page](/data-modeling/collections). -::callout{type="warning" url="/auth/creating-users" title="External Changes"} - -Read more about creating users. +::callout{type="warning" title="External Changes"} Directus can only track the events which actually pass through its platform. Therefore, any changes directly made to the database are not tracked in the activity log.