Skip to content

feat: add related log lines and events to history id. - #888

Merged
arabcoders merged 10 commits into
masterfrom
dev
Sep 8, 2026
Merged

feat: add related log lines and events to history id.#888
arabcoders merged 10 commits into
masterfrom
dev

Conversation

@arabcoders

Copy link
Copy Markdown
Owner

This pull request introduces a comprehensive pre-commit hook system, improves backend API capabilities, and brings various fixes and enhancements throughout the codebase. The most notable changes are the addition of a flexible, parallelized pre-commit hook framework, a new API endpoint for retrieving logs and events related to a history record, and several improvements to logging, error handling, and the frontend.

Pre-commit hook system:

  • Added .githooks/install script to automate installation of a standardized pre-commit hook, with support for forced replacement and extensible directories for extra checks. (.githooks/install)
  • Introduced a new .githooks/pre-commit script that runs backend and frontend checks in parallel based on staged file changes, supports extra user-defined hooks, and aborts commits on failures. (.githooks/pre-commit)
  • Updated CONTRIBUTING.md with instructions for installing and extending the pre-commit hook system. (CONTRIBUTING.md)

Backend API improvements:

  • Added a new GET /history/{id}/related endpoint to return logs and persisted events structurally related to a history record, with optimizations for searching logs using ripgrep if available and a PHP fallback. (src/API/History/Index.php)
  • Improved resource management and error handling in image retrieval and worker scripts, including proper cursor closing and more informative worker restarts. (src/API/System/Images.php, container/files/runner.sh) [1] [2]

Frontend and developer experience:

  • Fixed the order of system stats initialization in the default Vue layout and improved password field UX in the authentication form. (frontend/app/layouts/default.vue, frontend/app/pages/auth.vue) [1] [2]
  • Simplified and improved type usage in authentication middleware. (frontend/app/middleware/auth.global.ts) [1] [2]

Dev tooling and containerization:

  • Added ripgrep to the Docker image to support fast log searching in the backend. (Dockerfile)
  • Directed Redis server output to standard error for better logging in the container init script. (container/files/init-container.sh)

Jellyfin backend import:

  • Updated the Jellyfin import action to pass chunked data for improved handling and logging during library import. (src/Backends/Jellyfin/Action/Import.php) [1] [2]

@arabcoders arabcoders linked an issue Sep 8, 2026 that may be closed by this pull request
@arabcoders
arabcoders merged commit 64e6f75 into master Sep 8, 2026
12 checks passed
doonga pushed a commit to greyrock-labs/home-ops that referenced this pull request Sep 9, 2026
… v1.10.5) (#150)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/arabcoders/watchstate](https://github.com/arabcoders/watchstate) | patch | `v1.10.4` → `v1.10.5` |

---

### Release Notes

<details>
<summary>arabcoders/watchstate (ghcr.io/arabcoders/watchstate)</summary>

### [`v1.10.5`](https://github.com/arabcoders/watchstate/releases/tag/v1.10.5)

[Compare Source](arabcoders/watchstate@v1.10.4...v1.10.5)

##### What's Changed

- fix: remove baked WS\_TZ=UTC in Dockerfile by [@&#8203;arabcoders](https://github.com/arabcoders) in [#&#8203;885](arabcoders/watchstate#885)
- fix: stop reading digit prefixed tags as part of the episode range by [@&#8203;Jellyfrog](https://github.com/Jellyfrog) in [#&#8203;886](arabcoders/watchstate#886)
- feat: add related log lines and events to history id. by [@&#8203;arabcoders](https://github.com/arabcoders) in [#&#8203;888](arabcoders/watchstate#888)

##### New Contributors

- [@&#8203;Jellyfrog](https://github.com/Jellyfrog) made their first contribution in [#&#8203;886](arabcoders/watchstate#886)

**Full Changelog**: <arabcoders/watchstate@v1.10.4...v1.10.5>

***

##### Commits since v1.10.4

- [`e5051df`](arabcoders/watchstate@e5051df) refactor: improve error handling and during db lock
- [`b0895be`](arabcoders/watchstate@b0895be) refactor: increase image timeout and improve error handling in image fetching
- [`1d243e9`](arabcoders/watchstate@1d243e9) fix: remove harded WS\_TZ=UTC in dockerfile
- [`8052023`](arabcoders/watchstate@8052023) refactor: improve worker exit status handling and logging in runner script
- [`fb8a798`](arabcoders/watchstate@fb8a798) fix: silent errors in worker startup
- [`abe80ba`](arabcoders/watchstate@abe80ba) fix: redirect redis server output to stderr for better logging
- [`6698f78`](arabcoders/watchstate@6698f78) refactor: reduce lock window during import operations
- [`f860653`](arabcoders/watchstate@f860653) feat: add related log lines and events to history id.
- [`99f4895`](arabcoders/watchstate@99f4895) refactor: improve events listing in history page.
- [`88fbd31`](arabcoders/watchstate@88fbd31) refactor: add git pre-commit hook
- [`f6b2add`](arabcoders/watchstate@f6b2add) test: add cases for episode range vs digit prefixed tags
- [`5daf47a`](arabcoders/watchstate@5daf47a) fix: stop reading digit prefixed tags as part of the episode range

</details>

---

### Configuration

📅 **Schedule**: (in timezone America/New_York)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC42Ni4xIiwidXBkYXRlZEluVmVyIjoiNDQuNjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9wYXRjaCJdfQ==-->

Reviewed-on: https://git.greyrock.io/todd/home-ops/pulls/150
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.

[BUG] task scheduler not working

2 participants