Skip to content

Conversation

@XN137
Copy link
Contributor

@XN137 XN137 commented Aug 21, 2025

PolarisDiagnostics is application-scoped and not scoped to any realm or request.
thus we should inject it at object construction time and not pass it along everywhere with PolarisCallContext.
this works towards less dependency on PolarisCallContext and its eventual removal.

@github-project-automation github-project-automation bot moved this to PRs In Progress in Basic Kanban Board Aug 21, 2025
@XN137 XN137 force-pushed the Remove-PolarisCallContext.getDiagServices branch from a35657f to d0086af Compare August 26, 2025 13:26
private PolarisDiagnostics diagnostics = new PolarisDefaultDiagServiceImpl();
@Mock private CallContext callContext;
@Mock private PolarisCallContext polarisCallContext;
@Mock private PolarisDiagnostics polarisDiagnostics;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note that this mock would have been silently ignoring any diagnostics errors

@XN137 XN137 marked this pull request as ready for review August 26, 2025 13:55
adutra
adutra previously approved these changes Aug 26, 2025
@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Aug 26, 2025
dimas-b
dimas-b previously approved these changes Aug 26, 2025
@XN137 XN137 force-pushed the Remove-PolarisCallContext.getDiagServices branch from d0086af to 973fb62 Compare August 28, 2025 06:20
@XN137 XN137 dismissed stale reviews from adutra and dimas-b via a9cff35 August 29, 2025 08:32
@XN137 XN137 force-pushed the Remove-PolarisCallContext.getDiagServices branch from 973fb62 to a9cff35 Compare August 29, 2025 08:32
@XN137
Copy link
Contributor Author

XN137 commented Aug 29, 2025

rebased after trivial merge conflicts in multiple files (they auto-resolved locally)

@XN137 XN137 force-pushed the Remove-PolarisCallContext.getDiagServices branch from a9cff35 to f471f8a Compare September 1, 2025 03:31
@dimas-b dimas-b merged commit 6b4f8e1 into apache:main Sep 2, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Sep 2, 2025
@dimas-b dimas-b mentioned this pull request Sep 2, 2025
dimas-b added a commit that referenced this pull request Sep 2, 2025
Fix undetected merge conflict after #2197 + #2415 + #2434

* Use local diagnostics in TransactionWorkspaceMetaStoreManager

* Add resetCredentials to PolarisPrincipalsEventServiceDelegator
@XN137 XN137 deleted the Remove-PolarisCallContext.getDiagServices branch September 3, 2025 04:45
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.

3 participants