Skip to content

Configure File Reaction#219

Merged
danielgerlag merged 3 commits into
drasi-project:mainfrom
danielgerlag:file-reaction
Jun 5, 2026
Merged

Configure File Reaction#219
danielgerlag merged 3 commits into
drasi-project:mainfrom
danielgerlag:file-reaction

Conversation

@danielgerlag

Copy link
Copy Markdown
Contributor

Add documentation for the File Reaction feature, which allows writing query result diffs to local or mounted filesystem paths. This includes configuration examples and details on file persistence strategies.

Signed-off-by: Daniel Gerlag <daniel@gerlag.ca>
@danielgerlag danielgerlag requested a review from a team as a code owner May 22, 2026 00:19
Copilot AI review requested due to automatic review settings May 22, 2026 00:19
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Drasi Server how-to guide documenting the File Reaction, which writes query result change events to the local/mounted filesystem with configurable templates and write/persistence modes.

Changes:

  • Added a new documentation page describing File Reaction configuration, write modes, templating, and examples.
  • Added a “File” card link to the “Configure Reactions” index page for discoverability.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
docs/content/drasi-server/how-to-guides/configuration/configure-reactions/configure-file-reaction/_index.md New File Reaction documentation page (config reference, modes, templates, examples, links).
docs/content/drasi-server/how-to-guides/configuration/configure-reactions/_index.md Adds File Reaction to the reactions landing page card grid.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +106 to +114
| Variable | ADD | UPDATE | DELETE | Description |
|----------|-----|--------|--------|-------------|
| `after` | ✅ | ✅ | ❌ | New/current state |
| `before` | ❌ | ✅ | ✅ | Previous state |
| `data` | ✅ | ✅ | ✅ | Alias: `after` for ADD/UPDATE, `before` for DELETE |
| `operation` | ✅ | ✅ | ✅ | `ADD`, `UPDATE`, or `DELETE` |
| `query_name` | ✅ | ✅ | ✅ | Name of the query that produced the result |
| `timestamp` | ✅ | ✅ | ✅ | Event timestamp |
| `uuid` | ✅ | ✅ | ✅ | Unique identifier for this change |
| `after` | ✅ | ✅ | ❌ | New/current state |
| `before` | ❌ | ✅ | ✅ | Previous state |
| `data` | ✅ | ✅ | ✅ | Alias: `after` for ADD/UPDATE, `before` for DELETE |
| `operation` | ✅ | ✅ | ✅ | `ADD`, `UPDATE`, or `DELETE` |
Comment on lines 14 to +20
<div class="card-grid">
<a href="configure-file-reaction/">
<div class="unified-card unified-card--howto">
<div class="unified-card-icon"><i class="fas fa-file-alt"></i></div>
<div class="unified-card-content">
<h3 class="unified-card-title">File</h3>
<p class="unified-card-summary">Write query result diffs to the filesystem</p>
@danielgerlag danielgerlag requested a review from ruokun-niu June 4, 2026 23:16
@danielgerlag danielgerlag merged commit 6df1949 into drasi-project:main Jun 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants