mumuki-classroom 8.6.0 → 9.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f1a94cc752f4b252be7e4251f9b465f2d59d1bc741d6918b3ef7288af60b9e3
|
4
|
+
data.tar.gz: 19241d7f97dc4bc164e23fda997aa2237457bb3153a86cce966978913395ebf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6de7acaadb29c589c6963b6b9f020a8e6e5a0a00a5c5ee1025312ebc234a4a99f7e821c63ee91629ca0466a27afae973bc94b91723905b523334c71aa5006a3
|
7
|
+
data.tar.gz: '0830ed1413fa162dba818569ec2810969083ff591ff51c8eb2e8055d6452faebb6c49554eb4c206728a17431affbe2ad73c9ed1d8d2e4e4fb424c26cfdbce102'
|
@@ -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
|
|
@@ -1,8 +1,18 @@
|
|
1
1
|
class Mumuki::Classroom::App < Sinatra::Application
|
2
2
|
Mumukit::Platform.map_organization_routes!(self) do
|
3
|
+
helpers do
|
4
|
+
def list_teachers(matcher)
|
5
|
+
authorize! :headmaster
|
6
|
+
{teachers: Mumuki::Classroom::Teacher.where(matcher).as_json}
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
get '/teachers' do
|
11
|
+
list_teachers with_organization
|
12
|
+
end
|
13
|
+
|
3
14
|
get '/courses/:course/teachers' do
|
4
|
-
|
5
|
-
{teachers: Mumuki::Classroom::Teacher.where(with_organization_and_course).as_json}
|
15
|
+
list_teachers with_organization_and_course
|
6
16
|
end
|
7
17
|
|
8
18
|
post '/courses/:course/teachers' do
|
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:
|
4
|
+
version: 9.2.0
|
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-
|
11
|
+
date: 2021-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 9.2.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 9.2.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: mumukit-login
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -222,6 +222,7 @@ files:
|
|
222
222
|
- LICENSE
|
223
223
|
- README.md
|
224
224
|
- Rakefile
|
225
|
+
- config/initializers/inflections.rb
|
225
226
|
- lib/mumuki/classroom.rb
|
226
227
|
- lib/mumuki/classroom/collection.rb
|
227
228
|
- lib/mumuki/classroom/engine.rb
|