-
Notifications
You must be signed in to change notification settings - Fork 64
Write up auth -> activity log page #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e2bd7c2
Writeup activity log page
hola-soy-milk 291862f
Tweak wording
hola-soy-milk 0ea38fd
Tweak wording
hola-soy-milk bede393
Replace char
hola-soy-milk fba1681
Tweak wording
hola-soy-milk 98b7a8f
Fix wording and spelling
hola-soy-milk e8e0b89
Rename page
hola-soy-milk b61c355
Remove mixed url and content
hola-soy-milk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| --- | ||
| description: Learn to audit user activity and enforce accountability using the activity log. | ||
| --- | ||
|
|
||
| # Accountability | ||
|
|
||
| <!-- TODO: Image --> | ||
|
|
||
| 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. | ||
|
|
||
| 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. | ||
|
|
||
| :: | ||
|
|
||
| ## View an Activity Log Item | ||
|
|
||
| <!-- TODO:  --> | ||
|
|
||
| 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 | ||
|
|
||
| <!-- TODO: <video title="Filter by Activity" autoplay playsinline muted loop controls> | ||
| <source src="https://cdn.directus.io/docs/v9/configuration/activity-log/activity-log-20220816/filter-by-activity-20220817A.mp4" type="video/mp4" /> | ||
| </video> --> | ||
|
|
||
| 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 | ||
|
|
||
| <!-- <video title="Filter by Activity" autoplay playsinline muted loop controls> | ||
| <source src="https://cdn.directus.io/docs/v9/configuration/activity-log/activity-log-20220816/modify-an-activity-20220817A.mp4" type="video/mp4" /> | ||
| </video> --> | ||
|
|
||
| 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_`). | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confused about this still
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing this out I don't know what happened here.