platform-plugin-aspects 0.9.4__tar.gz → 0.9.5__tar.gz
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.
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/CHANGELOG.rst +9 -0
- {platform_plugin_aspects-0.9.4/platform_plugin_aspects.egg-info → platform_plugin_aspects-0.9.5}/PKG-INFO +10 -1
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/__init__.py +1 -1
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/signals.py +19 -5
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/xblock.py +2 -2
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5/platform_plugin_aspects.egg-info}/PKG-INFO +10 -1
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/LICENSE +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/MANIFEST.in +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/README.rst +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/apps.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/extensions/__init__.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/extensions/filters.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/management/__init__.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/management/commands/__init__.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/management/commands/dump_data_to_clickhouse.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/management/commands/load_test_tracking_events.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/management/commands/monitor_load_test_tracking.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/settings/__init__.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/settings/common.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/settings/production.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/sinks/__init__.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/sinks/base_sink.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/sinks/course_overview_sink.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/sinks/external_id_sink.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/sinks/serializers.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/sinks/user_profile_sink.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/sinks/user_retire_sink.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/static/css/superset.css +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/static/html/superset.html +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/static/html/superset_student.html +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/static/js/embed_dashboard.js +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/static/js/install_required.js +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/static/js/superset.js +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/tasks.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/templates/instructor_dashboard/aspects.html +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/urls.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/utils.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/views.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/waffle.py +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects.egg-info/SOURCES.txt +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects.egg-info/dependency_links.txt +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects.egg-info/entry_points.txt +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects.egg-info/not-zip-safe +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects.egg-info/requires.txt +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects.egg-info/top_level.txt +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/requirements/base.in +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/requirements/constraints.txt +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/setup.cfg +0 -0
- {platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/setup.py +0 -0
|
@@ -14,6 +14,15 @@ Change Log
|
|
|
14
14
|
Unreleased
|
|
15
15
|
**********
|
|
16
16
|
|
|
17
|
+
0.9.5 - 2024-05-24
|
|
18
|
+
******************
|
|
19
|
+
|
|
20
|
+
Fixes
|
|
21
|
+
=====
|
|
22
|
+
|
|
23
|
+
* UserProfile sink now runs after the transaction is committed, preventing UserProfileNotFound errors and creation of rows in ClickHouse that don't exist in MySQL in the case of a rollback.
|
|
24
|
+
|
|
25
|
+
|
|
17
26
|
0.9.4 - 2024-05-16
|
|
18
27
|
******************
|
|
19
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: platform-plugin-aspects
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: Aspects plugins for edx-platform
|
|
5
5
|
Home-page: https://github.com/openedx/platform-plugin-aspects
|
|
6
6
|
Author: Open edX Project
|
|
@@ -276,6 +276,15 @@ Change Log
|
|
|
276
276
|
Unreleased
|
|
277
277
|
**********
|
|
278
278
|
|
|
279
|
+
0.9.5 - 2024-05-24
|
|
280
|
+
******************
|
|
281
|
+
|
|
282
|
+
Fixes
|
|
283
|
+
=====
|
|
284
|
+
|
|
285
|
+
* UserProfile sink now runs after the transaction is committed, preventing UserProfileNotFound errors and creation of rows in ClickHouse that don't exist in MySQL in the case of a rollback.
|
|
286
|
+
|
|
287
|
+
|
|
279
288
|
0.9.4 - 2024-05-16
|
|
280
289
|
******************
|
|
281
290
|
|
{platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/signals.py
RENAMED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Signal handler functions, mapped to specific signals in apps.py.
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
|
+
from django.db import transaction
|
|
5
6
|
from django.db.models.signals import post_save
|
|
6
7
|
from django.dispatch import Signal, receiver
|
|
7
8
|
|
|
@@ -33,11 +34,9 @@ def receive_course_publish( # pylint: disable=unused-argument # pragma: no cov
|
|
|
33
34
|
dump_course_to_clickhouse.delay(str(course_key))
|
|
34
35
|
|
|
35
36
|
|
|
36
|
-
def on_user_profile_updated(
|
|
37
|
-
sender, instance, **kwargs
|
|
38
|
-
):
|
|
37
|
+
def on_user_profile_updated(instance):
|
|
39
38
|
"""
|
|
40
|
-
|
|
39
|
+
Queues the UserProfile dump job when the parent transaction is committed.
|
|
41
40
|
"""
|
|
42
41
|
# import here, because signal is registered at startup, but items in tasks are not yet able to be loaded
|
|
43
42
|
from platform_plugin_aspects.tasks import ( # pylint: disable=import-outside-toplevel
|
|
@@ -52,11 +51,26 @@ def on_user_profile_updated( # pylint: disable=unused-argument # pragma: no co
|
|
|
52
51
|
)
|
|
53
52
|
|
|
54
53
|
|
|
54
|
+
def on_user_profile_updated_txn(**kwargs):
|
|
55
|
+
"""
|
|
56
|
+
Handle user_profile saves in the middle of a transaction.
|
|
57
|
+
|
|
58
|
+
If this gets fired before the transaction commits, the task may try to
|
|
59
|
+
query an id that doesn't exist yet and throw an error. This should postpone
|
|
60
|
+
queuing the Celery task until after the transaction is committed.
|
|
61
|
+
"""
|
|
62
|
+
transaction.on_commit(
|
|
63
|
+
lambda: on_user_profile_updated(kwargs["instance"])
|
|
64
|
+
) # pragma: no cover
|
|
65
|
+
|
|
66
|
+
|
|
55
67
|
# Connect the UserProfile.post_save signal handler only if we have a model to attach to.
|
|
56
68
|
# (prevents celery errors during tests)
|
|
57
69
|
_user_profile = get_model("user_profile")
|
|
58
70
|
if _user_profile:
|
|
59
|
-
post_save.connect(
|
|
71
|
+
post_save.connect(
|
|
72
|
+
on_user_profile_updated_txn, sender=_user_profile
|
|
73
|
+
) # pragma: no cover
|
|
60
74
|
|
|
61
75
|
|
|
62
76
|
def on_externalid_saved( # pylint: disable=unused-argument # pragma: no cover
|
{platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/xblock.py
RENAMED
|
@@ -16,10 +16,10 @@ from xblock.fields import List, Scope, String
|
|
|
16
16
|
|
|
17
17
|
# These moved from xblockutils to xblock in Quince, these can be removed
|
|
18
18
|
# when we stop supporting earlier versions.
|
|
19
|
-
try: # pragma: no
|
|
19
|
+
try: # pragma: no cover
|
|
20
20
|
from xblock.utils.resources import ResourceLoader
|
|
21
21
|
from xblock.utils.studio_editable import StudioEditableXBlockMixin
|
|
22
|
-
except ImportError:
|
|
22
|
+
except ImportError: # pragma: no cover
|
|
23
23
|
from xblockutils.resources import ResourceLoader
|
|
24
24
|
from xblockutils.studio_editable import StudioEditableXBlockMixin
|
|
25
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: platform-plugin-aspects
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: Aspects plugins for edx-platform
|
|
5
5
|
Home-page: https://github.com/openedx/platform-plugin-aspects
|
|
6
6
|
Author: Open edX Project
|
|
@@ -276,6 +276,15 @@ Change Log
|
|
|
276
276
|
Unreleased
|
|
277
277
|
**********
|
|
278
278
|
|
|
279
|
+
0.9.5 - 2024-05-24
|
|
280
|
+
******************
|
|
281
|
+
|
|
282
|
+
Fixes
|
|
283
|
+
=====
|
|
284
|
+
|
|
285
|
+
* UserProfile sink now runs after the transaction is committed, preventing UserProfileNotFound errors and creation of rows in ClickHouse that don't exist in MySQL in the case of a rollback.
|
|
286
|
+
|
|
287
|
+
|
|
279
288
|
0.9.4 - 2024-05-16
|
|
280
289
|
******************
|
|
281
290
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/apps.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
{platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/urls.py
RENAMED
|
File without changes
|
{platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/utils.py
RENAMED
|
File without changes
|
{platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/views.py
RENAMED
|
File without changes
|
{platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/platform_plugin_aspects/waffle.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{platform_plugin_aspects-0.9.4 → platform_plugin_aspects-0.9.5}/requirements/constraints.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|