openedx-learning 0.9.1__py2.py3-none-any.whl → 0.9.2__py2.py3-none-any.whl

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.
@@ -1,4 +1,4 @@
1
1
  """
2
2
  Open edX Learning ("Learning Core").
3
3
  """
4
- __version__ = "0.9.1"
4
+ __version__ = "0.9.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openedx-learning
3
- Version: 0.9.1
3
+ Version: 0.9.2
4
4
  Summary: An experiment.
5
5
  Home-page: https://github.com/openedx/openedx-learning
6
6
  Author: David Ormsbee
@@ -19,12 +19,12 @@ Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Programming Language :: Python :: 3.12
20
20
  Requires-Python: >=3.8
21
21
  License-File: LICENSE.txt
22
- Requires-Dist: djangorestframework <4.0
22
+ Requires-Dist: celery
23
+ Requires-Dist: rules <4.0
23
24
  Requires-Dist: attrs
25
+ Requires-Dist: djangorestframework <4.0
24
26
  Requires-Dist: edx-drf-extensions
25
27
  Requires-Dist: Django <5.0
26
- Requires-Dist: celery
27
- Requires-Dist: rules <4.0
28
28
 
29
29
  openedx-learning
30
30
  =============================
@@ -1,4 +1,4 @@
1
- openedx_learning/__init__.py,sha256=_LrU4yjEt6yqHKH8WWeN0l5QmPdRZ-p7bjWqLUzzYwI,67
1
+ openedx_learning/__init__.py,sha256=ECb2Sd2veOeayJ4HWLO6if-nV7ep1cVnYlQmVRaKWY0,67
2
2
  openedx_learning/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  openedx_learning/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  openedx_learning/contrib/media_server/__init__.py,sha256=iYijWFCl5RNR9omSu22kMl49EfponoqXBqXr0HMp4QI,56
@@ -94,12 +94,12 @@ openedx_tagging/core/tagging/rest_api/urls.py,sha256=egXaRQv1EAgF04ThgVZBQuvLK1L
94
94
  openedx_tagging/core/tagging/rest_api/utils.py,sha256=XZXixZ44vpNlxiyFplW8Lktyh_m1EfR3Y-tnyvA7acc,3620
95
95
  openedx_tagging/core/tagging/rest_api/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
96
96
  openedx_tagging/core/tagging/rest_api/v1/permissions.py,sha256=7HPE_NuKku_ISnkeE_HsFNXVYt0IbVkJN6M4wqwHGHU,2443
97
- openedx_tagging/core/tagging/rest_api/v1/serializers.py,sha256=apNHVKKtOtPwa1LIiwl5V_GM5p6A91ldejn8aSCj5-s,13475
97
+ openedx_tagging/core/tagging/rest_api/v1/serializers.py,sha256=zPErzfAYqroS5hg7gYiR0L7lPsDcbhstpviqLjmIbhA,13476
98
98
  openedx_tagging/core/tagging/rest_api/v1/urls.py,sha256=dNUKCtUCx_YzrwlbEbpDfjGVQbb2QdJ1VuJCkladj6E,752
99
- openedx_tagging/core/tagging/rest_api/v1/views.py,sha256=GPGYdA6NrjYNEWHnFBEpsBGal42hW1LWRuedzVkF3-M,35447
99
+ openedx_tagging/core/tagging/rest_api/v1/views.py,sha256=ZRkSILdb8g5k_BcuuVVfdffEdY9vFQ_YtMa3JrN0Xz8,35581
100
100
  openedx_tagging/core/tagging/rest_api/v1/views_import.py,sha256=kbHUPe5A6WaaJ3J1lFIcYCt876ecLNQfd19m7YYub6c,1470
101
- openedx_learning-0.9.1.dist-info/LICENSE.txt,sha256=QTW2QN7q3XszgUAXm9Dzgtu5LXYKbR1SGnqMa7ufEuY,35139
102
- openedx_learning-0.9.1.dist-info/METADATA,sha256=fOa3PvcLYeSE7QNNc9iJSdzx3rFBsMGduje7WOLohDI,8860
103
- openedx_learning-0.9.1.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
104
- openedx_learning-0.9.1.dist-info/top_level.txt,sha256=IYFbr5mgiEHd-LOtZmXj3q3a0bkGK1M9LY7GXgnfi4M,33
105
- openedx_learning-0.9.1.dist-info/RECORD,,
101
+ openedx_learning-0.9.2.dist-info/LICENSE.txt,sha256=QTW2QN7q3XszgUAXm9Dzgtu5LXYKbR1SGnqMa7ufEuY,35139
102
+ openedx_learning-0.9.2.dist-info/METADATA,sha256=wfb2Rb0W1l2BZvNDAq1-XJE7Up39WhSFcgjQMAKWj4w,8860
103
+ openedx_learning-0.9.2.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
104
+ openedx_learning-0.9.2.dist-info/top_level.txt,sha256=IYFbr5mgiEHd-LOtZmXj3q3a0bkGK1M9LY7GXgnfi4M,33
105
+ openedx_learning-0.9.2.dist-info/RECORD,,
@@ -342,7 +342,7 @@ class TaxonomyImportNewBodySerializer(TaxonomyImportBodySerializer): # pylint:
342
342
  """
343
343
  taxonomy_name = serializers.CharField(required=True)
344
344
  taxonomy_description = serializers.CharField(default="")
345
- taxonomy_export_id = serializers.CharField(required=True)
345
+ taxonomy_export_id = serializers.CharField(required=False)
346
346
 
347
347
 
348
348
  class TagImportTaskSerializer(serializers.ModelSerializer):
@@ -304,12 +304,18 @@ class TaxonomyView(ModelViewSet):
304
304
  body.is_valid(raise_exception=True)
305
305
 
306
306
  taxonomy_name = body.validated_data["taxonomy_name"]
307
- taxonomy_export_id = body.validated_data["taxonomy_export_id"]
307
+ taxonomy_export_id = body.validated_data.get("taxonomy_export_id")
308
308
  taxonomy_description = body.validated_data["taxonomy_description"]
309
309
  file = body.validated_data["file"].file
310
310
  parser_format = body.validated_data["parser_format"]
311
311
 
312
- taxonomy = create_taxonomy(taxonomy_name, taxonomy_description, export_id=taxonomy_export_id)
312
+ # If no taxonomy_export_id provided, a unique export id will be generated
313
+ taxonomy = create_taxonomy(
314
+ taxonomy_name,
315
+ taxonomy_description,
316
+ export_id=taxonomy_export_id,
317
+ )
318
+
313
319
  try:
314
320
  import_success, task, _plan = import_tags(taxonomy, file, parser_format)
315
321