Skip to content

T8#1735

Merged
nmaguiar merged 17 commits intomasterfrom
t8
Mar 4, 2026
Merged

T8#1735
nmaguiar merged 17 commits intomasterfrom
t8

Conversation

@nmaguiar
Copy link
Collaborator

@nmaguiar nmaguiar commented Mar 4, 2026

This pull request introduces several enhancements and fixes across logging configuration, template helpers, stream reading performance, and dependency updates. The most significant changes are improvements to the logging configuration options for file logging, the addition of a markdown table helper to templates, a refactor of the NIO stream reading logic for better reliability, and an update to Jackson dependencies.

Logging configuration improvements:

  • Expanded the logToFile configuration in both docs/ojob-all.yaml and docs/ojob.md to include new options such as filenameTemplate, fileDateFormat, lineTemplate, lineDateFormat, housekeeping regex, backup folder, compression control, and in-memory log entry limits. These additions provide more granular control over log file naming, formatting, retention, and housekeeping. [1] [2]

Template helper enhancements:

  • Added a new $mdtable helper to owrap.template.js, allowing templates to render array objects as markdown tables. This makes it easier to generate markdown-formatted tables directly from data structures. [1] [2]

Stream reading improvements:

  • Refactored the NIO branch of ioStreamRead in openaf.js to use a buffered character reader instead of NIO channels and byte buffers. This simplifies the code and improves compatibility with different encodings and input streams.

Dependency updates:

  • Updated the jackson-core and jackson-databind dependencies in pom.xml from version 2.21.0 to 2.21.1 to incorporate the latest bug fixes and improvements.

dependabot bot and others added 11 commits February 23, 2026 23:48
Bumps [com.fasterxml.jackson.core:jackson-core](https://github.com/FasterXML/jackson-core) from 2.21.0 to 2.21.1.
- [Commits](FasterXML/jackson-core@jackson-core-2.21.0...jackson-core-2.21.1)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-core
  dependency-version: 2.21.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [com.fasterxml.jackson.core:jackson-databind](https://github.com/FasterXML/jackson) from 2.21.0 to 2.21.1.
- [Commits](https://github.com/FasterXML/jackson/commits)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-version: 2.21.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Remove unnecessary arrow function wrapper for mdtable helper in OpenWrap.template. This keeps the helper consistent with other helpers and reduces code noise.
Update ojob-all.yaml and ojob.md with detailed logToFile options. Adds defaults, templates, housekeeping, compression, backup, and in‑memory entry limits. Clarifies usage and removes legacy placeholders.
…l.jackson.core-jackson-databind-2.21.1

chore(deps): bump com.fasterxml.jackson.core:jackson-databind from 2.21.0 to 2.21.1
…l.jackson.core-jackson-core-2.21.1

chore(deps): bump com.fasterxml.jackson.core:jackson-core from 2.21.0 to 2.21.1
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates OpenAF’s logging configuration documentation, exposes an existing markdown-table renderer as a template helper, refactors the ioStreamRead NIO path for simpler/encoding-safe reads, and bumps Jackson dependencies.

Changes:

  • Expanded logToFile documentation/examples to cover all ow.ch.utils.setLogToFile options.
  • Added $mdtable Handlebars helper wiring to render arrays as markdown tables.
  • Reworked ioStreamRead(..., useNIO=true, ...) to use BufferedReader/InputStreamReader and updated Jackson versions.

Reviewed changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pom.xml Updates Jackson core/databind versions.
js/owrap.template.js Wires $mdtable helper to ow.template.md.table.
js/openaf.js Refactors ioStreamRead NIO branch to character-based buffered reading.
docs/ojob.md Documents full logToFile option set with inline explanations.
docs/ojob-all.yaml Updates the full config example for logToFile options.

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

nmaguiar and others added 3 commits March 4, 2026 22:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Mar 4, 2026

@nmaguiar I've opened a new pull request, #1736, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits March 4, 2026 22:44
Co-authored-by: nmaguiar <11761746+nmaguiar@users.noreply.github.com>
Fix resource leak in `ioStreamRead` useNIO branch
- Renamed and replaced jackson-dataformat-toml JAR to version 2.21.1
- Updated pom.xml to add dependency on jackson-dataformat-toml 2.21.1

This updates the TOML dataformat dependency to the latest version for improved compatibility and bug fixes.
@nmaguiar nmaguiar merged commit e26288e into master Mar 4, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Continuous Enhancement Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants