Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Borys Tkachenko committed Jan 27, 2025
1 parent cde6570 commit dde95f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public interface CommentService {

Mono<Void> update(UUID commentId, Comment comment);

Mono<Long> delete(BatchDelete batchDelete);
Mono<Void> delete(BatchDelete batchDelete);

Mono<Long> deleteByEntityIds(CommentDAO.EntityType entityType, Set<UUID> entityIds);
}
Expand Down Expand Up @@ -68,8 +68,8 @@ public Mono<Void> update(@NonNull UUID commentId, @NonNull Comment comment) {
}

@Override
public Mono<Long> delete(@NonNull BatchDelete batchDelete) {
return commentDAO.deleteByIds(batchDelete.ids());
public Mono<Void> delete(@NonNull BatchDelete batchDelete) {
return commentDAO.deleteByIds(batchDelete.ids()).then();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import static org.assertj.core.api.Assertions.assertThat;

@RequiredArgsConstructor
public abstract class BaseTestClient {
public abstract class BaseCommentResourceClient {
protected final String RESOURCE_PATH;
protected final ClientSupport client;
protected final String baseURI;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import static com.comet.opik.infrastructure.auth.RequestContext.WORKSPACE_HEADER;
import static org.assertj.core.api.Assertions.assertThat;

public class SpanResourceClient extends BaseTestClient {
public class SpanResourceClient extends BaseCommentResourceClient {

public SpanResourceClient(ClientSupport client, String baseURI) {
super("%s/v1/private/spans", client, baseURI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import static com.comet.opik.infrastructure.auth.RequestContext.WORKSPACE_HEADER;
import static org.assertj.core.api.Assertions.assertThat;

public class TraceResourceClient extends BaseTestClient {
public class TraceResourceClient extends BaseCommentResourceClient {

public TraceResourceClient(ClientSupport client, String baseURI) {
super("%s/v1/private/traces", client, baseURI);
Expand Down

0 comments on commit dde95f8

Please # to comment.