Retiring a learner from ecommerce

Hi everybody,
I faced a problem with enabling my edX users to delete their accounts,
I managed to run retire_one_learner.py script from tubular repo but it fails when reaches to RETIRING_ECOM .
in the output I found that it fails when trying to request this URI:
https://ecommerce.address.tld/api/v2/user/retire/
so going further I guess that this api is not implemented yet.
Is that right? Or I have made a mistake somewhere?
Maybe I have to enable that api or what?
any help would be appreciated

I’ve recently been trying the tutor-contrib-retirement plugin and faced the exact same issue.

I would like to know if that endpoint ever worked. I skimmed through the ecommerce code but the only thing related to retirement was this.

The tubular scripts were deprecated and instead merged into the edx-platform code directly, but even then I still see the same call to the endpoint.

@farhan, I saw that you were the one that merged the script into edx-platform, do you have any pointers?

@MoisesGonzalezS

I did move some tubular scripts related to open source community in ticket; relevant PR’s PR1, PR2

but didn’t change any functionality.
I had tested the basic user retirement functionality but don’t know about history of retiring a learner from ecommerce

Perhaps pluggin contributors or the code owners can help you best.
Or can about it here

1 Like

A small update on this:

I reported the issue on Ecommerce retirement fails · Issue #36 · hastexo/tutor-contrib-retirement · GitHub and eventually we discovered that indeed the retire_one_learner step in ecommerce calls a non-existent API that causes the error. Considering the state of deprecation of ecommerce, is best to simply ignore the retirement on the ecommerce service.

Thanks a lot for the help in solving the mistery to @BrianMesick and @fghaas.

1 Like