eclipse / jnosql

Eclipse JNoSQL is a framework which has the goal to help Java developers to create Jakarta EE applications with NoSQL.
Other
231 stars 72 forks source link

[Feat.] Make the Couchbase DocumentManager implementation supports the count method #439

Closed dearrudam closed 1 year ago

dearrudam commented 1 year ago

Which JNoSQL project the issue refers to?

JNoSQL Databases

Use case

Theorg.eclipse.jnosql.databases.couchbase.communication.DefaultCouchbaseDocumentManager.count() method is raising a java.lang.UnsupportedOperationException saying that the implementation doesn't support the count method.

More information here: https://github.com/dearrudam/exploring-jakarta-nosql-data/actions/runs/6227419193/job/16902017348#step:4:2061

Error:  Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 72.25 s <<< FAILURE! -- in org.eclipse.jnosql.demo.document.tck.couchbase.CouchbaseRepositoryIntegrationTest
Error:  org.eclipse.jnosql.demo.document.tck.couchbase.CouchbaseRepositoryIntegrationTest.shouldDeleteAll(PersonRepository) -- Time elapsed: 0.634 s <<< ERROR!
java.lang.UnsupportedOperationException: Couchbase does not support count method by document collection
    at org.eclipse.jnosql.databases.couchbase.communication.DefaultCouchbaseDocumentManager.count(DefaultCouchbaseDocumentManager.java:191)

Feature proposal

dearrudam commented 1 year ago

Fixed!!! Here's an evidence: https://github.com/dearrudam/exploring-jakarta-nosql-data/actions/runs/6231993627/job/16921482169#step:4:2081

[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 66.44 s -- in org.eclipse.jnosql.demo.document.tck.couchbase.CouchbaseRepositoryIntegrationTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ exploring-jakarta-nosql-data-tck-document-couchbase ---
Warning:  JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /home/runner/work/exploring-jakarta-nosql-data/exploring-jakarta-nosql-data/tck/document/tests-couchbase/target/exploring-jakarta-nosql-data-tck-document-couchbase-1.0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Exploring Jakarta NoSQL + Jakarta Data 1.0.1:
[INFO] 
[INFO] Exploring Jakarta NoSQL + Jakarta Data ............. SUCCESS [  6.406 s]
[INFO] Exploring Jakarta NoSQL + Jakarta Data - TCK ....... SUCCESS [  0.100 s]
[INFO] Exploring Jakarta NoSQL + Jakarta Data - TCK - Document SUCCESS [  0.085 s]
[INFO] Exploring Jakarta NoSQL + Jakarta Data - TCK - Document - Model SUCCESS [  2.570 s]
[INFO] Exploring Jakarta NoSQL + Jakarta Data - TCK - Document - Tests SUCCESS [  1.417 s]
[INFO] Exploring Jakarta NoSQL + Jakarta Data - TCK - Document - MongoDB SUCCESS [ 23.037 s]
[INFO] Exploring Jakarta NoSQL + Jakarta Data - TCK - Document - Couchbase SUCCESS [01:08 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:42 min
[INFO] Finished at: 2023-09-19T10:33:37Z
[INFO] ------------------------------------------------------------------------