File tree 14 files changed +791
-0
lines changed
kolibri_explore_plugin/test
14 files changed +791
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Test collections data
2
+
3
+ Each JSON file provides a test pack from endless-key-collections. Each
4
+ pack contains the following:
5
+
6
+ * Two channels
7
+ * Two included nodes per channel. The nodes are always the top level
8
+ video and the document within the channel's subtopic.
9
+ * Each included node has a single tag.
10
+ * The first channel root node is tagged as a featured channel.
11
+
12
+ ## Generating collections packs
13
+
14
+ The ` create_collection_pack.py ` script can be used to generate a new
15
+ collection pack. It requires the pack name, pack version and 2 channel
16
+ IDs. For consistency, new channels should be created and used so that
17
+ each test pack uses independent channels.
18
+
19
+ ```
20
+ ./scripts/create_channeldb_json.py
21
+ ./scripts/create_channeldb_json.py
22
+ ./scripts/create_collection_pack.py foo 0001 <new_channel_1> <new_channel_2>
23
+ ```
Original file line number Diff line number Diff line change
1
+ {
2
+ "channels" : [
3
+ {
4
+ "id" : " 1af9e59af51f4c27a145433b83e3cea2" ,
5
+ "version" : 4 ,
6
+ "include_node_ids" : [
7
+ " 305cce826f5645abb072b82961048ae4" ,
8
+ " 2e9f1c47b00847ab859f27fa216adcce"
9
+ ]
10
+ },
11
+ {
12
+ "id" : " 1d11cf118c3d4691907a6abb880b7c20" ,
13
+ "version" : 3 ,
14
+ "include_node_ids" : [
15
+ " 3faff591666c475eb9495f962e36d95a" ,
16
+ " 89bfe3ddf45d4d3e864e2b71a08a99f4"
17
+ ]
18
+ }
19
+ ],
20
+ "metadata" : {
21
+ "title" : " Artist" ,
22
+ "subtitle" : " 0001" ,
23
+ "description" : " artist" ,
24
+ "required_gigabytes" : 0 ,
25
+ "tagged_node_ids" : [
26
+ {
27
+ "node_id" : " 1af9e59af51f4c27a145433b83e3cea2" ,
28
+ "tags" : [
29
+ " featured-channel"
30
+ ]
31
+ },
32
+ {
33
+ "node_id" : " 305cce826f5645abb072b82961048ae4" ,
34
+ "tags" : [
35
+ " highlight"
36
+ ]
37
+ },
38
+ {
39
+ "node_id" : " 2e9f1c47b00847ab859f27fa216adcce" ,
40
+ "tags" : [
41
+ " highlight"
42
+ ]
43
+ },
44
+ {
45
+ "node_id" : " 3faff591666c475eb9495f962e36d95a" ,
46
+ "tags" : [
47
+ " highlight"
48
+ ]
49
+ },
50
+ {
51
+ "node_id" : " 89bfe3ddf45d4d3e864e2b71a08a99f4" ,
52
+ "tags" : [
53
+ " highlight"
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "channel_list_hash" : " "
59
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "channels" : [
3
+ {
4
+ "id" : " 411af6738f164071b150843b973c3bc1" ,
5
+ "version" : 3 ,
6
+ "include_node_ids" : [
7
+ " bf8ced6d3b1b43c4a8fc66f56379655d" ,
8
+ " e129938827094367a9868108f0818783"
9
+ ]
10
+ },
11
+ {
12
+ "id" : " 4350f8ed80dd40dfbd4ed3c9732d449d" ,
13
+ "version" : 4 ,
14
+ "include_node_ids" : [
15
+ " e90d9e99c6d9485aace01ffe434f1009" ,
16
+ " 7db0f6eb5e084a8d8b8dbf823dda7de6"
17
+ ]
18
+ }
19
+ ],
20
+ "metadata" : {
21
+ "title" : " Athlete" ,
22
+ "subtitle" : " 0001" ,
23
+ "description" : " athlete" ,
24
+ "required_gigabytes" : 0 ,
25
+ "tagged_node_ids" : [
26
+ {
27
+ "node_id" : " 411af6738f164071b150843b973c3bc1" ,
28
+ "tags" : [
29
+ " featured-channel"
30
+ ]
31
+ },
32
+ {
33
+ "node_id" : " bf8ced6d3b1b43c4a8fc66f56379655d" ,
34
+ "tags" : [
35
+ " highlight"
36
+ ]
37
+ },
38
+ {
39
+ "node_id" : " e129938827094367a9868108f0818783" ,
40
+ "tags" : [
41
+ " highlight"
42
+ ]
43
+ },
44
+ {
45
+ "node_id" : " e90d9e99c6d9485aace01ffe434f1009" ,
46
+ "tags" : [
47
+ " highlight"
48
+ ]
49
+ },
50
+ {
51
+ "node_id" : " 7db0f6eb5e084a8d8b8dbf823dda7de6" ,
52
+ "tags" : [
53
+ " highlight"
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "channel_list_hash" : " "
59
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "channels" : [
3
+ {
4
+ "id" : " 56048757b6644208a639fbdb03510ab8" ,
5
+ "version" : 3 ,
6
+ "include_node_ids" : [
7
+ " 5b45ba733da84be4b348bfa3e57cdbdc" ,
8
+ " 3d78511512c44097baeedc32d972e5eb"
9
+ ]
10
+ },
11
+ {
12
+ "id" : " 5e7db57c21df4230bad6e8b365754632" ,
13
+ "version" : 4 ,
14
+ "include_node_ids" : [
15
+ " 20945f2430894c1baf64aa02dbf9775c" ,
16
+ " 2ebc745323324cfaad91674b42f96ee3"
17
+ ]
18
+ }
19
+ ],
20
+ "metadata" : {
21
+ "title" : " Curious" ,
22
+ "subtitle" : " 0001" ,
23
+ "description" : " curious" ,
24
+ "required_gigabytes" : 0 ,
25
+ "tagged_node_ids" : [
26
+ {
27
+ "node_id" : " 56048757b6644208a639fbdb03510ab8" ,
28
+ "tags" : [
29
+ " featured-channel"
30
+ ]
31
+ },
32
+ {
33
+ "node_id" : " 5b45ba733da84be4b348bfa3e57cdbdc" ,
34
+ "tags" : [
35
+ " highlight"
36
+ ]
37
+ },
38
+ {
39
+ "node_id" : " 3d78511512c44097baeedc32d972e5eb" ,
40
+ "tags" : [
41
+ " highlight"
42
+ ]
43
+ },
44
+ {
45
+ "node_id" : " 20945f2430894c1baf64aa02dbf9775c" ,
46
+ "tags" : [
47
+ " highlight"
48
+ ]
49
+ },
50
+ {
51
+ "node_id" : " 2ebc745323324cfaad91674b42f96ee3" ,
52
+ "tags" : [
53
+ " highlight"
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "channel_list_hash" : " "
59
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "channels" : [
3
+ {
4
+ "id" : " 64fa38415b4849629d027069b4110bab" ,
5
+ "version" : 2 ,
6
+ "include_node_ids" : [
7
+ " 9ec8e38f7eed4744af532c3757a742d3" ,
8
+ " d077718ec620479fbd320d4b06b76658"
9
+ ]
10
+ },
11
+ {
12
+ "id" : " 65a2964ce74943778bdabb348caebb0d" ,
13
+ "version" : 4 ,
14
+ "include_node_ids" : [
15
+ " 48b2b950bdc747ceb6fe60ecd8436c91" ,
16
+ " b828889127344e9fba277dc6b3b89ae4"
17
+ ]
18
+ }
19
+ ],
20
+ "metadata" : {
21
+ "title" : " Explorer" ,
22
+ "subtitle" : " 0001" ,
23
+ "description" : " explorer" ,
24
+ "required_gigabytes" : 0 ,
25
+ "tagged_node_ids" : [
26
+ {
27
+ "node_id" : " 64fa38415b4849629d027069b4110bab" ,
28
+ "tags" : [
29
+ " featured-channel"
30
+ ]
31
+ },
32
+ {
33
+ "node_id" : " 9ec8e38f7eed4744af532c3757a742d3" ,
34
+ "tags" : [
35
+ " highlight"
36
+ ]
37
+ },
38
+ {
39
+ "node_id" : " d077718ec620479fbd320d4b06b76658" ,
40
+ "tags" : [
41
+ " highlight"
42
+ ]
43
+ },
44
+ {
45
+ "node_id" : " 48b2b950bdc747ceb6fe60ecd8436c91" ,
46
+ "tags" : [
47
+ " highlight"
48
+ ]
49
+ },
50
+ {
51
+ "node_id" : " b828889127344e9fba277dc6b3b89ae4" ,
52
+ "tags" : [
53
+ " highlight"
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "channel_list_hash" : " "
59
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "channels" : [
3
+ {
4
+ "id" : " 6aba580c1c7b41ebaac64e5ef7b1cb08" ,
5
+ "version" : 1 ,
6
+ "include_node_ids" : [
7
+ " e73c0cba43a945f7a79b55d467e3fbef" ,
8
+ " 196dcbd78fa34a468e1b7c7416ee0242"
9
+ ]
10
+ },
11
+ {
12
+ "id" : " 817c628f90db40f2b489191c82e203c6" ,
13
+ "version" : 1 ,
14
+ "include_node_ids" : [
15
+ " 2624218309a946428b4893c9d529f705" ,
16
+ " 40ceecf41e10437aa299b43885f6c01b"
17
+ ]
18
+ }
19
+ ],
20
+ "metadata" : {
21
+ "title" : " Extras" ,
22
+ "subtitle" : " 0001" ,
23
+ "description" : " extras" ,
24
+ "required_gigabytes" : 0 ,
25
+ "tagged_node_ids" : [
26
+ {
27
+ "node_id" : " 6aba580c1c7b41ebaac64e5ef7b1cb08" ,
28
+ "tags" : [
29
+ " featured-channel"
30
+ ]
31
+ },
32
+ {
33
+ "node_id" : " e73c0cba43a945f7a79b55d467e3fbef" ,
34
+ "tags" : [
35
+ " highlight"
36
+ ]
37
+ },
38
+ {
39
+ "node_id" : " 196dcbd78fa34a468e1b7c7416ee0242" ,
40
+ "tags" : [
41
+ " highlight"
42
+ ]
43
+ },
44
+ {
45
+ "node_id" : " 2624218309a946428b4893c9d529f705" ,
46
+ "tags" : [
47
+ " highlight"
48
+ ]
49
+ },
50
+ {
51
+ "node_id" : " 40ceecf41e10437aa299b43885f6c01b" ,
52
+ "tags" : [
53
+ " highlight"
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "channel_list_hash" : " "
59
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "channels" : [
3
+ {
4
+ "id" : " 89c858dc2dd24512b2eff27ac12d3d4a" ,
5
+ "version" : 1 ,
6
+ "include_node_ids" : [
7
+ " 9570292af3334e4f8286ed89c6e08df4" ,
8
+ " f13d86bd78834071b81709c5455c3653"
9
+ ]
10
+ },
11
+ {
12
+ "id" : " 9c2e07c1bf8d4f4299e83592eb034020" ,
13
+ "version" : 3 ,
14
+ "include_node_ids" : [
15
+ " 035614fb9c614e21871fd271ec8d1e18" ,
16
+ " f6aa860d9f1c421fa520bf2893dca95d"
17
+ ]
18
+ }
19
+ ],
20
+ "metadata" : {
21
+ "title" : " Inventor" ,
22
+ "subtitle" : " 0001" ,
23
+ "description" : " inventor" ,
24
+ "required_gigabytes" : 0 ,
25
+ "tagged_node_ids" : [
26
+ {
27
+ "node_id" : " 89c858dc2dd24512b2eff27ac12d3d4a" ,
28
+ "tags" : [
29
+ " featured-channel"
30
+ ]
31
+ },
32
+ {
33
+ "node_id" : " 9570292af3334e4f8286ed89c6e08df4" ,
34
+ "tags" : [
35
+ " highlight"
36
+ ]
37
+ },
38
+ {
39
+ "node_id" : " f13d86bd78834071b81709c5455c3653" ,
40
+ "tags" : [
41
+ " highlight"
42
+ ]
43
+ },
44
+ {
45
+ "node_id" : " 035614fb9c614e21871fd271ec8d1e18" ,
46
+ "tags" : [
47
+ " highlight"
48
+ ]
49
+ },
50
+ {
51
+ "node_id" : " f6aa860d9f1c421fa520bf2893dca95d" ,
52
+ "tags" : [
53
+ " highlight"
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "channel_list_hash" : " "
59
+ }
You can’t perform that action at this time.
0 commit comments