mumuki-classroom 9.0.1 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 660f61a9eaed9fae3598fe7ab0ee1f904e48d7a80f2ed9c6f890f7a31c9952aa
|
|
4
|
+
data.tar.gz: c71104874c5a96c15aa3b5bfbfb32406ad8bb813d5c47c5f43a24e6ae4ea277d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a84f7b331909322a868e040644f7e573fab48978ab04a8f493097515eadb311866435c65297d64ee9beea49f739eee7ca9406c9606cfc04f05ba6bb75f9cda5c
|
|
7
|
+
data.tar.gz: 722219c2b000e2c68a3695cc1c1e692c310beffb3bb764cbd4b30516a4d7f69aff8a269324960c0c023eb75565b8057497800254650caa9fca84f9d144256926
|
|
@@ -17,8 +17,8 @@ module Reporting
|
|
|
17
17
|
main_pipeline << {'$match': query}
|
|
18
18
|
main_pipeline.concat searching.pipeline
|
|
19
19
|
main_pipeline.concat sorting.pipeline
|
|
20
|
-
main_pipeline << {'$project': projection}
|
|
21
20
|
main_pipeline << {'$sort': sorting.order_by(ordering)}
|
|
21
|
+
main_pipeline << {'$project': projection}
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
end
|
|
@@ -2,7 +2,7 @@ module Sorting
|
|
|
2
2
|
|
|
3
3
|
def self.aggregate(collection, query, paginated_params, query_params)
|
|
4
4
|
reporting_pipeline = Reporting.build_pipeline(collection, query, paginated_params, query_params, projection)
|
|
5
|
-
query = collection.collection.aggregate(pipeline
|
|
5
|
+
query = collection.collection.aggregate(pipeline(paginated_params, reporting_pipeline), allow_disk_use: true).first # Must allow disk use for sorting large collections by non-index
|
|
6
6
|
query_results(query)
|
|
7
7
|
end
|
|
8
8
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mumuki-classroom
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.0.
|
|
4
|
+
version: 9.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Franco Bulgarelli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-03-
|
|
11
|
+
date: 2021-03-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|