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

allow numeric usernames less than MAX_INT64 during registration #3137

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CicadaCinema
Copy link
Contributor

@CicadaCinema CicadaCinema commented Jul 5, 2023

Pull Request Checklist

  • I have added Go unit tests or Complement integration tests for this PR or I have justified why this PR doesn't need tests
  • I have already signed off privately

I have not added additional unit tests yet, waiting for #3138 .

Fixes one of the sytests in #1300 .

@CicadaCinema CicadaCinema requested a review from a team as a code owner July 5, 2023 22:07
@CicadaCinema CicadaCinema changed the title allow numeric usernames less than MAX_INT64 allow numeric usernames less than MAX_INT64 during registration Jul 5, 2023
@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (be0c27e) 61.58% compared to head (22ce531) 67.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3137      +/-   ##
==========================================
+ Coverage   61.58%   67.40%   +5.82%     
==========================================
  Files         518      518              
  Lines       58193    46865   -11328     
==========================================
- Hits        35836    31589    -4247     
+ Misses      18417    11333    -7084     
- Partials     3940     3943       +3     
Flag Coverage Δ
unittests 52.37% <ø> (+2.89%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@CicadaCinema CicadaCinema marked this pull request as draft July 5, 2023 22:32
kegsay added a commit that referenced this pull request Nov 22, 2023
…3138)

### Pull Request Checklist

* [x] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] I have already signed off privately

This PR is in preparation for #3137 and removes the hard-coded username
validation (previously only dependent on `forceEmpty`).

---------

Co-authored-by: kegsay <7190048+kegsay@users.noreply.github.com>
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.

1 participant