File tree Expand file tree Collapse file tree 7 files changed +8
-18
lines changed
openedx/core/djangoapps/content/search Expand file tree Collapse file tree 7 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -486,18 +486,8 @@ def searchable_doc_for_collection(
486
486
if collection :
487
487
assert collection .key == collection_key
488
488
489
- draft_num_children = 0
490
- published_num_children = 0
491
-
492
- # Count draft and published children
493
- for entity in collection .entities .all ():
494
- draft = authoring_api .get_draft_version (entity .id )
495
- published = authoring_api .get_published_version (entity .id )
496
-
497
- if draft :
498
- draft_num_children += 1
499
- if published :
500
- published_num_children += 1
489
+ draft_num_children = authoring_api .get_drafts (collection .entities ).count ()
490
+ published_num_children = authoring_api .get_published (collection .entities ).count ()
501
491
502
492
doc .update ({
503
493
Fields .context_key : str (library_key ),
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ optimizely-sdk<5.0
139
139
# Date: 2023-09-18
140
140
# pinning this version to avoid updates while the library is being developed
141
141
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35269
142
- openedx-learning==0.16.3
142
+ openedx-learning==0.17.0
143
143
144
144
# Date: 2023-11-29
145
145
# Open AI version 1.0.0 dropped support for openai.ChatCompletion which is currently in use in enterprise.
Original file line number Diff line number Diff line change @@ -827,7 +827,7 @@ openedx-filters==1.11.0
827
827
# -r requirements/edx/kernel.in
828
828
# lti-consumer-xblock
829
829
# ora2
830
- openedx-learning==0.16.3
830
+ openedx-learning @ git+https://github.com/open-craft/openedx-learning.git@chris/FAL-3921-get-drafts-and-get-published
831
831
# via
832
832
# -c requirements/edx/../constraints.txt
833
833
# -r requirements/edx/kernel.in
Original file line number Diff line number Diff line change @@ -1381,7 +1381,7 @@ openedx-filters==1.11.0
1381
1381
# -r requirements/edx/testing.txt
1382
1382
# lti-consumer-xblock
1383
1383
# ora2
1384
- openedx-learning==0.16.3
1384
+ openedx-learning @ git+https://github.com/open-craft/openedx-learning.git@chris/FAL-3921-get-drafts-and-get-published
1385
1385
# via
1386
1386
# -c requirements/edx/../constraints.txt
1387
1387
# -r requirements/edx/doc.txt
Original file line number Diff line number Diff line change @@ -990,7 +990,7 @@ openedx-filters==1.11.0
990
990
# -r requirements/edx/base.txt
991
991
# lti-consumer-xblock
992
992
# ora2
993
- openedx-learning==0.16.3
993
+ openedx-learning @ git+https://github.com/open-craft/openedx-learning.git@chris/FAL-3921-get-drafts-and-get-published
994
994
# via
995
995
# -c requirements/edx/../constraints.txt
996
996
# -r requirements/edx/base.txt
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ openedx-calc # Library supporting mathematical calculatio
119
119
openedx-django-require
120
120
openedx-events # Open edX Events from Hooks Extension Framework (OEP-50)
121
121
openedx-filters # Open edX Filters from Hooks Extension Framework (OEP-50)
122
- openedx-learning # Open edX Learning core (experimental)
122
+ git+https://github.com/open-craft/openedx-learning.git@chris/FAL-3921-get-drafts-and-get-published#egg= openedx-learning # Open edX Learning core (experimental)
123
123
openedx-mongodbproxy
124
124
openedx-django-wiki
125
125
path
Original file line number Diff line number Diff line change @@ -1041,7 +1041,7 @@ openedx-filters==1.11.0
1041
1041
# -r requirements/edx/base.txt
1042
1042
# lti-consumer-xblock
1043
1043
# ora2
1044
- openedx-learning==0.16.3
1044
+ openedx-learning @ git+https://github.com/open-craft/openedx-learning.git@chris/FAL-3921-get-drafts-and-get-published
1045
1045
# via
1046
1046
# -c requirements/edx/../constraints.txt
1047
1047
# -r requirements/edx/base.txt
You can’t perform that action at this time.
0 commit comments