Skip to content

Batch delete#217

Merged
shroffk merged 14 commits into
masterfrom
batch-delete
May 19, 2026
Merged

Batch delete#217
shroffk merged 14 commits into
masterfrom
batch-delete

Conversation

@shroffk
Copy link
Copy Markdown
Collaborator

@shroffk shroffk commented May 7, 2026

Similar to PR #214

I removed the 404 error

I made this end point "best effort", the response is the number of channels Cf successfully deleted.

@shroffk shroffk requested review from jacomago and tynanford May 7, 2026 19:38
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Overall Project 13.14% -2.11%
Files changed 18.36%

File Coverage
ChannelService.java 43.44% -0.58% 🍏
ChannelRepository.java 0.23% -14.6%
ChannelController.java 0% -8.62%

@shroffk
Copy link
Copy Markdown
Collaborator Author

shroffk commented May 7, 2026

@jacomago I had to update one of your Integration tests.
I am not sure how the past tests were working... the expected exception was 500, but the deprecated V0ExceptionHandler maps it to 400

I think it makes sense for this to be 400 since this is a bad request (a null channel name)

tynanford
tynanford previously approved these changes May 8, 2026
Comment thread src/main/java/org/phoebus/channelfinder/repository/ChannelRepository.java Outdated
Comment thread src/main/java/org/phoebus/channelfinder/repository/ChannelRepository.java Outdated
Comment thread src/main/java/org/phoebus/channelfinder/service/ChannelService.java Outdated
Comment thread src/main/java/org/phoebus/channelfinder/service/ChannelService.java Outdated
Comment thread src/main/java/org/phoebus/channelfinder/web/v0/api/IChannel.java
@github-actions
Copy link
Copy Markdown

Overall Project 13.03% -1.89%
Files changed 14.58%

File Coverage
ChannelService.java 41.97% -0.24% 🍏
ChannelRepository.java 0.23% -13.3%
ChannelController.java 0% -8.62%

@github-actions
Copy link
Copy Markdown

Overall Project 13.03% -1.89%
Files changed 14.58%

File Coverage
ChannelService.java 41.97% -0.24% 🍏
ChannelRepository.java 0.23% -13.3%
ChannelController.java 0% -8.62%

@shroffk shroffk requested a review from jacomago May 18, 2026 14:42
Copy link
Copy Markdown
Contributor

@jacomago jacomago left a comment

Choose a reason for hiding this comment

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

Maybe fix some of the new sonar issues?

Comment thread src/test/java/org/phoebus/channelfinder/ChannelRepositoryIT.java Outdated
@github-actions
Copy link
Copy Markdown

Overall Project 13.03% -1.89%
Files changed 14.58%

File Coverage
ChannelService.java 41.97% -0.24% 🍏
ChannelRepository.java 0.23% -13.3%
ChannelController.java 0% -8.62%

@shroffk
Copy link
Copy Markdown
Collaborator Author

shroffk commented May 19, 2026

Maybe fix some of the new sonar issues?

fixed 2,
the third one is a todo which is beyond the scope of this PR, we need to have more agreement on that

@github-actions
Copy link
Copy Markdown

Overall Project 13.03% -1.94%
Files changed 14.25%

File Coverage
ChannelService.java 41.97% -1.2% 🍏
ChannelRepository.java 0.23% -13.3%
ChannelController.java 0% -8.62%

@sonarqubecloud
Copy link
Copy Markdown

@shroffk shroffk requested a review from jacomago May 19, 2026 15:20
@github-actions
Copy link
Copy Markdown

Overall Project 13.48% -1.9%
Files changed 15.76%

File Coverage
ChannelService.java 54.3% -0.4% 🍏
ChannelRepository.java 0.23% -13.3%
ChannelController.java 0% -8.62%

@shroffk shroffk merged commit ad7f896 into master May 19, 2026
8 checks passed
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