Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
7e6c385b
Commit
7e6c385b
authored
6 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Explicitly disable reduce function for ID retrieval
parent
1137b906
1 merge request
!89
Foundation for development of version 3.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/persistance/couchdb/CouchDbContentRepository.java
+4
-2
4 additions, 2 deletions
...arsnova/persistance/couchdb/CouchDbContentRepository.java
with
4 additions
and
2 deletions
src/main/java/de/thm/arsnova/persistance/couchdb/CouchDbContentRepository.java
+
4
−
2
View file @
7e6c385b
...
...
@@ -63,14 +63,16 @@ public class CouchDbContentRepository extends CouchDbCrudRepository<Content> imp
public
List
<
String
>
findIdsByRoomId
(
final
String
roomId
)
{
return
collectQuestionIds
(
db
.
queryView
(
createQuery
(
"by_roomid_group_locked"
)
.
startKey
(
ComplexKey
.
of
(
roomId
))
.
endKey
(
ComplexKey
.
of
(
roomId
,
ComplexKey
.
emptyObject
()))));
.
endKey
(
ComplexKey
.
of
(
roomId
,
ComplexKey
.
emptyObject
()))
.
reduce
(
false
)));
}
@Override
public
List
<
String
>
findIdsByRoomIdAndVariant
(
final
String
roomId
,
final
String
variant
)
{
return
collectQuestionIds
(
db
.
queryView
(
createQuery
(
"by_roomid_group_locked"
)
.
startKey
(
ComplexKey
.
of
(
roomId
,
variant
))
.
endKey
(
ComplexKey
.
of
(
roomId
,
variant
,
ComplexKey
.
emptyObject
()))));
.
endKey
(
ComplexKey
.
of
(
roomId
,
variant
,
ComplexKey
.
emptyObject
()))
.
reduce
(
false
)));
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment