Comments (5)
David Harrigan commented
Hi,
My 2C's:
Perhaps we should trust the developer to "do the right thing" (tm) :-). Instead of forcing the query to include the docs, let's rely on the developer to set the "willIncludeDocs" if they want docs, otherwise it's their fault if they don't set this attribute and no docs are returned.
I would imagine that with a bit of clear JavaDoc and the expectation that the Developer understands the basic query API, they will realise that if they want docs, they must set this value.
-=david=-
from spring-data-couchbase.
Michael Nitschinger commented
makes sense guys.. I originally had that in to aid my repository implementation, but since it's causing issues I'll make that better. looking forward to add it in M2
from spring-data-couchbase.
David Harrigan commented
#7 created.
Just a bit unsure about SimpleCouchbaseRepository, is it okay to setIncludeDocs(true) at line 122?
-=david=-
from spring-data-couchbase.
David Harrigan commented
Updated pull request based upon Michael's kind feedback.
-=david=-
from spring-data-couchbase.
Michael Nitschinger commented
Note that after discussion and thought, this won't be fixed. Here's the reason (copied from the github conv):
@dharrigan
I looked at this once more in the codebase and I know remember why I did it originally. Let's talk it through so we got an the same line..
in the findByView, I get a list of marshalled objects back, but when setIncludeDocs is not set to true always the method won't return useful data (because I have nothing to marshal from).
If you look down further, there is the queryView method which lets you access the query result directly (while still getting the exception mapping).
That's also why I force reduce to false because if you have a reduced view I can't get the object ids from the result
from spring-data-couchbase.
Related Issues (20)
- Bug: Regression - Spring Boot 3.2.3 app fails to compile with Spring Data Couchbase HOT 1
- issue with querydsl HOT 2
- "TypeAlias" does't work along with abstraction HOT 12
- update Couchbase Java SDK to 3.6.0 in main
- javax.inject dependency HOT 1
- Release 5.1.11 (2023.0.11)
- Release 5.2.5 (2023.1.5)
- Release 5.3 RC1 (2024.0.0)
- java.lang.NoClassDefFoundError: javax/inject/Inject: javax.inject.Inject when upgrading to Spring Boot 3.2.4 HOT 7
- Auto Index Creation creates indexes under _default scope HOT 2
- Sorry for the delay @mikereiche , Thanks for all the clarification.
- Compilation error due to QueryDSL annotation processor in Spring Data Couchbase 5.2.4 HOT 4
- Release 5.1.12 (2023.0.12)
- Release 5.2.6 (2023.1.6)
- Release 5.3 GA (2024.0.0)
- Runtime error when calling DeleteAllById(Iterable<T> list) if the repository extends DynamicProxyable
- Release 5.2.7 (2023.1.7)
- Release 5.3.1 (2024.0.1)
- Release 5.4 M1 (2024.1.0)
- Security Context has been nullified while using @Transactional attribute on Service method call HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-couchbase.