Skip to content

Create a pseudo valid email when user not found - #11

Open
daxmc99 wants to merge 7 commits into
improved-concurrencyfrom
commiter-email
Open

Create a pseudo valid email when user not found#11
daxmc99 wants to merge 7 commits into
improved-concurrencyfrom
commiter-email

Conversation

@daxmc99

@daxmc99 daxmc99 commented Sep 8, 2021

Copy link
Copy Markdown

I believe the issue was that the email addresses were not syntactically valid. This creates emails with the .invalid TLD.

@daxmc99
daxmc99 requested a review from asdine September 8, 2021 01:59
@asdine
asdine force-pushed the improved-concurrency branch from c29a378 to 819afdd Compare September 8, 2021 14:03
@asdine

asdine commented Sep 8, 2021

Copy link
Copy Markdown

I think we should let the user choose the strategy:

  • fail if email is invalid
  • use this default domain
    WDYT?

Allow user to set a manual override but fail by default now
@daxmc99

daxmc99 commented Sep 10, 2021

Copy link
Copy Markdown
Author

Example output from this

No valid email found for user admin (admin <admin@perforce-server-7df6ff678c-lkzfb>), set 'gitp4.createFakeEmail' or pass --fake-emails to proceed

Comment thread git-p4.py
except IndexError:
return f"{userid} {userid}@{userid}.invalid>"
else:
signal.raise_signal(signal.SIGINT) # needed to stop all threads

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Noticed this is needed to prevent us from hanging when we exit

@daxmc99

daxmc99 commented Sep 10, 2021

Copy link
Copy Markdown
Author

@asdine This should be ready for review now, let me know what you think
(Also, should probably be squash merged or I can clean it up so we don't have some many commits going into the branch.

keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
keegancsmith pushed a commit that referenced this pull request Sep 7, 2026
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.

2 participants