Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

feat: removes non-functional retirement partner report scripts #704

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ console_scripts =
create_private_to_public_pr.py = tubular.scripts.create_private_to_public_pr:create_private_to_public_pr
create_tag.py = tubular.scripts.create_tag:create_tag
delete-asg.py = tubular.scripts.delete_asg:delete_asg
delete_expired_partner_gdpr_reports.py = tubular.scripts.delete_expired_partner_gdpr_reports:delete_expired_reports
drupal_backup_database.py = tubular.scripts.drupal_backup_database:backup_database
drupal_clear_varnish.py = tubular.scripts.drupal_clear_varnish:clear_varnish_cache
drupal_deploy.py = tubular.scripts.drupal_deploy:deploy
Expand All @@ -53,7 +52,6 @@ console_scripts =
retire_one_learner.py = tubular.scripts.retire_one_learner:retire_learner
retirement_archive_and_cleanup.py = tubular.scripts.retirement_archive_and_cleanup:archive_and_cleanup
retirement_bulk_status_update.py = tubular.scripts.retirement_bulk_status_update:update_statuses
retirement_partner_report.py = tubular.scripts.retirement_partner_report:generate_report
retrieve_latest_base_ami.py = tubular.scripts.retrieve_latest_base_ami:retrieve_latest_base_ami
retrieve_base_ami.py = tubular.scripts.retrieve_base_ami:retrieve_base_ami
rollback_asg.py = tubular.scripts.rollback_asg:rollback
Expand Down
26 changes: 0 additions & 26 deletions tubular/edx_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,32 +318,6 @@ def retirement_lms_retire(self, learner):
api_url = self.get_api_url('api/user/v1/accounts/retire')
return self._request('POST', api_url, json=data)

@_retry_lms_api()
def retirement_partner_queue(self, learner):
"""
Calls LMS to add the given user to the retirement reporting queue
"""
data = {'username': learner['original_username']}
api_url = self.get_api_url('api/user/v1/accounts/retirement_partner_report')
return self._request('PUT', api_url, json=data)

@_retry_lms_api()
def retirement_partner_report(self):
"""
Retrieves the list of users to create partner reports for and set their status to
processing
"""
api_url = self.get_api_url('api/user/v1/accounts/retirement_partner_report')
return self._request('POST', api_url)

@_retry_lms_api()
def retirement_partner_cleanup(self, usernames):
"""
Removes the given users from the partner reporting queue
"""
api_url = self.get_api_url('api/user/v1/accounts/retirement_partner_report_cleanup')
return self._request('POST', api_url, json=usernames)

@_retry_lms_api()
def retirement_retire_proctoring_data(self, learner):
"""
Expand Down
133 changes: 0 additions & 133 deletions tubular/scripts/delete_expired_partner_gdpr_reports.py

This file was deleted.

Loading
Loading