Skip to content

Conversation

@nmaguiar
Copy link
Collaborator

This pull request introduces several improvements and new features across the codebase, with a focus on enhancing asynchronous execution, table sorting, and Java version compatibility. The most significant changes include adding cancelation support to promises, improving table sorting for numeric values with units, and updating Java argument handling for newer versions.

Asynchronous Execution Enhancements

  • Added support for canceling $do and $doV promises: The oPromise class now allows cancellation via a .cancel() method, which interrupts the associated thread and moves the promise into a rejected state. This is documented and implemented to mirror the behavior of the Threads plugin. [1] [2] [3] [4] [5] [6]
  • Updated documentation and examples to reflect the new cancelation feature and improved references for asynchronous helpers.

Table Sorting Improvements

  • Enhanced table sorting to support numeric values with commas and units (e.g., "1,024", "10k", "5 MB/s") by introducing a new parseNumberWithUnits function and integrating it into the sort logic. This improves user experience when sorting tables with mixed numeric and unit-based data. [1] [2]

Java Version Compatibility

  • Added a new Java 25 argument (-XX:+UseCompactObjectHeaders) to js/genScripts.js and ensured it is included when generating scripts for Java 25 and above. [1] [2]

Other Notable Changes

  • Updated the default output format in js/oafp.js from "mtree" to "ctree".
  • Bumped the version of js/oafp.js to 20251213.

These changes collectively improve the robustness and usability of asynchronous execution, data presentation, and platform compatibility.

nmaguiar and others added 20 commits December 3, 2025 19:42
Bumps org.eclipse.jetty.websocket:jetty-websocket-jetty-api from 12.1.4 to 12.1.5.

---
updated-dependencies:
- dependency-name: org.eclipse.jetty.websocket:jetty-websocket-jetty-api
  dependency-version: 12.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps org.eclipse.jetty:jetty-io from 12.1.3 to 12.1.5.

---
updated-dependencies:
- dependency-name: org.eclipse.jetty:jetty-io
  dependency-version: 12.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps org.eclipse.jetty.websocket:jetty-websocket-core-client from 12.1.4 to 12.1.5.

---
updated-dependencies:
- dependency-name: org.eclipse.jetty.websocket:jetty-websocket-core-client
  dependency-version: 12.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps org.eclipse.jetty:jetty-util from 12.1.4 to 12.1.5.

---
updated-dependencies:
- dependency-name: org.eclipse.jetty:jetty-util
  dependency-version: 12.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…jetty-jetty-util-12.1.5

Bump org.eclipse.jetty:jetty-util from 12.1.4 to 12.1.5
…jetty.websocket-jetty-websocket-core-client-12.1.5

Bump org.eclipse.jetty.websocket:jetty-websocket-core-client from 12.1.4 to 12.1.5
…jetty-jetty-io-12.1.5

Bump org.eclipse.jetty:jetty-io from 12.1.3 to 12.1.5
…jetty.websocket-jetty-websocket-jetty-api-12.1.5

Bump org.eclipse.jetty.websocket:jetty-websocket-jetty-api from 12.1.4 to 12.1.5
…in-mdtablesort.js

Handle number sorting with units
…-do-and-dov

Add cancellation support to $do and $doV
@nmaguiar nmaguiar requested a review from Copilot December 23, 2025 14:33
@nmaguiar nmaguiar self-assigned this Dec 23, 2025
@nmaguiar nmaguiar added bug enhancement dependencies Pull requests that update a dependency file labels Dec 23, 2025
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 pull request introduces enhancements to asynchronous execution, table sorting, and Java version compatibility. The main changes include adding cancellation support to $do and $doV promises, improving table sorting for numeric values with units, updating dependencies, and adding Java 25 compatibility.

  • Added .cancel() method for $do and $doV promises with comprehensive test coverage
  • Enhanced table sorting to handle numeric values with commas and various units (k, MB/s, etc.)
  • Updated multiple dependencies (Rhino, Jetty, SNMP4J) to newer versions
  • Added Java 25 JVM argument for compact object headers

Reviewed changes

Copilot reviewed 8 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/autoTestAll.Generic.yaml Added test entries for $do and $doV cancellation
tests/autoTestAll.Generic.js Implemented cancellation tests with atomic variables and timeouts
pom.xml Updated Rhino (1.8.0→1.8.1), Jetty (12.1.3/12.1.4→12.1.5), and SNMP4J (3.8.2→3.8.3)
lib/*.jar Binary library updates corresponding to pom.xml changes
js/mdtablesort.js Added parseNumberWithUnits function and integrated into sort logic
js/genScripts.js Added Java 25 argument -XX:+UseCompactObjectHeaders
docs/openaf-advanced.md Updated documentation with cancellation feature and line references

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

nmaguiar and others added 2 commits December 23, 2025 14:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@nmaguiar nmaguiar merged commit 238ba61 into master Dec 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug dependencies Pull requests that update a dependency file enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants