-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat: deprecate track_function and publish in ModuleSystem [BD-13]
#30046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: deprecate track_function and publish in ModuleSystem [BD-13]
#30046
Conversation
|
Thanks for the pull request, @Agrendalath! When this pull request is ready, tag your edX technical lead. |
static_url, track_function and rebind_noauth_module_to_user from ModuleSystemstatic_url, track_function and rebind_noauth_module_to_user in ModuleSystem
9594229 to
8bed10e
Compare
|
@Agrendalath Just checking the status, as this has been open as a draft for a while. |
|
Author will pick this up soon. |
static_url, track_function and rebind_noauth_module_to_user in ModuleSystemstatic_url, track_function and publish in ModuleSystem
45b735d to
4a118cb
Compare
|
@ormsbee, would you like to do a sanity check of this PR? |
|
@Agrendalath I tried to test this out on the sandbox instance. But I got an error in the chemical equations problem: |
|
@pkulkark, it was not related to the PR. It's an old sandbox, so I manually deleted all keys matching |
|
@Agrendalath: Looking through this now... |
ormsbee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything touching tracking events is higher risk because the generated log data often produces data that is not carefully analyzed until months later. You have these changes as separate commits, which is great. But please separate the static_url commit to its own PR. This PR can be kept for the event tracking/publishing changes, and may require separate testing.
@pdpinch, @ashultz0, @jristau1984: Do you have any concerns/thoughts regarding the validation for the XBlock event publishing/tracking log aspects of this PR?
|
@ormsbee I don't think this touches any of the answer stuff we track for insights |
|
@ashultz0: Really? I thought this was how all those events got to the tracking logs in the end...? |
|
Maybe I'm missing some of the context because I'm not familiar with this code. Insights basically only looks at answers (and only our older types of answers), it doesn't engage with any of the completion stuff that seems to be what is being changed here. Possibly the learner view looked at completion but 1) I don't think it did and 2) I don't have to research it because we are burning it to the ground with community OK anyway. |
4a118cb to
35ece1f
Compare
|
@ormsbee, thank you for reviewing this. I separated the @ashultz0, this service also handles events like problem_check (analytics seem to be using it here), showanswer (listed here), etc. This PR should not alter events in any way, but this service will be passing them to the |
|
thanks @Agrendalath problem_check is the big one for the answers view so we can just validate that they are still happening as expected afterwards |
static_url, track_function and publish in ModuleSystemtrack_function and publish in ModuleSystem
pkulkark
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't done a deep code review since @ormsbee is doing that. I tested it out on the sandbox and confirm that it's working as described in the testing instructions. LGTM 👍
P.S @Agrendalath I assume you'll be rebasing with latest master once the review is done?
Of course. Each of these BD-13 will have a conflict with the |
ffde7d9 to
a85f6ed
Compare
track_function and publish in ModuleSystemtrack_function and publish in ModuleSystem [BD-13]
|
@ormsbee, what are the next steps for this PR? Are we waiting for more feedback before moving forward? |
a85f6ed to
9b778e7
Compare
|
@schenedx, @jristau1984: This was the tracking log related code refactoring PR we discussed today. |
|
@ormsbee We found the tracking logs are sent to Segment app on edX side. Because of that, we can quickly verify this PR on stage and prod. |
|
@ormsbee OK, So I made a mistake conceptually. I thought the logs sent to segment app is the same as tracking logs. |
|
@e0d I asked @ormsbee to help me validate if the code in this change would touch segment tracking events as well. That said, I also wanted to get 2U SRE to be helping me with testing this change on the stage environment to ensure tracking logs are still created. Cannot validate that with the current access I have. |
|
@e0d I am planning to merge this PR and validate on stage Monday, Nov 14th. 2022 |
schenedx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@Agrendalath 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |

Description
As a part of the ModuleSystem removal, we want to get rid of its remaining attributes:
track_function,publish.Supporting information
Sandbox instance: https://pr30046.sandbox.opencraft.hosting/
Use
staff@example.com:edxto log in.Testing instructions
track_functionwithpublish, so it makes sense to check these two together.Other information
Private-ref: BB-5518