Skip to content

Batch delete#217

Open
shroffk wants to merge 8 commits into
masterfrom
batch-delete
Open

Batch delete#217
shroffk wants to merge 8 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

assertDoesNotThrow(() -> channelService.create("ch", channel));
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could do with repository layer tests as well.

@sonarqubecloud
Copy link
Copy Markdown

@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%

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