Skip to content

refactor(node): split client core wiring#787

Merged
leumor merged 14 commits intodevelopfrom
feature/node-clientcore-refactor
Dec 31, 2025
Merged

refactor(node): split client core wiring#787
leumor merged 14 commits intodevelopfrom
feature/node-clientcore-refactor

Conversation

@leumor
Copy link
Copy Markdown
Collaborator

@leumor leumor commented Dec 30, 2025

Summary

  • split NodeClientCore wiring into ClientEndpoints/NodeClientPersistence/NodeClientCoreSupport and supporting records
  • document NodeClientCore and client endpoint responsibilities; update call sites accordingly
  • expand test coverage for new wiring and persistence behavior

Testing

  • not run (not requested)

Extract persistence, endpoint, and support helpers from NodeClientCore.

Route FCP/TMCI/toadlet access through ClientEndpoints and add helper wiring for client context resources. Update tests and FCP/HTTP callers to use the new accessors.
Add Javadoc to clarify startup sequencing and error cases.

Add tests for throttle persistence, disk checker, and context wiring.
Add a dedicated lock for persistence alert validity.\nAdd NodeClientCoreSupport unit coverage.
Convert NodeClientCoreInit to a record carrier and expand its Javadoc.

Update core initialization call sites to use record accessors.

Add a unit test covering stored references and null handling.
Expand Javadoc to clarify lifecycle and threading expectations.

Publish optional endpoint refs via AtomicReference and add unit tests covering accessors and create() wiring.
Convert the resource holder to a record while preserving accessors.
Expand Javadoc to be doclint-clean and add tests for getter/null cases.
Add long-form API docs for public/protected members and clarify lifecycle, threading, and policy details.

Localize temp/persistent filename generators to constructor scope without changing behavior.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@leumor
Copy link
Copy Markdown
Collaborator Author

leumor commented Dec 30, 2025

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Return direct TMCI from endpoint creation and start it
only after NodeClientCore publishes endpoints to avoid
null access during console.directEnabled startup.

Update tests to reflect deferred registration.
Extract transfer operations and policy handling into dedicated helpers to reduce NodeClientCore dependencies.
Update call sites and tests to use getTransfers() access.
Add JUnit/Mockito coverage for allowlist registration and\npermission checks.\n\nExpand NodeClientCoreTransferPolicy Javadoc to satisfy doclint.
Add NodeClientCoreTransfers tests for get/put paths and reinserts.\nExpand NodeClientCoreTransfers Javadoc for doclint compliance.
Add long-form Javadoc for public APIs and clarify configuration, alert, and insert helpers to satisfy doclint.
Add lifecycle, threading, and policy details across public APIs.
@leumor
Copy link
Copy Markdown
Collaborator Author

leumor commented Dec 30, 2025

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Avoid NPEs when TMCI config callbacks run before endpoints are assigned.
@leumor
Copy link
Copy Markdown
Collaborator Author

leumor commented Dec 30, 2025

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
48.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@leumor leumor merged commit d7b7c67 into develop Dec 31, 2025
3 of 4 checks passed
@leumor leumor deleted the feature/node-clientcore-refactor branch December 31, 2025 05:25
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.

1 participant