spring-projects / spring-projects/spring-data-couchbase

Support returning any deleted entities in ReactiveRemoveByIdOperation and ReactiveRemoveByQueryOperation

Open
#1,058 5 comments 0 reactions 1 assignee View on GitHub

@mikereiche is already working on this.

Since Mar 24, 2021.

status: blocked type: enhancement
Dominant language
Java
Stars
284
Forks
197
PR merge metrics
No merged PRs in 30d

Description

This should work alongside cas support in PR #1051

Idea for API:

MyEntity entity = template.removeById(MyEntity.class)
      .withCas(12345L)
      .one("abc123");

It would be good if this support was also extended to org.springframework.data.couchbase.repository.CouchbaseRepository

Right now we have a custom base repository exposing delete methods that return the deleted document.

Having this in the base implementation would reduce the surface area of our custom base repository and I suspect be helpful to others too.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.