Skip to content

Update Subject interface to use CheckedRunnable#18570

Merged
cwperks merged 5 commits intoopensearch-project:mainfrom
cwperks:use-checked-runnable
Jun 21, 2025
Merged

Update Subject interface to use CheckedRunnable#18570
cwperks merged 5 commits intoopensearch-project:mainfrom
cwperks:use-checked-runnable

Conversation

@cwperks
Copy link
Copy Markdown
Member

@cwperks cwperks commented Jun 20, 2025

Description

Small PR to update the Subject interface to use CheckedRunnable. The return value of the Callable is never used and it propagates a generic Exception which would be cleaner to get the specific exception type instead.

Related Issues

A bit of cleanup to #14630

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Craig Perkins <cwperx@amazon.com>
@cwperks cwperks requested review from a team and peternied as code owners June 20, 2025 15:15
cwperks added 2 commits June 20, 2025 11:16
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for b84ec51: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: Craig Perkins <cwperx@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 9e12aaf: SUCCESS

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 20, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 72.76%. Comparing base (7c8f01b) to head (48c9642).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
.../opensearch/identity/shiro/ShiroPluginSubject.java 0.00% 1 Missing ⚠️
...src/main/java/org/opensearch/identity/Subject.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18570      +/-   ##
============================================
+ Coverage     72.68%   72.76%   +0.07%     
- Complexity    68130    68145      +15     
============================================
  Files          5540     5540              
  Lines        313379   313382       +3     
  Branches      45472    45472              
============================================
+ Hits         227785   228023     +238     
+ Misses        67070    66754     -316     
- Partials      18524    18605      +81     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Craig Perkins <cwperx@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 48c9642: SUCCESS

@cwperks cwperks merged commit a8bd494 into opensearch-project:main Jun 21, 2025
30 of 31 checks passed
neuenfeldttj pushed a commit to neuenfeldttj/OpenSearch that referenced this pull request Jun 26, 2025
…8570)

* Update Subject interface to use CheckedRunnable

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Update more instances

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Mark with PublicApi

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Update javadoc

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>Signed-off-by: TJ Neuenfeldt <tjneu@amazon.com>
neuenfeldttj pushed a commit to neuenfeldttj/OpenSearch that referenced this pull request Jun 26, 2025
…8570)

* Update Subject interface to use CheckedRunnable

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Update more instances

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Mark with PublicApi

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Update javadoc

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
tandonks pushed a commit to tandonks/OpenSearch that referenced this pull request Aug 5, 2025
…8570)

* Update Subject interface to use CheckedRunnable

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Update more instances

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Mark with PublicApi

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Update javadoc

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
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.

2 participants