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

fix: should autogenerate username in tpa pipeline if feature is enabled #35101

Merged

Conversation

syedsajjadkazmii
Copy link
Contributor

@syedsajjadkazmii syedsajjadkazmii commented Jul 9, 2024

Description

The user's username should be autogenerated without using the user's PII in the pipeline if the is_auto_generated_username_enabled() is enabled.

Useful information to include:

More details on autogenerate username feature can be found here: https://openedx.atlassian.net/wiki/spaces/OEPM/pages/4060938253/Proposal+Autogenerate+username+behind+a+flag

Supporting information

Link to other information about the change, such as Jira issues, GitHub issues, or Discourse discussions.
Be sure to check they are publicly readable, or if not, repeat the information here.

Testing instructions

Please provide detailed step-by-step instructions for testing this change.

Deadline

"None" if there's no rush, or provide a specific date or event (and reason) if there is one.

Other information

Include anything else that will help reviewers and consumers understand the change.

  • Does this change depend on other changes elsewhere?
  • Any special concerns or limitations? For example: deprecations, migrations, security, or accessibility.
  • If your database migration can't be rolled back easily.

@syedsajjadkazmii syedsajjadkazmii force-pushed the sajjad/auto-generate-username-tpa-pipeline branch from 0fe5918 to 52381c6 Compare July 9, 2024 08:02
Copy link
Contributor

@abdullahwaheed abdullahwaheed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks good. just a little linting suggestion

@@ -101,6 +102,7 @@ def B(*args, **kwargs):
)
from common.djangoapps.track import segment
from common.djangoapps.util.json_request import JsonResponse
from openedx.core.djangoapps.user_authn.views.utils import get_auto_generated_username
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should group imports together

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sure

@syedsajjadkazmii syedsajjadkazmii force-pushed the sajjad/auto-generate-username-tpa-pipeline branch from 52381c6 to 9ec7164 Compare July 9, 2024 08:14
@syedsajjadkazmii syedsajjadkazmii enabled auto-merge (squash) July 9, 2024 08:18
@syedsajjadkazmii syedsajjadkazmii merged commit 67a1401 into master Jul 9, 2024
48 checks passed
@syedsajjadkazmii syedsajjadkazmii deleted the sajjad/auto-generate-username-tpa-pipeline branch July 9, 2024 08:39
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

mudassir-hafeez pushed a commit to mudassir-hafeez/edx-platform that referenced this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants