Skip to content
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

Unable to identify openedx_user_id for some MITx Online users #782

Open
rachellougee opened this issue Jul 31, 2023 · 6 comments
Open

Unable to identify openedx_user_id for some MITx Online users #782

rachellougee opened this issue Jul 31, 2023 · 6 comments
Assignees
Labels
product:data-platform Issues related to the Data Platform product product:mitx-online Issues related to the MITx Online product

Comments

@rachellougee
Copy link
Contributor

rachellougee commented Jul 31, 2023

Description/Context

There are some MITx Online app users that we can't match with open edx users by username in #781

select app_users.username,app_users.email, app_users.is_active, app_users.created_on
from  "ol_data_lake_production"."ol_warehouse_production_raw"."raw__mitxonline__app__postgres__users_user" as app_users
left join "ol_data_lake_production"."ol_warehouse_production_raw"."raw__mitxonline__openedx__mysql__auth_user" as openedx_users  on app_users.username = openedx_users.username
where openedx_users.id is null
order by app_users.created_on 

The mismatched username between the app and openedx seems to be either one of these cases

List of users can be found https://docs.google.com/spreadsheets/d/1QaJqTHK_Qugsuu2puG6MFKT1XvijYQJR/edit#gid=1932674965

Looking into how we should handle these cases

Expected Behavior

int__mitxonline__users.openedx_user_id should be populated

Current Behavior

some null int__mitxonline__users.openedx_user_id

@rachellougee rachellougee changed the title Unable to identify openedx_user_id for MITx Online users Unable to identify openedx_user_id for some MITx Online users Aug 1, 2023
@rachellougee rachellougee self-assigned this Jan 11, 2024
@pdpinch
Copy link
Member

pdpinch commented Jan 16, 2024

@rachellougee, please update this list, and we'll try to get it fixed once and for all.

@pdpinch pdpinch added product:data-platform Issues related to the Data Platform product product:mitx-online Issues related to the MITx Online product labels Jan 16, 2024
@rachellougee
Copy link
Contributor Author

rachellougee commented Jan 16, 2024

@pdpinch I've updated the spreadsheet with two lists:

I checked a couple of these users. One user has never logged and there no account on open edx. The other one seems to be retired user who email is obscured on open edx. Not sure how we should handle these retired user cases

@pdpinch
Copy link
Member

pdpinch commented Jan 16, 2024

Can you clarify the field labels to make it more clear if they contain mitxonline username and emails or open edX usernames and emails? I'm not sure what I'm looking at.

@rachellougee
Copy link
Contributor Author

Can you clarify the field labels to make it more clear if they contain mitxonline username and emails or open edX usernames and emails? I'm not sure what I'm looking at.

These fields are all from MITx online app, they don't contain any open edx field. Sorry for the confusion

@rachellougee
Copy link
Contributor Author

rachellougee commented Feb 13, 2024

There are 57 MITx Online app users with blank openedx_user_id https://bi.odl.mit.edu/queries/1345.

In data platform, we mostly need their openedx_user_id for their course activities in open edx, but since they don't have account in open edx, then no course activities I assume. For these retired users, there are probably course activities for them, but now we can't find match in open edx due to username or email are hashed.

@pdpinch FY, I created https://github.com/mitodl/hq/issues/3613 for similar issue in xPro.

@rachellougee
Copy link
Contributor Author

Filtering out inactive users for this report since there is not much we can do about retired users. So that still leaves us 9 users that don't have open edx accounts https://bi.odl.mit.edu/queries/1345. 3 of them have enrollments so there could be issue syncing their data at the time when they register. https://mitxonline.mit.edu/admin/users/user/76254/change/ looks like this user last login is the same date as joined on.

@pdpinch pdpinch self-assigned this Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product:data-platform Issues related to the Data Platform product product:mitx-online Issues related to the MITx Online product
Projects
None yet
Development

No branches or pull requests

2 participants