Skip to content

fix(notifications): keep stored values on one line - #2854

Merged
tom mortensen (limetech) merged 1 commit into
masterfrom
codex/os-1138-notification-records
Dec 4, 2026
Merged

tom mortensen (limetech) merged 1 commit into
masterfrom
codex/os-1138-notification-records

Conversation

@SimonFair

@SimonFair SimonFair commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Keep each notification value on one physical line in unread and archived records. CRLF, CR and LF each become one space; other bytes retain their existing treatment. Existing INI quoting preserves quotes and backslashes. This normalization is identical to counterpart #2850.

Tracks OS-1138.

Validation: 46 focused encoder comparisons passed, covering all ASCII controls, DEL, mixed line breaks, quotes, backslashes, Unicode and scalar values. Ten actual CLI create/get/archive cases passed on each of Unraid 7.3.6 and 7.4.1 using the exact published previews. Corresponding values matched across release lines; record structure, adjacent fields and archive cleanup passed. Installed notify sources matched the verified artifacts and were identical.

NUL coverage is encoder-only because CLI arguments cannot contain NUL. API/browser-list rendering, email, external agents and arbitrary control-byte compatibility were not tested. Stock files were restored and the disposable guests released. No repository test files were added. Final QA remains separate.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

ini_encode_value now replaces CRLF, CR, and LF in string values with spaces before applying its existing quoting and escaping. Integer, float, and boolean encoding remains unchanged.

Changes

INI string encoding

Layer / File(s) Summary
Normalize string line breaks
emhttp/plugins/dynamix/scripts/notify
ini_encode_value replaces CRLF, CR, and LF in string values with spaces before quoting and escaping them. Integer, float, and boolean encoding is unchanged.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix

Suggested reviewers: pujitm

Merge Risk: Minimal · up to 77e3b

Notification values containing line breaks are now stored on a single line, so existing readers can load the full record. The change is small and I found no merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(notifications): keep stored values on one line" matches the change. The raw summary shows that ini_encode_value now replaces CRLF, CR, and LF characters in string values with spaces, so…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "fix(notifications): keep stored values on one line" matches the change. The raw summary shows that ini_encode_value now replaces CRLF, CR, and LF characters in string values with spaces, so stored notification values stay on one line. The objectives say the same thing: embedded line breaks in unread and archived notification records become spaces. The title names the main change and its scope (notifications), and it is specific enough for a teammate scanning history to understand it.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks each string with care,
And turns its line breaks into air.
Quotes and slashes keep their place,
While words stay in a single space.
The INI lines hop neat and fair.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 818b5794-8c0f-452f-b626-ce228d01e677
Commits

Reviewing files that changed from the base of the PR and between d513b6d and 77e3b71.

Files selected for processing: 1

  • emhttp/plugins/dynamix/scripts/notify

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🔧 PR Test Plugin Available

A test plugin has been generated for this PR that includes the modified files.

Version: 2026.12.04.2007
Build: View Workflow Run

📥 Installation Instructions:

Install via Unraid Web UI:

  1. Go to Plugins → Install Plugin
  2. Copy and paste this URL:
https://preview.dl.unraid.net/pr-plugins/pr-2854/webgui-pr-2854.plg
  1. Click Install

Alternative: Direct Download

⚠️ Important Notes:

  • Testing only: This plugin is for testing PR changes
  • Backup included: Original files are automatically backed up
  • Easy removal: Files are restored when plugin is removed
  • Conflicts: Remove this plugin before installing production updates
  • Post-merge behavior: This preview stays available after merge until preview storage expires or it is manually cleaned up

📝 Modified Files:

Click to expand file list
emhttp/plugins/dynamix/scripts/notify

🔄 To Remove:

Navigate to Plugins → Installed Plugins and remove webgui-pr-2854, or run:

plugin remove webgui-pr-2854

🤖 This comment is automatically generated and will be updated with each new push to this PR.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

🧹 PR Test Plugin Cleaned Up

The test plugin and associated files for this PR have been removed from the preview environment.


🤖 This comment is automatically generated when a PR is closed without merging.

@unraid-bot Unraid Bot (unraid-bot) added QA Passed QA passed (auto-managed by notification-worker) 7.4.2 Approved for release 7.4.2 (auto-managed by notification-worker) Needs Build and removed 7.4.2 Approved for release 7.4.2 (auto-managed by notification-worker) Needs Build labels Dec 4, 2026
@limetech
tom mortensen (limetech) merged commit 27eabf3 into master Dec 4, 2026
2 checks passed
@limetech
tom mortensen (limetech) deleted the codex/os-1138-notification-records branch December 4, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QA Passed QA passed (auto-managed by notification-worker)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants