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

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 <[email protected]>
@S7evinK
Copy link
Contributor

S7evinK commented Nov 14, 2024

Thanks for contributing to Dendrite!

The repo has been cloned into element-hq/dendrite and made the switch to AGPL as per https://matrix.org/blog/2023/11/06/future-of-synapse-dendrite/.
For more information, feel free to read this and this

If you still wish to contribute under the new license, feel free to create a new PR over at element-hq/dendrite.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants