mdedetrich commented on code in PR #156: URL: https://github.com/apache/incubator-pekko-persistence-jdbc/pull/156#discussion_r1531754105
########## core/src/main/scala/org/apache/pekko/persistence/jdbc/state/scaladsl/JdbcDurableStateStore.scala: ########## @@ -117,7 +117,7 @@ class JdbcDurableStateStore[A]( db.run(queries.deleteFromDb(persistenceId).map(_ => Done)) def deleteObject(persistenceId: String, revision: Long): Future[Done] = - db.run(queries.deleteFromDb(persistenceId).map(_ => Done)) + db.run(queries.deleteBasedOnPersistenceIdAndRevision(persistenceId, revision).map(_ => Done)) Review Comment: > changing a public API method/function signature is not allowed - we would need a new API We have already broken ABI because of Slick 3.5.0 and this project doesn't guarantee SemVer so its a stretch to also break source compatibility however in this case it seems like we can avoid it ########## core/src/main/scala/org/apache/pekko/persistence/jdbc/state/scaladsl/JdbcDurableStateStore.scala: ########## @@ -117,7 +117,7 @@ class JdbcDurableStateStore[A]( db.run(queries.deleteFromDb(persistenceId).map(_ => Done)) def deleteObject(persistenceId: String, revision: Long): Future[Done] = - db.run(queries.deleteFromDb(persistenceId).map(_ => Done)) + db.run(queries.deleteBasedOnPersistenceIdAndRevision(persistenceId, revision).map(_ => Done)) Review Comment: > changing a public API method/function signature is not allowed - we would need a new API We have already broken ABI because of Slick 3.5.0 and this project doesn't guarantee SemVer so its not a stretch to also break source compatibility however in this case it seems like we can avoid it -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For additional commands, e-mail: notifications-h...@pekko.apache.org