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

Not null the createdby on delete account #6808

Merged
merged 5 commits into from
Jan 10, 2019
Merged

Conversation

cristinamanum
Copy link
Contributor

On delete account the issue. createdby field will be obfuscated but not changed to null . The issues will be marked as resolved and still be visible on the support page.

@@ -20,6 +20,8 @@ public class SupportRequestService
private IAuditingService _auditingService;
private readonly string _siteRoot;
private const string _unassignedAdmin = "unassigned";
private const string _deletedAccount = "_deletedaccount";
private const string _NuGetDSRAccount = "_NuGetDSR";
Copy link
Member

Choose a reason for hiding this comment

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

We should have a unit test in the registration flow asserting that this account name is not a valid account name.

We picked the underscore prefix because today this cannot be an actual username.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added unit tests for the username regex verification.

@cristinamanum cristinamanum merged commit 20e0683 into dev Jan 10, 2019
@cristinamanum cristinamanum deleted the cmanu-supportfix branch February 15, 2019 19:07
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.

None yet

3 participants